html {
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Lato', Arial, sans-serif;
    scroll-behavior: smooth;
}
    
*,
*::after,
*::before {
   box-sizing: inherit;
}
    
body {
   margin: 0;
   padding: 0;
   overflow-x: hidden;
}

ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

a{
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p{
    padding: 0;
    margin: 0;
}

section, main, header{
    position: relative;
}

/*---------------------------------------
NAV
--------------------------------------------*/

.nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(20, 40, 70, 0.92);
    backdrop-filter: blur(6px);
}

.nav__container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.nav__logo img {
    height: 42px;
}

/* MENÚ */
.nav__menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav__menu li {
    position: relative;
}

.nav__menu a,
.nav__link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .3s;
}

.nav__menu a:hover,
.nav__link:hover {
    opacity: .8;
}

/* SUBMENÚ */
.nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 40, 70, 0.95);
    min-width: 230px;
    list-style: none;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
}

.nav__submenu li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
}

.nav__submenu li a:hover {
    background: rgba(255,255,255,0.08);
}

.nav__dropdown:hover .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* HAMBURGUESA */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    transition: .3s;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 900px) {

    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(20, 40, 70, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transition: right .4s ease;
        opacity: 0;
        visibility: hidden;
        display: none;
    }

    .nav__menu.active {
        right: 0;
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .nav__submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 15px;
    }

    .nav__dropdown.active .nav__submenu {
        display: block;
    }
}

/* ==========================
   HEADER DE SERVICIOS
=========================== */

.header-servicios {
    position: relative;
    padding: 60px 5%;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.header-servicios__overlay {
    position: absolute;
    inset: 0;
    background: #29304099;
}

.header-servicios__container {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

/* LADO IZQUIERDO */
.header-servicios__left {
    flex: 1;
    max-width: 600px;
}

.header-servicios__title {
    font-size: 3rem;
    font-weight: 700;
}

.header-servicios__title span {
    color: #d2ac2c;
}

.header-servicios__description {
    margin: 15px 0 25px;
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 520px;
}

.header-servicios__btn {
    display: inline-block;
    padding: 12px 28px;
    background: #d2ac2c;
    color: #293040;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: .3s;
}

.header-servicios__btn:hover {
    background: #b99620;
}

/* LADO DERECHO */
.header-servicios__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TARJETAS DE CRISTAL */
.header-servicios__card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.header-servicios__card h3 {
    margin-bottom: 8px;
    color: #d2ac2c;
    font-size: 1.3rem;
}

.header-servicios__card p {
    line-height: 1.45;
}

.header-servicios__card-link {
    margin-top: 12px;
    display: inline-block;
    color: #fff;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .header-servicios__container {
        flex-direction: column;
        text-align: left;
    }

    .header-servicios__right {
        flex-direction: column;
    }
}

@media(max-width: 600px) {
    .header-servicios {
        padding: 70px 5%;
        min-height: auto;
    }

    .header-servicios__title {
        font-size: 2.3rem;
    }
}

/*----------------------------------------------------------------------
footer
------------------------------------------------------------------------*/

.whatsapp-float {
    position: fixed;
    bottom: 20%;
    right: 25px;
    width: 60px;
    height: 60px;
    background: url('../img/whatsapp_web.png') no-repeat center center / cover;
    z-index: 999;
}

/* FOOTER */
.footer {
    background: #ffffff;
    border-top: 3px solid #d2ac2c;
    padding: 50px 20px 20px 20px;
    color: #293040;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}


/* Left */
.footer-social img {
    width: 28px;
    margin-right: 10px;
    cursor: pointer;
}


.footer-legales {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.footer-legal-btn {
    padding: 6px 0;
    border-bottom: 2px solid #d2ac2c;
    text-decoration: none;
    color: #293040;
}


/* Center */
.footer-logo {
    width: clamp(280px, 70%, 600px);
    min-width: 280px;
    margin-bottom: 15px;
}


.footer-links li {
    list-style: none;
}


.footer-links a {
    text-decoration: none;
    color: #3b475c;
    line-height: 1.5;
}


/* Right */
.footer-right p {
    margin-bottom: 10px;
}


.footer-ubicacion {
    text-decoration: underline;
    color: #293040;
}


/* Bottom */
.footer-bottom {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-top: 1px solid #d2ac2c33;
    padding-top: 15px;
}


.footer-creditos a {
    color: #d2ac2c;
    text-decoration: none;
}

.footer-left, .footer-center, .footer-rigth{
    width: 33%;
}

@media screen and (max-width: 925px){
    .footer-container {
        flex-direction: column;
    }

    .footer-left, .footer-center, .footer-rigth{
    width: 90%;
    }
}

/* =========================================
   SECTION SERVICIOS CATEGORIA
========================================= */

.servicos-categoria {
    position: relative;
    width: 100%;
}

/* Arriba blanco */
.servicos-categoria__top {
    height: 280px;
    background: #ffffff;
}

/* Abajo color #3b475c */
.servicos-categoria__bottom {
    background: #3b475c;
    padding: 180px 5% 80px;
    text-align: center;
}

.servicos-categoria__bottom h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* LAS 4 IMÁGENES CENTRADAS */
.servicos-categoria__imagenes {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 10;
}

.img-card {
    position: relative;
    width: 230px;
    height: 310px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    cursor: pointer;
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

/* Overlay degradado */
.img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.6));
    opacity: 0;
    transition: .3s;
}

.img-card:hover img {
    transform: scale(1.1);
}

.img-card:hover::after {
    opacity: 1;
}

/* GRID DE SERVICIOS */
.servicos-categoria__grid {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Ítems sin separación visible */
.grid-item {
    padding: 30px 25px;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: .3s;
}

.grid-item:nth-child(1),
.grid-item:nth-child(4) {
    border-left: none;
}

.grid-item:nth-child(1),
.grid-item:nth-child(2),
.grid-item:nth-child(3) {
    border-top: none;
}

/* H3 en dorado */
.grid-item h3 {
    color: #d2ac2c;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* Descripción blanca */
.grid-item p {
    color: #ffffff;
    opacity: 0.9;
}

/* Hover cambia a #293040 */
.grid-item:hover {
    background: #293040;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 950px) {

    .servicos-categoria__imagenes {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .img-card {
        width: 30%;
        height: 160px;
    }
}

@media (max-width: 700px) {

    .servicos-categoria__grid {
        grid-template-columns: 1fr;
    }

    .grid-item {
        border: none;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .grid-item:first-child {
        border-top: none;
    }

    .servicos-categoria__bottom {
        padding-top: 260px;
    }
}

/* =======================================
   CTA SERVICIOS – BOTÓN WHATSAPP
=======================================*/

.cta-servicios-p{
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.5rem;
}

.cta-servicios {
    width: 100%;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.btn-whatsapp-servicios {
    display: inline-block;
    background: #3b475c; /* Verde WhatsApp oficial */
    color: #ffffff;
    padding: 14px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn-whatsapp-servicios:hover {
    background: #293040;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.btn-whatsapp-servicios:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .btn-whatsapp-servicios {
        width: 80%;
        font-size: 1.1rem;
        padding: 12px 0;
    }
}

/* ===========================================
   SECCIÓN CASOS DE ÉXITO
=========================================== */

.casos-exito {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
    overflow: hidden;
}

.casos-exito h2, .intereses-h2 {
    font-size: 2.4rem;
    color: #293040;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
}

/* CONTENEDOR DEL SLIDER */
.casos-slider-container {
    width: 90%;
    max-width: 1100px;
    height: 500px;
    margin: auto;
    perspective: 900px;
    perspective-origin: center center;
    overflow: visible;
    position: relative;
}

/* SLIDER */
.casos-slider {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    position: relative;
    min-height: 360px;
    transform-style: preserve-3d;
}

/* SLIDES */
.caso-slide {
    width: 350px;
    min-height: 320px;
    padding: 25px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    position: absolute;
    left: 50%;
    top: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 1; /* oculto por defecto */
    transform: translateX(-50%) translateZ(-200px) scale(0.8);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.caso-slide h4 {
    font-size: 1.3rem;
    color: #d2ac2c;
    margin-bottom: 10px;
}

.caso-slide p {
    margin: 6px 0;
    color: #293040;
    font-size: 0.95rem;
}

.caso-nombre {
    font-weight: bold;
    color: #3b475c;
}

.caso-fecha {
    font-style: italic;
    color: #3b475c;
}

/* ===========================================
   POSICIONES 3D
=========================================== */
/* ===========================================
   ESTADO INICIAL DEL SLIDER
=========================================== */


/* Cuando JS asigna clases, se animan DESDE un estado invisible */
.center {
    opacity: 1;
    z-index: 100; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    transform: translateX(-50%) translateZ(120px) scale(1);
}

.caso-slide.left-1 {
    opacity: 0.8;
    transform: translateX(-150%) translateZ(-40px) rotateY(25deg);
}

.caso-slide.left-2 {
    opacity: 0.5;
    transform: translateX(-250%) translateZ(-120px) rotateY(35deg);
}

.caso-slide.right-1 {
    opacity: 0.8;
    transform: translateX(50%) translateZ(-40px) rotateY(-25deg);
}

.caso-slide.right-2 {
    opacity: 0.5;
    transform: translateX(150%) translateZ(-120px) rotateY(-35deg);
}

.caso-slide.hidden {
    transform: translateX(-50%) translateZ(-200px) scale(0.7);
    pointer-events: none;
}

.caso-slide,
.casos-slider {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* FLECHAS DEL SLIDER */
.casos-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #293040;
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: 0.3s ease;
}

.casos-arrow:hover {
    background: #d2ac2c;
    color: #293040;
}

/* Ubicación */
.left-arrow { left: -70px; }
.right-arrow { right: -70px; }

/*INDICADORES*/
.casos-indicadores {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.casos-indicadores .dot {
    width: 12px;
    height: 12px;
    background: #b3b3b3;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.casos-indicadores .dot.active {
    background: #d2ac2c;
    transform: scale(1.3);
}

.casos-leyenda {
    padding: 0 20px;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE — CELULARES Y TABLETS
============================================ */
@media (max-width: 768px) {

    /* Reduce la altura general del slider */
    .casos-slider-container {
        perspective: 700px;
    }

    /* Slides más pequeños y mejor proporción vertical */
    .caso-slide {
        width: 85%;
        min-height: 260px;
        padding: 18px;
        transform: translateX(-50%) translateZ(-150px) scale(0.85);
    }

    .caso-slide.center {
        transform: translateX(-50%) translateZ(80px) scale(0.95);
    }

    .caso-slide.left-1 {
        transform: translateX(-120%) translateZ(-40px) rotateY(22deg);
    }

    .caso-slide.left-2 {
        transform: translateX(-180%) translateZ(-80px) rotateY(28deg);
    }

    .caso-slide.right-1 {
        transform: translateX(20%) translateZ(-40px) rotateY(-22deg);
    }

    .caso-slide.right-2 {
        transform: translateX(100%) translateZ(-80px) rotateY(-28deg);
    }

    /* Flechas más pequeñas */
    .casos-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }

    .left-arrow { left: -10px; }
    .right-arrow { right: -10px; }

    /* Indicadores más pequeños */
    .casos-indicadores .dot {
        width: 10px;
        height: 10px;
    }

    /* Texto */
    .casos-exito h2 {
        font-size: 1.9rem;
    }

    
}
@media (max-width: 480px) {

    .casos-slider-container {
        height: 450px;
        perspective: 600px;
    }

    .caso-slide {
        width: 90%;
        min-height: 240px;
        padding: 16px;
    }

    .caso-slide.center {
        transform: translateX(-50%) translateZ(60px) scale(0.9);
    }

    .left-arrow { left: -5px; }
    .right-arrow { right: -5px; }

    .casos-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
}

/* ================================
   SECCIÓN: INTERESES
================================= */
.intereses {
    padding: 30px 0;
    background: #f9f9f9;
}

.intereses-contenedor {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    align-items: center;
}

/* IMAGEN */
.intereses-imagen {
    width: 100%;
    height: 100%;
}

.intereses-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* GRID DE TEMAS */
.intereses-contenido {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intereses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 40px;
}

.interes-item {
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.interes-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.interes-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 700;
}

.interes-item p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* CTA */
.intereses-cta {
    margin-top: 20px;
    text-align: left;
}

.cta-texto {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 20px;
}

.btn-intereses {
    display: inline-block;
    padding: 14px 32px;
    background: #d52e2e;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-intereses:hover {
    background: #b32727;
    transform: translateY(-2px);
}



/* ================================
   RESPONSIVE
================================= */

/* Tablets */
@media (max-width: 992px) {
    .intereses-contenedor {
        grid-template-columns: 1fr;
    }

    .intereses-imagen {
        order: 1;
    }

    .intereses-contenido {
        order: 2;
    }

    .intereses-grid {
        grid-template-columns: 1fr;
    }
}

/* Móviles */
@media (max-width: 600px) {
    .intereses {
        padding: 50px 0;
    }

    .intereses-grid {
        gap: 20px;
    }

    .interes-item {
        padding: 18px;
    }

    .interes-item h3 {
        font-size: 1.1rem;
    }

    .cta-texto {
        font-size: 1rem;
    }

    .btn-intereses {
        width: 100%;
        text-align: center;
        padding: 14px 0;
    }
}
