/* ======================================================
   VARIABLES DE COLOR (Basadas en tu diseño)
====================================================== */
:root {
    --azul-titulos: #004b75;
    --azul-botones: #00aee0;
    --verde-cinta: #7bf09a;
    --verde-titulos: #63c9aa;
    --verde-oscuro: #61b199;
    --fondo-claro: #FCFEFD;
    --fondo-beneficios: #FCFEFD;
    --texto-gris: #5a7d8c;
}

/* Reset básico para el main */
main {
    background-color: #FCFEFD;
    overflow-x: hidden;
}

.text-center {
    text-align: center;
}

/* ======================================================
   1. HERO SERVICIOS 
====================================================== */
.hero-servicios {
    position: relative;
    width: 100%;
    min-height: 520px;
    margin-top: 0;
    /* <--- ¡Asegúrate de que esto esté en 0! */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Esto es vital para que esconda lo que vamos a empujar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, 92%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.hero-content h1 {
    color: #ffffff;
    font-size: clamp(32px, 3.8vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    max-width: 950px;
    margin-bottom: 35px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-mascota-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 800px;
}

.mascota-chica {
    width: clamp(100px, 12vw, 140px);
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.hero-mascota-box p {
    background: rgba(255, 255, 255, 0.9);
    color: #004b75;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    max-width: 550px;
}

/* ======================================================
   2. INTRODUCCIÓN
====================================================== */
.intro-servicios {
    padding: 60px 0 40px;
}

.intro-servicios h2 {
    color: var(--azul-botones);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    margin-bottom: 20px;
}

.intro-servicios h2 strong {
    color: var(--azul-titulos);
    font-weight: 900;
}

.intro-servicios p {
    color: var(--texto-gris);
    font-size: 18px;
    line-height: 1.5;
}

/* ======================================================
   3. TIRA DE IMÁGENES (GALERÍA IRREGULAR)
====================================================== */
.galeria-tira {
    width: 100%;
    margin: 60px 0;
    padding: 0;
    overflow: visible;
}

.galeria-grid {
    display: flex;
    width: 100%;
    height: clamp(180px, 20vw, 260px);
    align-items: center;
}

.galeria-grid img {
    height: 100%;
    min-width: 0;
    /* ¡ESTA ES LA MAGIA! Obliga a las fotos a encogerse en lugar de salirse de la pantalla */
    object-fit: cover;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Pesos balanceados para que todas quepan perfecto */
.galeria-grid img:nth-child(1) {
    flex: 0.9;
}

.galeria-grid img:nth-child(2) {
    flex: 1.1;
}

.galeria-grid img:nth-child(3) {
    flex: 1.1;
}

.galeria-grid .foto-destacada {
    flex: 1.4;
}

.galeria-grid img:nth-child(5) {
    flex: 1.8;
}

/* Campo de golf */

/* Señor de los cristales (Forzamos su espacio y su enfoque) */
.galeria-grid img:nth-child(6) {
    flex: 1.8 !important;
    object-position: left center !important;
}

.foto-destacada {
    height: 130% !important;
    z-index: 5 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.galeria-grid img:hover {
    transform: scale(1.1);
    z-index: 10 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.foto-destacada:hover {
    transform: scale(1.05);
}

/* ======================================================
   4. CINTA VERDE DE ETIQUETAS
====================================================== */
.etiquetas-servicios {
    margin-bottom: 80px;
}

.etiquetas-titulo {
    color: var(--verde-titulos);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 15px;
}

.cinta-verde {
    background: var(--verde-cinta);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px 5px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.lista-etiquetas {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lista-etiquetas li {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(14px, 1.5vw, 18px);
}

.btn-azul-cinta {
    background: linear-gradient(90deg, #007ac1 0%, #00bce8 100%);
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 35px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 174, 224, 0.4);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.btn-azul-cinta img {
    width: 22px;
    height: auto;
    display: block;
}

.btn-azul-cinta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 174, 224, 0.4);
}

/* ======================================================
   5. BANNER PERSONAL FIJO (ANCLADO AL FONDO)
====================================================== */
.banner-fijo {
    background: linear-gradient(90deg, #359897 0%, #9df4a3 100%);
    width: 100%;
    margin-top: 120px;
}

.banner-fijo-container {
    display: flex;
    align-items: stretch;
    min-height: 380px;
    position: relative;
}

.fijo-equipo-img {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    /* ANCLA LA IMAGEN ABAJO */
    padding-right: 30px;
}

.fijo-equipo-img img {
    width: 100%;
    max-width: 580px;
    object-fit: contain;
    object-position: bottom;
    /* EVITA QUE LOS PIES SE CORTEN */
    margin-top: -100px;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.15));
}

.fijo-titulos {
    flex: 0 0 50%;
    color: #ffffff;
    padding-left: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fijo-titulos h2 {
    font-size: clamp(45px, 5.5vw, 70px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 15px;
}

.fijo-titulos p {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 500;
    line-height: 1.3;
}

/* ======================================================
   6. QUÉ INCLUYE Y BENEFICIOS
====================================================== */
.info-fijo {
    background-color: #FCFEFD;
    padding: 80px 0 100px;
}

.que-incluye-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.mascota-mediana {
    flex: 0 0 45%;
    text-align: right;
}

.mascota-mediana img {
    width: 100%;
    max-width: 380px;
    display: inline-block;
    mix-blend-mode: darken;
}

.lista-incluye {
    flex: 0 0 55%;
}

.lista-incluye h3 {
    color: #0070a8;
    font-size: clamp(35px, 4vw, 50px);
    font-weight: 900;
    margin-bottom: 25px;
}

.lista-incluye ul {
    list-style: none;
    padding: 0;
}

.lista-incluye li {
    color: #347f98;
    font-size: clamp(16px, 1.8vw, 20px);
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.lista-incluye li strong {
    color: #004b75;
    font-weight: 900;
}

.beneficios-titulo {
    text-align: center;
    font-size: clamp(45px, 6vw, 80px);
    font-weight: 900;
    margin-bottom: 50px;
    background: linear-gradient(90deg, #349c9a 0%, #9df4a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #349c9a;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.card-beneficio {
    background-color: #dcf2e1;
    padding: 50px 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

.card-beneficio:hover {
    transform: translateY(-5px);
}

.card-beneficio img {
    width: 90px;
    height: auto;
    margin-bottom: 30px;
}

.card-beneficio p {
    color: #004b75;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.card-beneficio p strong {
    font-weight: 900;
}

.mt-btn {
    margin-top: 40px;
}

.btn-gradiente-beneficios {
    background: linear-gradient(90deg, #007ac1 0%, #00bce8 100%);
    color: #ffffff;
    border-radius: 999px;
    padding: 16px 45px;
    font-weight: 900;
    font-size: 16px;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 174, 224, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradiente-beneficios:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 174, 224, 0.45);
}

/* ======================================================
   7. SERVICIOS ESPECIALIZADOS
====================================================== */
.servicios-especializados {
    padding: 40px 0 120px;
}

.cinta-titulo-especializados {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
    border-radius: 0;
    background: linear-gradient(90deg, #359897 0%, #7bf09a 100%);
    padding: 25px 0;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cinta-titulo-especializados h2 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 900;
    margin: 0;
}

.mascota-esquina {
    position: absolute;
    right: max(20px, calc(50vw - 500px));
    top: -65px;
    width: 170px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.lista-tarjetas-hz {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1150px;
    margin: 0 auto;
}

.card-horizontal {
    display: flex;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-horizontal:hover {
    transform: translateY(-6px);
}

.card-hz-img {
    width: 400px;
    flex-shrink: 0;
}

.card-hz-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-hz-body {
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-hz-body h3 {
    color: #004b75;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.card-hz-body .desc {
    color: #6e8589;
    font-size: 18px;
    margin-bottom: 35px;
    font-weight: 500;
}

.card-hz-incluye {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.card-hz-incluye .incluye-tit {
    color: #00aee0;
    font-size: 22px;
    font-weight: 900;
    flex-shrink: 0;
}

.card-hz-incluye ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-hz-incluye li {
    color: #004b75;
    font-size: 18px;
    margin-bottom: 10px;
}

.card-hz-incluye li strong {
    font-weight: 900;
}

.btn-color-variante {
    align-self: flex-end;
    margin-top: auto;
    border-radius: 999px;
    padding: 16px 35px;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-color-variante svg {
    width: 22px;
    height: 22px;
}

.btn-color-variante:hover {
    transform: translateY(-3px);
}

.card-verde .btn-color-variante {
    background: linear-gradient(90deg, #4ceb75 0%, #8ef2ab 100%);
    box-shadow: 0 8px 20px rgba(76, 235, 117, 0.4);
    color: #004b75;
}

.card-azul .btn-color-variante {
    background: linear-gradient(90deg, #007ac1 0%, #00bce8 100%);
    box-shadow: 0 8px 20px rgba(0, 174, 224, 0.4);
    color: #ffffff;
}

/* ======================================================
   8. RESPONSIVE UNIFICADO (Móviles y Tablets)
====================================================== */
@media (max-width: 950px) {
    .cinta-verde {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 20px;
    }

    .lista-etiquetas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Banner Personal Fijo - AJUSTE PARA MÓVIL (TEXTO ARRIBA, FOTO ABAJO) */
    .banner-fijo-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 0;
        /* Para que la foto pegue en la base */
    }

    .fijo-titulos {
        order: 1;
        /* El texto va primero en celular */
        padding: 0 20px 20px;
    }

    .fijo-equipo-img {
        order: 2;
        /* La foto va después (abajo) en celular */
        padding-right: 0;
        justify-content: center;
        align-items: flex-end;
        /* Fija la imagen hasta abajo */
        margin-bottom: 0;
    }

    .fijo-equipo-img img {
        position: static;
        max-width: 350px;
        margin: 0 auto;
        /* Quitamos el margen negativo de computadora */
        display: block;
        object-position: bottom;
        /* Pies anclados */
    }

    .que-incluye-flex {
        flex-direction: column;
        text-align: center;
    }

    .mascota-mediana {
        text-align: center;
    }

    .lista-incluye h3 {
        text-align: center;
    }

    /* Beneficios en 2 columnas para tablet y móvil */
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cinta-titulo-especializados {
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
        flex-direction: row;
        padding: 20px;
        margin-bottom: 70px;
    }

    .cinta-titulo-especializados h2 {
        font-size: 26px;
    }

    .mascota-esquina {
        right: 10px;
        top: -50px;
        width: 110px;
    }

    .card-horizontal {
        flex-direction: column;
        border-radius: 20px;
        margin: 0 20px;
    }

    .card-hz-img {
        width: 100%;
        height: 250px;
    }

    .card-hz-img img {
        border-radius: 20px 20px 0 0;
    }

    .card-hz-body {
        padding: 30px 25px;
    }

    .card-hz-incluye {
        flex-direction: column;
        gap: 10px;
    }

    .btn-color-variante {
        align-self: center;
        margin-top: 30px;
    }
}

@media (max-width: 650px) {

    .hero-bg {
        height: 115% !important;
        /* Hacemos la foto un poco más alta */
        top: -15% !important;
        /* La empujamos hacia arriba para que la línea quede fuera de la vista */
    }

    .hero-mascota-box {
        flex-direction: column;
        text-align: center;
    }

    .hero-mascota-box p {
        text-align: center;
    }

    /* Galería convertida en Grid 2 columnas para celulares */
    .galeria-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        height: auto;
    }

    .galeria-grid img {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover;
    }

    .foto-destacada {
        transform: none !important;
        box-shadow: none !important;
        height: 150px !important;
        z-index: 1 !important;
    }

    .galeria-grid img:hover {
        transform: none !important;
        /* Desactiva el zoom en móvil */
    }

    /* Mantenemos 2 columnas en Beneficios, solo achicamos el padding */
    .card-beneficio {
        padding: 30px 10px;
    }

    .card-beneficio img {
        width: 70px;
    }

    .card-beneficio p {
        font-size: 14px;
    }
}