
:root {
    --gold-primary: #DDCE9D;
    --gold-bg-btn: #DDCE9D;
    --bg-dark: #000000;
    --text-dark: #111111;
    --text-muted: #666666;
    --border-color: #eaeaea;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Imagenes responsivas en todo el sitio (equivalente a .img-fluid de Bootstrap) */
img {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

body {

    font-family: Georgia, serif;
    background: #fff;
    color: #111;
    padding-top: 95px;

}

/* TOP */

.top-bar {

    height: 28px;
    background: #DDCE9D;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    align-items: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.3px;

}

/* HEADER */

header {


    height: 95px;

    background: #050505;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    color: white;

    z-index: 9999;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .4);

}

.logo-area {

    display: flex;
    align-items: center;
    text-decoration: none;

}

.logo-area img {

    width: 220px;

    max-height: 90px;

    object-fit: contain;

}

.nav {

    display: flex;

    align-items: center;

    gap: 5px;

}

.nav a {

    color: white;
    text-decoration: none;
    margin: 0 8px;
    font-size: 15px;

    padding: 10px;

}

.nav a:hover {

    color: #d8b632;

}

/* Contenedor del menu: enlaces a la izquierda del bloque, boton dorado pegado al borde derecho */
#navMenu {
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

@media (min-width: 992px) {
    #navMenu {
        display: flex;
    }
}

.btn-contacto-nav {
    background: var(--gold-primary);
    color: #050505;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-contacto-nav:hover {
    background: #DDCE9D;
    color: #ffffff;
}

/* NAVBAR TOGGLER (boton hamburguesa de Bootstrap, solo visible en pantallas pequenas) */

#navbar .navbar-toggler {
    border: none;
    padding: 4px 8px;
}

#navbar .navbar-toggler:focus {
    box-shadow: none;
}

#navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu colapsable en movil/tablet: se despliega como panel debajo del header fijo */
@media (max-width: 991.98px) {

    .navbar-collapse {
        position: absolute;
        top: 95px;
        left: 0;
        width: 100%;
        background: #050505;
        padding: 10px 25px 20px;
        box-shadow: 0 6px 10px rgba(0, 0, 0, .4);
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav a {
        width: 100%;
        margin: 0;
        padding: 12px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #navMenu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #navMenu.show {
    display: flex;
    }

    .btn-contacto-nav {
        margin-top: 15px;
        text-align: center;
    }

}

/* HERO */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 0 80px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../img/frontis2.jpg");

    background-size: cover;
    background-repeat: no-repeat;
    background-position: right center;
}

.hero-text {
    max-width: 650px;
}

.hero h1 {
    color: #DDCE9D;
    font-size: 55px;
    font-weight: normal;
}

.hero p {
    color: #ffffff;
    margin: 25px 0;
    font-size: 20px;
    line-height: 1.8;
}


button,
.btn-gold,
.btn-dark {

    padding: 13px 30px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;

}

.btn-gold {

    background: #DDCE9D;
    color: #000;

}

.btn-dark {

    background: #333;
    color: white;

}

.btn-outline {

    background: transparent;
    color: #ffffff;
    border: 1px solid #555555;
    padding: 13px 30px;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;

}

.btn-outline:hover {

    background: rgba(255, 255, 255, 0.08);

}

.section {

    padding: 40px;

    text-align: center;

}

.subtitle {

    font-size: 13px;
    color: #777;

}

.ubicacion-mapa {
    max-width: 900px;
    height: 380px;
    margin: 30px auto 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .ubicacion-mapa {
        height: 280px;
    }
}

.cards {

    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 30px;

}

.card {

    width: 260px;
    padding: 25px;
    box-shadow: 0 2px 5px #aaa;

}

.icon {

    color: #d8b632;
    font-size: 25px;

}

.services {

    background: #f7f7f7;
    padding: 40px;
    text-align: center;

}

.service-grid {

    display: grid;
    grid-template-columns: repeat(2, 300px);
    gap: 20px;
    justify-content: center;
    margin-top: 30px;

}

.service-card {

    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: left;

}

.service-card h3 {
    margin-bottom: 6px;
}

.service-card p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 14px;
}

.service-card a {
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.service-card a:hover {
    color: #b8860b;
}

.testimonials {

    background: #050505;
    color: white;
    padding: 50px;
    text-align: center;

}

.verso-container {
    max-width: 700px;
    margin: 30px auto 0 auto;
}

.verso-referencia {
    color: var(--gold-primary, #d8b632);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.verso-texto {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 24px;
    line-height: 1.6;
    color: #f5f5f5;
}

.contact {

    margin: 35px auto;
    width: 80%;
    background: #050505;
    color: white;
    padding: 40px;
    text-align: center;

}

/* WHATSAPP FIJO (boton flotante global, presente en todas las paginas via include/footer.php) */

.btn-whatsapp-flotante {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background: #5fc95f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    z-index: 99999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-whatsapp-flotante:hover {
    background: #4eb84e;
    transform: scale(1.08);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #050505;
    color: #ffffff;
    border-top: 2px solid #d8b632;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr;
    gap: 40px;
    padding: 50px 20px;
}

.footer-brand img {
    width: 190px;
    max-width: 100%;
}

.footer-slogan {
    font-family: Georgia, serif;
    font-style: italic;
    color: #d8b632;
    margin-top: 10px;
    font-size: 14px;
}

.footer-col h4 {
    color: #d8b632;
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #d8b632;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #cccccc;
}

.footer-contact-list i {
    color: #d8b632;
    margin-top: 3px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-icon:hover {
    background: #d8b632;
    color: #050505;
}

.footer-social-text {
    font-size: 13px;
    color: #999999;
    line-height: 1.6;
}

.footer-bottom {
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px;
    font-size: 12px;
    color: #aaaaaa;
}

.footer-legal-links {
    display: flex;
    gap: 25px;
}

.footer-legal-links a {
    color: #aaaaaa;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: #d8b632;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* CONTENEDOR Y HERO-LINE (usados en casi todas las paginas internas) */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-line {
    width: 60px;
    height: 2px;
    background-color: var(--gold-primary);
    margin: 0 auto 20px auto;
}

/* ETIQUETA "EYEBROW" CON LÍNEA (usada en servicios.php, sala_tanatologica.php,
   asesoria_tramites.php y otras secciones con encabezado destacado) */
.eyebrow-linea {
    display: inline-block;
    color: var(--gold-bg-btn);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-left: 34px;
    position: relative;
    margin-bottom: 14px;
}

.eyebrow-linea::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--gold-bg-btn);
}

/* SUBMENU DE CATEGORIAS DE SERVICIOS
   Usado en servicios.php, capillas_ardientes.php, coches_funerarios.php,
   ataudes_especifico.php, sala_tanatologica.php y asesoria_tramites.php. Vive aqui (global) para
   que sea IDENTICO y no se desplace/reajuste al navegar entre paginas. */

.servicios-submenu {
    padding: 35px 20px 25px 20px;
    text-align: center;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sub-item {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333333;
    padding: 10px 24px;
    border-radius: 25px;
    border: 1px solid transparent;
    display: block;
    transition: all 0.25s ease;
}

.sub-item:hover {
    color: var(--gold-bg-btn);
}

.sub-item.active {
    background-color: var(--gold-bg-btn);
    color: #2b4c53;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(219, 175, 92, 0.3);
}

@media (max-width: 768px) {
    .submenu-list {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        gap: 5px;
    }

    .sub-item {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media(max-width:1000px) {
    .hero {
        flex-direction: column;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text {
        padding: 35px;
    }

    .cards {
        flex-wrap: wrap;
    }

}

@media(max-width:600px) {

    .top-bar {
        font-size: 10px;
        padding: 0 10px;
    }

    .logo-area img {
        width: 160px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero p {
        font-size: 15px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .card {
        width: 90%;
    }

    .nav a {
        font-size: 13px;
    }

    .btn-whatsapp-flotante {
        width: 55px;
        height: 55px;
    }

}