/* ==========================================================================
   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: #f8f8f8;
    font-family: 'Noto Serif', serif;
}

.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: #111;
    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: white;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: 0.4s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

/* Imagen de la tarjeta */
.servicio-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.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;
}

/* 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;
}

.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;
}

.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: 85px;
    margin-bottom: 24px;
}

/* 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;
}

.servicio-boton:hover {
    background: #b8860b;
    color: white !important;
    transform: scale(1.05);
}

/* ==========================================================================
   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);
}
