﻿/* --- Globales y Fuentes --- */
/* 1. Importamos la fuente Poppins desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

/* Sobrescribimos el body para usar la nueva fuente */
body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    /* <-- Fuente principal del proyecto */
    color: #FFFFFF;
    /* Color de texto principal será blanco */
}


/* --- Contenedor Principal de la Página --- */
.maintenance-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;

    /* --- AJUSTES DE FONDO --- */
    background-color: #005190;
    background-image: url('../img/icon-freund.svg'), linear-gradient(71.75deg, #005190 25.72%, #0082C6 93.21%);
    background-repeat: no-repeat;
    /* Solo se necesita uno, aplica a todas las imágenes */

    /* 1. Posición: La imagen a la derecha y centrada verticalmente */
    background-position: right center, 0 0;

    /* 2. Tamaño: La imagen ocupa el 100% de la altura (el ancho es automático) */
    background-size: auto 100%, cover;
}


/* --- Estilos de la Tarjeta --- */
.maintenance-card {
    position: relative;
    background-image: url('../img/ilustracion-web.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    max-width: 1086px;
    width: 100%;
    min-height: 674px;
    padding: 2.5rem 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* 3. Aplicamos la sombra de Figma */
    box-shadow: 0px 5px 7.8px 0px rgba(0, 0, 0, 0.25);
    /* #00000040 es negro al 25% */
}

.card-header {
    position: absolute;
    top: 0.2rem;
    right: 0.7rem;
}

/* AÑADE esta nueva regla para ajustar el texto principal */
.card-body {
    padding-top: 2rem;
    /* Añade un poco de espacio arriba */
}

.logo {
    max-width: 180px;
}


/* --- Tipografía --- */
.main-title {
    font-weight: 700;
    font-size: 54px;
    line-height: 58px;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    margin-top: 0;
}


/* --- Botón de WhatsApp --- */
.btn-whatsapp {
    display: inline-flex;
    /* Usamos flex para alinear el ícono y el texto */
    align-items: center;
    gap: 10px;
    /* Espacio entre el ícono y el texto */

    border: 1px solid #FFFFFF;
    border-radius: 10px;
    padding: 10px 15px;

    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Ligero efecto al pasar el mouse */
}

.btn-whatsapp img {
    width: 24px;
    height: 24px;
}


/* New wrapper for the top part of the footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* We adjust the main footer to stack its children vertically */
.card-footer {
    display: flex;
    flex-direction: column;
    /* Stacks .footer-top and .tech-info */
    align-items: center;
    gap: 1rem;
    /* Adds space between the two sections */
}

/* Styles for the new technical info block */
.tech-info {
    width: 100%;
    margin-top: 0rem;
    /* mt-8 */
    padding-bottom: 0.8rem;
    /* pt-4 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* border-t with a light color */
    font-size: 0.75rem;
    /* text-xs */
    color: #bdc7d3;
    /* text-gray-400 equivalent */
}

.tech-info p {
    margin: 0.25rem 0;
    text-align: left;
    /* Aligns text to the left */
}

.social-icons {
    display: flex;
    gap: 15px;
    /* Espacio entre los íconos sociales */
}

.social-icons img {
    width: 32px;
    height: 32px;
}

.footer-text {
    display: flex;
    /* Aligns the two <p> tags in a row */
    align-items: center;
    gap: 0.5rem;
    /* Adds a small space around the separator */
}

.footer-text .company-name::after {
    content: "|";
    /* Adds the separator with CSS */
    color: #FFFFFF;
}

.footer-text p {
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    text-align: right;
    margin: 0;
}

/* --- Media Queries para Diseño Responsivo --- */
/* Estilos que se aplicarán en pantallas de 768px de ancho o menos */

@media (max-width: 767px) {

    /* Ajustamos la tarjeta y cambiamos la imagen de fondo */
    .maintenance-card {
        padding: 1rem 1.5rem;
        min-height: 639px;
        /* Dejamos que la altura se ajuste al contenido */
        background-image: url('../img/ilustracion-movil.png');
    }

    .logo {
        max-width: 103px;
        /* Aplicamos el nuevo tamaño del logo */
    }

    /* Reducimos el tamaño de los textos según las especificaciones */
    .main-title {
        font-size: 30px;
        /* Equivalente a 29.52px */
        line-height: 32px;
    }

    .subtitle {
        font-size: 12px;
        line-height: 1.5;
        /* Nota: se ajustó el line-height para mejor legibilidad */
    }

    /* --- Mobile Footer Fix --- */

    /* Ensures the main footer stacks and centers its two children */
    .card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-bottom {
        order: 1;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tech-info {
        order: 2;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: none;
        padding-top: 0.3rem;
        padding-bottom: 0rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        /* Espacio vertical y horizontal */
        text-align: center;
    }

    .tech-info p {
        text-align: center;
    }

    .footer-text p {
        font-size: 12px;
        line-height: 14px;
        text-align: center;
        /* Centramos el texto del footer */
    }

    .footer-text {
        flex-direction: column;
        /* Stacks the <p> tags vertically */
        gap: 0.25rem;
        /* Reduces the space for mobile */
    }

    .footer-text .company-name::after {
        content: "";
        /* Hides the separator on mobile */
    }
}