:root {
    --primary: #0a7e37;
    --primary-light: #10a84c;
    --primary-dark: #054920;
    --primary-deep: #02200e;
    --text-light: #ffffff;
    --text-muted: #d1fae5;
    --card-bg: rgba(4, 38, 16, 0.65);
    --card-border: rgba(255, 255, 255, 0.16);
    --whatsapp-bg: #25D366;
    --whatsapp-hover: #20ba5a;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* Altura dinámica para navegadores móviles (Safari/Chrome) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    color: var(--text-light);
    background: radial-gradient(circle at 50% 25%, #119e48 0%, #0a7e37 40%, #05451e 75%, #021a0c 100%);
    padding: 24px 16px;
}

/* Luces ambientales y destellos de fondo */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 480px;
    height: 480px;
    background: rgba(16, 168, 76, 0.35);
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse-glow 7s ease-in-out infinite alternate;
}

.glow-2 {
    width: 320px;
    height: 320px;
    background: rgba(10, 126, 55, 0.45);
    bottom: 5%;
    left: 10%;
}

.glow-3 {
    width: 340px;
    height: 340px;
    background: rgba(18, 185, 83, 0.25);
    top: 10%;
    right: 10%;
}

@keyframes pulse-glow {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.5; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 0.85; }
}

/* Patrón sutil decorativo */
.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* Tarjeta Principal */
.maintenance-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 660px;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 44px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: fadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Badge de Estado Centrado */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #d1fae5;
    margin: 0 auto 26px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: #34d399;
    opacity: 0.65;
    animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 0.85; }
    75%, 100% { transform: scale(2.4); opacity: 0; }
}

/* Contenedor del Logo (Centrado) */
.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 22px auto;
}

.logo-img {
    max-width: 250px;
    width: 72%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.45));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 16px 30px rgba(10, 126, 55, 0.55));
}

/* Etiqueta del Negocio */
.business-tagline {
    display: inline-block;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 8px;
    margin: 0 auto 16px auto;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Título y Subtítulo con tipografía adaptable */
.title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    max-width: 580px;
}

.title span {
    background: linear-gradient(135deg, #a7f3d0 0%, #ffffff 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(0.92rem, 2.7vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 auto 28px auto;
    max-width: 500px;
    font-weight: 400;
    opacity: 0.95;
}

/* Divisor */
.divider {
    width: 100%;
    max-width: 520px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    margin: 0 auto 24px auto;
}

.contact-prompt {
    font-size: 0.86rem;
    font-weight: 700;
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 18px;
}

/* Botones de Acción */
.actions-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    touch-action: manipulation;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.28s ease;
}

.btn-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.btn:hover .btn-icon,
.btn:active .btn-icon {
    transform: scale(1.12) rotate(-3deg);
}

/* Botón WhatsApp */
.btn-whatsapp {
    background-color: var(--whatsapp-bg);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover,
.btn-whatsapp:active {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.48);
}

/* Botón Instagram */
.btn-instagram {
    background: var(--instagram-gradient);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.35);
}

.btn-instagram:hover,
.btn-instagram:active {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 28px rgba(220, 39, 67, 0.48);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.25;
}

.btn-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.88;
    font-weight: 600;
}

.btn-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
}

/* Footer */
.footer {
    margin-top: 32px;
    font-size: 0.82rem;
    color: rgba(209, 250, 229, 0.65);
    font-weight: 400;
}

/* ========================================================
   MEDIA QUERIES (ADAPTABILIDAD RESPONSIVA PARA CELULARES)
   ======================================================== */

/* Dispositivos Grandes y Tablets en Horizontal (≥ 580px) */
@media (min-width: 580px) {
    .actions-group {
        flex-direction: row;
    }
    .btn {
        flex: 1;
        padding: 16px 20px;
    }
}

/* Tablets Pequeñas y Celulares (≤ 768px) */
@media (max-width: 768px) {
    body {
        padding: 20px 14px;
    }

    .maintenance-card {
        padding: 38px 26px;
        border-radius: 26px;
    }

    .ambient-glow {
        filter: blur(70px);
    }
    
    .glow-1 {
        width: 380px;
        height: 380px;
    }
}

/* Celulares Estándar (≤ 480px) - iPhone, Samsung Galaxy, etc. */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
        justify-content: flex-start; /* Evita que el contenido quede recortado en pantallas con teclado o barras */
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .maintenance-card {
        padding: 30px 18px 26px 18px;
        border-radius: 22px;
        box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
    }

    /* Badge adaptado a móviles */
    .status-badge {
        font-size: 0.74rem;
        letter-spacing: 1px;
        padding: 6px 14px;
        margin-bottom: 20px;
        gap: 8px;
    }

    /* Logo optimizado para celular */
    .logo-wrapper {
        margin-bottom: 18px;
    }

    .logo-img {
        max-width: 180px;
        width: 65%;
    }

    /* Tagline */
    .business-tagline {
        font-size: 0.84rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    /* Títulos */
    .title {
        line-height: 1.28;
        margin-bottom: 10px;
    }

    .subtitle {
        line-height: 1.5;
        margin-bottom: 22px;
        padding: 0 4px;
    }

    .divider {
        margin-bottom: 20px;
    }

    .contact-prompt {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-bottom: 14px;
    }

    /* Botones fáciles de pulsar con el pulgar */
    .actions-group {
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 18px;
        border-radius: 14px;
    }

    .btn-icon svg {
        width: 24px;
        height: 24px;
    }

    .btn-label {
        font-size: 0.7rem;
    }

    .btn-value {
        font-size: 0.98rem;
    }

    .footer {
        margin-top: 26px;
        font-size: 0.78rem;
    }

    /* Luces reducidas para máxima fluidez en celulares */
    .glow-1 {
        width: 280px;
        height: 280px;
    }
    .glow-2, .glow-3 {
        display: none; /* Mejora drástica de rendimiento en móviles */
    }
}

/* Celulares Muy Compactos (≤ 360px) - iPhone SE, Galaxy A series compactos */
@media (max-width: 360px) {
    body {
        padding: 12px 8px;
    }

    .maintenance-card {
        padding: 24px 14px 20px 14px;
        border-radius: 18px;
    }

    .status-badge {
        font-size: 0.68rem;
        padding: 5px 12px;
    }

    .logo-img {
        max-width: 150px;
        width: 60%;
    }

    .title {
        font-size: 1.35rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 14px;
        gap: 10px;
    }

    .btn-value {
        font-size: 0.9rem;
    }
}

/* Soporte para preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *, ::after, ::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
