* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, serif;
    background: url("img/fondo_marmol.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #3a2d24;
}

/* Encabezado */

.encabezado {
    width: 90%;
    margin: 30px auto;
    padding: 15px 25px;
    background: rgba(245, 239, 230, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 125px;
}

.menu {
    display: flex;
    gap: 10px;
}

.menu a,
.boton_cita {
    background: #d8bd83;
    color: #2d241d;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.menu a:hover,
.boton_cita:hover {
    background: #c9aa6c;
}

/* Banner principal */

.banner {
    width: 90%;
    min-height: 430px;
    margin: auto;
    padding: 48px 42px;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(101, 78, 58, 0.35) 0%, rgba(118, 91, 68, 0.28) 45%, rgba(87, 64, 47, 0.52) 100%),
        url("img/fondo-banner.png");
    background-size: cover;
    background-position: center;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(63, 43, 29, 0.18));
    z-index: 1;
}

.texto_banner {
    width: min(58%, 900px);
    min-width: 0;
    position: relative;
    z-index: 3;
}

.texto_banner h1,
.texto_banner h2 {
    color: white;
    font-family: Arial, sans-serif;
    line-height: 0.86;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.texto_banner h1 {
    font-size: 120px;
    font-weight: 300;
}

.texto_banner h2 {
    font-size: 88px;
    font-weight: 800;
}

.texto_banner p {
    max-width: 800px;
    margin-top: 18px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.imagen_banner {
    position: absolute;
    right: 11%;
    bottom: -8px;
    z-index: 2;
    width: min(36vw, 390px);
    height: 106%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.imagen_banner img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.22));
}

.beneficios {
    position: absolute;
    right: 42px;
    bottom: 32px;
    width: 330px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.beneficios p {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 7px 14px 7px 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    color: #3a2d24;
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.beneficios i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c58c72;
    color: white;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.beneficios span {
    display: block;
    text-align: center;
}
/* Servicios */

.servicios {
    width: 90%;
    margin: 25px auto;
    text-align: center;
}

.servicios h2 {
    display: inline-block;
    background: #dcc58c;
    padding: 10px 50px;
    margin-bottom: 20px;
    color: #3a2d24;
}

.contenedor_servicios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tarjeta_servicio {
    width: 100%;
    height: 390px;
    border: none;
    background: transparent;
    perspective: 800px;
    cursor: pointer;
    font-family: Georgia, serif;
}

.contenido_tarjeta {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
}

.tarjeta_servicio.volteada .contenido_tarjeta {
    transform: rotateY(180deg);
}

.frente_tarjeta,
.reverso_tarjeta {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.frente_tarjeta {
    background: white;
    padding: 16px;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.frente_tarjeta h3 {
    font-size: 24px;
    color: #4a3a2d;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.frente_tarjeta img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.frente_tarjeta p {
    background: #f3dedd;
    padding: 10px;
    border-radius: 12px;
    font-size: 18px;
    margin: 0;
}

.reverso_tarjeta {
    transform: rotateY(180deg);
    background: rgba(245, 239, 230, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 22px 15px;
}

.reverso_tarjeta h3 {
    font-size: 22px;
    color: #8a8585;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
}

.lista_servicio {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lista_servicio p {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #1f1f1f;
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.3;
    text-align: left;
}

.lista_servicio i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #5f5a5a;
}

.lista_servicio span {
    display: block;
    text-align: center;
}

.boton_agenda {
    display: inline-block;
    text-decoration: none;
    color: #1f1f1f;
    background: #f8e8e8;
    border: 3px solid #1f1f1f;
    border-radius: 30px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.boton_agenda:hover {
    background: #ead2d2;
}

/* Sobre nosotros */

.sobre_nosotros {
    width: 90%;
    min-height: 420px;
    margin: 60px auto;
    background-image: url("img/FondoBanner_sobreNosotros.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.caja_sobre_nosotros {
    width: 100%;
    min-height: 220px;
    background: rgba(218, 185, 145, 0.65);
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
}

.titulo_sobre_nosotros {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titulo_sobre_nosotros h2 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 48px;
    color: #3a2d24;
    font-weight: bold;
    line-height: 1;
}

.texto_sobre_nosotros {
    padding: 30px 70px;
    text-align: center;
}

.texto_sobre_nosotros p {
    font-size: 24px;
    letter-spacing: 5px;
    line-height: 1.6;
    color: #1f1f1f;
    font-family: Arial, sans-serif;
}

/* El camino Farcare */

.camino {
    width: 90%;
    margin: 50px auto;
    background: rgba(245, 239, 230, 0.95);
    border-radius: 15px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
}

.proceso {
    width: 100%;
}

.proceso h2 {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #3a2d24;
}

.paso {
    display: grid;
    grid-template-columns: 45px 1fr;
    align-items: center;
    gap: 15px;
    margin: 18px 0;
}

.paso span {
    background: #ff8fa3;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: bold;
    font-size: 18px;
}

.paso p {
    background: #b9956d;
    padding: 14px;
    border-radius: 25px;
    text-align: center;
    margin: 0;
    font-size: 24px;
}

/* Testimonios */

.testimonios {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    align-items: center;
}

.testimonio {
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonio img {
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: contain;
}

/* Contacto */

.contacto {
    width: 90%;
    margin: 30px auto;
    text-align: center;
}

.contacto h2 {
    display: inline-block;
    background: #dcc58c;
    padding: 10px 50px;
    margin-bottom: 20px;
    color: #3a2d24;
}

.contenedor_contacto {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.contenedor_contacto img {
    width: 150px;
}

.datos_contacto {
    text-align: left;
    font-size: 16px;
    line-height: 2;
}

/* Optimización */

.banner,
.servicios,
.sobre_nosotros,
.camino,
.contacto {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* Responsivo */

@media screen and (max-width: 1000px) {
    .contenedor_servicios {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarjeta_servicio {
        height: 360px;
    }

    .imagen_banner {
        right: 4%;
        width: min(42vw, 340px);
    }

    .beneficios {
        right: 24px;
        width: 300px;
    }
}

@media screen and (max-width: 900px) {
    .encabezado {
        flex-direction: column;
        gap: 15px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .texto_banner {
        width: 100%;
    }

    .texto_banner h1 {
        font-size: 64px;
    }

    .texto_banner h2 {
        font-size: 68px;
    }

    .imagen_banner {
        display: none;
    }

    .beneficios {
        position: static;
        margin-top: 24px;
        width: min(100%, 380px);
    }

    .sobre_nosotros {
        width: 95%;
        min-height: 380px;
    }

    .caja_sobre_nosotros {
        grid-template-columns: 130px 1fr;
    }

    .titulo_sobre_nosotros h2 {
        font-size: 38px;
    }

    .texto_sobre_nosotros {
        padding: 25px 35px;
    }

    .texto_sobre_nosotros p {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .camino {
        grid-template-columns: 1fr;
        width: 95%;
        padding: 25px;
    }

    .testimonios {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .encabezado {
        width: 95%;
        padding: 15px;
    }

    .menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        gap: 8px;
    }

    .menu a,
    .boton_cita {
        font-size: 11px;
        padding: 10px 12px;
        text-align: center;
        white-space: nowrap;
    }

    .banner {
        width: 95%;
        padding: 25px;
        min-height: 300px;
    }

    .texto_banner h1 {
        font-size: 45px;
    }

    .texto_banner h2 {
        font-size: 38px;
    }

    .texto_banner p {
        width: min(100%, calc(100vw - 92px));
        max-width: 300px;
        font-size: 14px;
        overflow-wrap: break-word;
    }

    .beneficios {
        width: min(100%, calc(100vw - 74px));
    }

    .beneficios p {
        grid-template-columns: 24px 1fr;
        padding-right: 10px;
        font-size: 10px;
    }

    .servicios {
        width: 95%;
    }

    .contenedor_servicios {
        grid-template-columns: 1fr;
    }

    .tarjeta_servicio {
        height: 380px;
    }

    .frente_tarjeta img {
        height: 190px;
    }

    .reverso_tarjeta h3 {
        font-size: 25px;
    }

    .lista_servicio p {
        grid-template-columns: 38px 1fr;
        gap: 10px;
        font-size: 18px;
    }

    .lista_servicio i {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .sobre_nosotros {
        min-height: 380px;
    }

    .caja_sobre_nosotros {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .titulo_sobre_nosotros h2 {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 34px;
        margin-bottom: 20px;
        text-align: center;
    }

    .texto_sobre_nosotros {
        padding: 0;
    }

    .texto_sobre_nosotros p {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .testimonios {
        grid-template-columns: 1fr;
    }

    .testimonio img {
        max-width: 100%;
        height: auto;
    }

    .contenedor_contacto {
        flex-direction: column;
        gap: 25px;
    }

    .datos_contacto {
        text-align: center;
        font-size: 15px;
    }
}

/* --- ESTILOS CONTROLADORES DEL CARRUSEL EN EL BANNER --- */
.banner {
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* Reseteamos padding para que las diapositivas controlen el espacio */
    min-height: 430px;
}

/* Contenedor interno de las diapositivas */
.carrusel-slide {
    display: none; /* Ocultas por defecto */
    width: 100%;
    height: 100%;
    min-height: 430px;
    padding: 48px 42px;
    box-sizing: border-box;
    align-items: center;
    position: relative;
    animation: fadeEffect 1.2s; /* Transición luxury de desvanecido */
}

/* Diapositiva activa */
.carrusel-slide.activo {
    display: flex;
}

/* Animación de transición */
@keyframes fadeEffect {
    from { opacity: 0.3; } 
    to { opacity: 1; }
}

/* Ajustes específicos para la Diapositiva 1 (Diseño original) */
.slide-original {
    background: linear-gradient(90deg, rgba(101, 78, 58, 0.35) 0%, rgba(118, 91, 68, 0.28) 45%, rgba(87, 64, 47, 0.52) 100%), url("img/fondo_banner.png");
    background-size: cover;
    background-position: center;
}

/* Ajustes específicos para la Diapositiva 2 (Video Limpio) */
.slide-video {
    background: #000;
    padding: 0 !important; /* Sin paddings para que el video use el 100% real */
    justify-content: center;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* Indicadores/Puntitos del carrusel en la parte inferior */
.carrusel-indicadores {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.punto {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.punto.activo {
    background: #d8bd83; /* Dorado de la marca */
}

/* --- ESTILOS PARA EL SELECTOR DE IDIOMA ORGÁNICO --- */
.selector-idioma {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.dropdown-actual {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(245, 239, 230, 0.95);
    border: 1px solid #d8bd83;
    font-weight: bold;
    color: #2d241d;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.dropdown-actual:hover {
    background: #d8bd83;
}

.dropdown-actual i.flecha {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.selector-idioma.abierto .dropdown-actual i.flecha {
    transform: rotate(180deg);
}

.dropdown-opciones {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(245, 239, 230, 0.98);
    border: 1px solid #d8bd83;
    overflow: hidden;
    z-index: 1000;
    min-width: 130px;
}

.selector-idioma.abierto .dropdown-opciones {
    display: block;
}

.opcion-idioma {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #2d241d;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.opcion-idioma:hover {
    background: #d8bd83;
}

.bandera {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 1px;
}