/* ==========================================================================
   CSS DE LA PÁGINA DE SERVICIOS
   ========================================================================== */

/* ==========================================================================
   1. SECCIÓN DE SERVICIOS NUEVOS (Contenedor principal y encabezado)
   ========================================================================== */
.servicios-nuevo {
    padding: 120px 0 60px 0;
    background: #f7f7f5;
    font-family: 'Noto Serif', serif;
    color: #2b2b2b;
}

[id^="servicio-"], .animated-section {
    scroll-margin-top: 110px;
}

.servicios-header {
    max-width: 900px;
    margin: 0 auto 55px auto;
}

.servicios-etiqueta {
    color: #b8860b;
    letter-spacing: 6px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.servicios-header h1 {
    color: #00177c;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.servicios-header h2 {
    color: #2b2b2b;
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 18px;
}

.servicios-header p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto;
}

/* ==========================================================================
   2. TARJETAS DE SERVICIOS (Estilos, sombras y transiciones)
   ========================================================================== */
.servicio-card {
    background: #fafaf8;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
    border-color: rgba(184, 134, 11, 0.35);
}

/* Imagen de la tarjeta */
.servicio-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.servicio-card:hover .servicio-img img {
    transform: scale(1.08);
}

/* Contenido de la tarjeta */
.servicio-contenido {
    padding: 28px 24px 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Icono flotante del servicio */
.servicio-icono {
    width: 62px;
    height: 62px;
    background: #00177c;
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: -58px auto 18px auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    transition: 0.35s ease;
    flex-shrink: 0;
}

.servicio-card:hover .servicio-icono {
    background: #b8860b;
    transform: scale(1.08);
}

.servicio-contenido h3 {
    color: #00177c;
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 8px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-contenido span {
    display: inline-block;
    color: #b8860b;
    font-weight: bold;
    margin-bottom: 16px;
    font-size: 1rem;
}

.servicio-contenido p {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    min-height: 90px;
    margin-bottom: 24px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón de solicitar información */
.servicio-boton {
    background: #00177c;
    color: white !important;
    padding: 11px 22px;
    border-radius: 30px;
    text-decoration: none !important;
    display: inline-block;
    transition: 0.3s ease;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: auto;
    align-self: center;
}

.servicio-boton:hover {
    background: #b8860b;
    color: white !important;
    transform: scale(1.05);
}

/* Contenedor de múltiples botones en tarjetas de servicio */
.servicio-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.servicio-botones .servicio-boton {
    width: 100%;
}

.servicio-boton-secundario {
    background: linear-gradient(135deg, #012371, #1e3c72) !important;
    border: 1px solid #b8860b !important;
    color: #ffffff !important;
}

.servicio-boton-secundario:hover {
    background: #b8860b !important;
    border-color: #012371 !important;
    color: #ffffff !important;
    transform: scale(1.03) !important;
}

/* ==========================================================================
   3. ANIMACIONES DE ENTRADA AL DESPLAZARSE (Observer)
   ========================================================================== */
.animated-section {
    opacity: 0;
    transform: translateY(35px);
    transition: 0.8s ease;
}

.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   4. DISEÑO RESPONSIVO (Ajustes para celulares)
   ========================================================================== */
@media(max-width:768px){
    .servicios-nuevo {
        padding: 100px 0 55px 0;
    }

    .servicios-header h1 {
        font-size: 2.3rem;
    }

    .servicios-header h2 {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .servicios-header p {
        font-size: 1rem;
        padding: 0 8px;
    }

    .servicio-img {
        height: 200px;
    }

    .servicio-contenido {
        padding: 26px 20px 30px 20px;
    }

    .servicio-contenido p {
        min-height: auto;
    }
}

/* ==========================================================================
   5. FOOTER MODERNO (Pie de página general)
   ========================================================================== */
.footer-moderno {
    background: #2f363b;
    color: white;
    padding: 55px 0 20px 0;
    font-family: 'Noto Serif', serif;
    width: 100%;
}

.footer-contenido {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1fr;
    gap: 55px;
    align-items: start;
}

.footer-columna h4 {
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: 1px;
    position: relative;
}

.footer-columna h4::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: #b8860b;
    border-radius: 20px;
    margin-top: 10px;
}

.footer-texto {
    color: #f1f1f1;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-redes {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-redes a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-redes a:hover {
    background: #b8860b;
    color: white;
    transform: translateY(-5px) scale(1.08);
    text-decoration: none;
}

.footer-contacto {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacto li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: #f1f1f1;
    line-height: 1.5;
}

.footer-contacto i {
    color: #b8860b;
    font-size: 20px;
    min-width: 24px;
}

.footer-contacto a {
    color: #f1f1f1;
    text-decoration: none;
    word-break: break-word;
    transition: 0.3s ease;
}

.footer-contacto a:hover {
    color: #b8860b;
    text-decoration: none;
}

.footer-contacto a[href^="mailto"] {
    white-space: nowrap;
    font-size: 0.95rem;
}

.footer-garantia {
    text-align: left;
}

.footer-logo-garantia {
    width: 140px;
    max-width: 100%;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
    transition: 0.3s ease;
    margin-top: 12px;
}

.footer-logo-garantia:hover {
    transform: scale(1.06);
}

.footer-linea {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 38px 0 18px 0;
}

.footer-copy {
    text-align: center;
}

.footer-copy p {
    margin: 0;
    color: #f1f1f1;
    font-size: 0.95rem;
}

/* ==========================================================================
   6. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-flotante {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: #25d366;
    color: white !important;
    height: 58px;
    padding: 0 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Noto Serif', serif;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    z-index: 9999;
    transition: all 0.35s ease;
}

.whatsapp-flotante i {
    font-size: 28px;
    transition: 0.35s ease;
}

.whatsapp-flotante:hover {
    background: #1ebe5d;
    color: white !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0,0,0,0.32);
}

.whatsapp-flotante:hover i {
    transform: rotate(8deg) scale(1.12);
}

/* Ajustes adaptativos para móvil de footer y whatsapp */
@media(max-width:992px){
    .footer-contenido {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-garantia {
        grid-column: 1 / -1;
    }

    .footer-contacto a[href^="mailto"] {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media(max-width:768px){
    .footer-moderno {
        padding: 40px 0 85px 0;
        text-align: center;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-columna h4::after {
        margin: 10px auto 0 auto;
    }

    .footer-redes {
        justify-content: center;
    }

    .footer-contacto li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .footer-garantia {
        text-align: center;
    }

    .footer-logo-garantia {
        width: 115px;
    }

    .footer-copy p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    .whatsapp-flotante {
        width: 58px;
        height: 58px;
        padding: 0;
        right: 18px;
        bottom: 18px;
        border-radius: 50%;
    }

    .whatsapp-flotante span {
        display: none;
    }

    .whatsapp-flotante i {
        font-size: 30px;
    }
}

/* ==========================================================================
   Corrección para tarjetas de servicio con icono en lugar de imagen (Standard)
   ========================================================================== */
.servicio-img-icon {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #b8860b, #00177c) !important;
    color: #ffffff !important;
}
.servicio-img-icon i {
    font-size: 4.5rem !important;
    transition: transform 0.5s ease;
}
.servicio-card:hover .servicio-img-icon i {
    transform: scale(1.15) rotate(5deg);
}

/* ==========================================================================
   NUEVO REDISEÑO DE SERVICIOS (Estilo Aliados - V3)
   ========================================================================== */

/* Hero Oscuro de Servicios */
.hero-servicios-section {
    position: relative;
    background: #111113;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 150px 0 80px 0;
    color: #ffffff;
}

.hero-video-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    opacity: 0.85 !important;
    pointer-events: none !important;
}

.hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(10, 14, 24, 0.75) 0%, rgba(10, 14, 24, 0.45) 55%, rgba(10, 14, 24, 0.20) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.video-movilidad {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 24px !important;
    display: block !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.15) !important;
}

.hero-servicios-content {
    max-width: 680px;
}

.hero-servicios-title {
    font-family: 'Noto Serif', serif !important;
    font-size: 3.4rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    line-height: 1.15 !important;
}

.hero-servicios-title em {
    font-style: italic !important;
    color: #b8860b !important;
    font-weight: 400 !important;
}

.hero-servicios-desc {
    font-size: 1.12rem;
    color: #d0d5e5;
    line-height: 1.7;
}

/* Sección Proyectos de Evaluación & Servicios Destacados */
.seccion-proyectos-evaluacion {
    background: #ffffff;
    padding: 80px 0;
}

.section-subtitle-muted {
    color: #666666;
    font-size: 1.1rem;
    max-width: 720px;
    margin: 12px auto 0 auto;
    line-height: 1.6;
}

/* Tarjeta Estilo Aliados con Insignia Flotante */
.card-servicio-aliados {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1.5px solid #eaeae5 !important;
    overflow: visible !important; /* Permite que el cuadro azul flotante se muestre completo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    height: 430px !important; /* Mismo tamaño exacto e idéntico para todas las tarjetas */
    min-height: 430px !important;
    max-height: 430px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.card-servicio-aliados:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 18px 40px rgba(0, 23, 124, 0.12) !important;
    border-color: #b8860b !important;
}

.card-servicio-img-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important; /* Permite que el cuadro azul flote por encima */
}

.card-servicio-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 22px 22px 0 0 !important;
    transition: transform 0.5s ease !important;
}

.card-servicio-aliados:hover .card-servicio-img-wrapper img {
    transform: scale(1.08) !important;
}

.badge-icono-flotante {
    position: absolute !important;
    bottom: -24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 52px !important;
    height: 52px !important;
    background: #00177c !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    box-shadow: 0 8px 20px rgba(0, 23, 124, 0.35) !important;
    z-index: 30 !important; /* Por encima de la imagen y del cuerpo */
    transition: all 0.35s ease !important;
}

.card-servicio-aliados:hover .badge-icono-flotante {
    background: #b8860b !important;
    transform: translateX(-50%) scale(1.12) !important;
}

.card-servicio-body {
    padding: 38px 22px 24px 22px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: #ffffff !important;
    border-radius: 0 0 22px 22px !important;
    height: 230px !important;
}

.card-servicio-titulo {
    font-family: 'Noto Serif', serif !important;
    font-size: 1.38rem !important;
    font-weight: 800 !important;
    color: #0d1b2a !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.card-servicio-subtitulo {
    font-size: 1.05rem !important;
    color: #444444 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    font-weight: 500 !important;
}

/* OVERLAY INTERACTIVO EN HOVER */
.card-servicio-overlay-hover {
    position: absolute;
    inset: 0;
    background: rgba(25, 30, 45, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 40 !important;
    border-radius: 22px !important;
}

.card-servicio-aliados:hover .card-servicio-overlay-hover {
    opacity: 1;
    visibility: visible;
}

.overlay-logo-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.overlay-texto-desc {
    font-size: 0.95rem;
    color: #e5e5e0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-solicitar-overlay {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-solicitar-overlay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.6);
    color: #ffffff !important;
}

/* AJUSTES RESPONSIVOS PARA CELULARES */
@media (max-width: 768px) {
    .hero-servicios-section {
        padding: 100px 16px 40px 16px !important;
        min-height: 240px !important;
    }
    .hero-servicios-title {
        font-size: 2.1rem !important;
    }
    .hero-servicios-desc {
        font-size: 1rem !important;
    }
    .card-servicio-aliados {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .card-servicio-body {
        height: auto !important;
        padding: 38px 18px 24px 18px !important;
    }
}




/* ==========================================================
   TARJETAS DE SERVICIO: GESTIÓN DE VIAJES & MOVILIDAD EJECUTIVA
   ========================================================== */

.card-servicio-viaje-movilidad {
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.35s ease !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.card-servicio-viaje-movilidad:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 35px rgba(0, 23, 124, 0.15) !important;
    border-color: #dcd6cd !important;
}

/* Header Banner con Degradado Azul/Dorado */
.header-banner-servicio {
    height: 160px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.bg-gradient-viajes {
    background: linear-gradient(135deg, #a67c1e 0%, #152445 45%, #0b152d 100%) !important;
}

.bg-gradient-movilidad {
    background: linear-gradient(135deg, #b38421 0%, #18284c 50%, #0d1730 100%) !important;
}

.icon-banner-main {
    font-size: 4rem;
    color: #ffffff;
    opacity: 0.95;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.35s ease;
}

.card-servicio-viaje-movilidad:hover .icon-banner-main {
    transform: scale(1.1);
}

/* Ícono Central Intermedio que sobrepasa el borde */
.badge-icono-centro {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.bg-gold-badge {
    background: #b8860b !important;
}

.bg-blue-badge {
    background: #00177c !important;
}

/* Cuerpo de la tarjeta */
.body-servicio-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 36px !important;
}

.titulo-servicio-v2 {
    font-family: 'Noto Serif', serif !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: #0b1c48 !important;
    margin-bottom: 4px !important;
}

.subtitulo-servicio-v2 {
    font-family: 'Noto Serif', serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #b8860b !important;
    margin-bottom: 14px !important;
}

.desc-servicio-v2 {
    font-size: 0.88rem !important;
    color: #555555 !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
}

/* Botón Ovalado Azul Oscuro */
.btn-cotizar-piscina {
    background: #00177c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 28px !important;
    font-family: 'Noto Serif', serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(0, 23, 124, 0.25) !important;
}

.btn-cotizar-piscina:hover {
    background: #000c47 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 23, 124, 0.4) !important;
}


/* Habilitar Overlay Hover en tarjetas de Viajes y Movilidad */
.card-servicio-viaje-movilidad:hover .card-servicio-overlay-hover {
    opacity: 1 !important;
    visibility: visible !important;
}



/* Header Banner Integrado para Avión y Auto */
.card-servicio-img-wrapper.header-banner-servicio {
    height: 220px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}
