/* ============================================================
   PÁGINA "EN CONSTRUCCIÓN" — Agencia de Desarrollo Web
   Paleta:
     --color-primary-blue: #0096ff
     --color-accent-orange:#ff9845
     --color-text-dark:    #4a4a4a
     --color-bg-warm:      #fff8f6
   ============================================================ */

/* ===== 1. RESET & TOKENS ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary-blue: #0096ff;
    --color-accent-orange: #ff9845;
    --color-text-dark: #4a4a4a;
    --color-bg-warm: #fff8f6;

    /* Derivados */
    --color-blue-soft: rgba(0, 150, 255, 0.12);
    --color-orange-soft: rgba(255, 152, 69, 0.18);
    --color-text-muted: #7a7a7a;
    --color-border: rgba(74, 74, 74, 0.08);

    /* Tipografía */
    --font-heading: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Radios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* Transiciones */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== 2. BASE ===== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-warm);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;

    /* Asegura que el footer quede abajo */
}

strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* ===== 3. FONDO ANIMADO ===== */
.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
}

.orb--blue {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at 30% 30%, var(--color-primary-blue), transparent 70%);
    top: -120px;
    left: -120px;
    animation: float-slow 18s var(--ease-out) infinite alternate;
}

.orb--orange {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 70% 70%, var(--color-accent-orange), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: float-slow 22s var(--ease-out) infinite alternate-reverse;
}

.orb--blue-small {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--color-primary-blue), transparent 70%);
    top: 55%;
    right: 12%;
    opacity: 0.35;
    animation: float-medium 14s var(--ease-out) infinite alternate;
}

.orb--orange-small {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--color-accent-orange), transparent 70%);
    top: 18%;
    left: 22%;
    opacity: 0.4;
    animation: float-medium 17s var(--ease-out) infinite alternate-reverse;
}

/* Textura sutil tipo grain para dar profundidad */
.grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

@keyframes float-slow {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, 60px) scale(1.08); }
    100% { transform: translate(-30px, 40px) scale(1.04); }
}

@keyframes float-medium {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-30px, -40px) scale(1.1); }
    100% { transform: translate(25px, -25px) scale(1.05); }
}

/* ===== 4. LAYOUT PRINCIPAL ===== */
.container {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

/* ===== 5. LOGO ===== */
.logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.1s forwards;
}

/* Si subes una imagen de logo, reemplaza el span por <img> y se verá así: */
.logo-img {
    max-height: 56px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--color-primary-blue);
}

/* ===== 6. STATUS BADGE ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.4rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    box-shadow: 0 4px 24px rgba(74, 74, 74, 0.06);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.2s forwards;
}

.status-badge__dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-orange);
    border-radius: 50%;
    position: relative;
}

.status-badge__dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--color-accent-orange);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-ring 1.8s var(--ease-out) infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2);   opacity: 0;   }
}

/* ===== 7. HEADLINE ===== */
.headline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.25rem, 7vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-text-dark);
    margin-top: var(--space-xs);
    opacity: 0;
    animation: fade-up 0.9s var(--ease-out) 0.35s forwards;
}

.headline__highlight {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-accent-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Animación sutil del gradiente */
    background-size: 200% 200%;
    animation: fade-up 0.9s var(--ease-out) 0.35s forwards,
               gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ===== 8. SUBTÍTULO ===== */
.subtitle {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--color-text-muted);
    max-width: 540px;
    line-height: 1.7;
    opacity: 0;
    animation: fade-up 0.9s var(--ease-out) 0.5s forwards;
}

/* ===== 9. BARRA DE PROGRESO ===== */
.progress {
    width: 100%;
    max-width: 420px;
    margin-top: var(--space-sm);
    position: relative;
    opacity: 0;
    animation: fade-up 0.9s var(--ease-out) 0.65s forwards;
}

.progress::before {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background: rgba(74, 74, 74, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress__bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary-blue), var(--color-accent-orange));
    border-radius: var(--radius-full);
    /* La animación rellena la barra y mantiene un brillo pulsante al final */
    animation: fill-bar 2.4s var(--ease-out) 0.8s forwards,
               shimmer 2s linear 3.2s infinite;
}

@keyframes fill-bar {
    0%   { width: 0%; }
    100% { width: 75%; }
}

@keyframes shimmer {
    0%   { box-shadow: 0 0 0 0 rgba(0, 150, 255, 0); }
    50%  { box-shadow: 0 0 18px 2px rgba(0, 150, 255, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(0, 150, 255, 0); }
}

.progress__label {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== 10. SERVICIOS PREVIEW ===== */
.services {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: 0;
}

.service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-dark);
    box-shadow: 0 4px 16px rgba(74, 74, 74, 0.05);
    opacity: 0;
    animation: fade-up 0.7s var(--ease-out) forwards;
    transition: transform 0.3s var(--ease-spring),
                border-color 0.3s var(--ease-out),
                color 0.3s var(--ease-out);
}

.service:nth-child(1) { animation-delay: 0.85s; }
.service:nth-child(2) { animation-delay: 0.95s; }
.service:nth-child(3) { animation-delay: 1.05s; }

.service:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
}

.service__icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary-blue);
    transition: transform 0.4s var(--ease-spring);
}

.service:hover .service__icon {
    transform: rotate(20deg) scale(1.1);
    color: var(--color-accent-orange);
}

/* ===== 11. CONTACTO / CTAs ===== */
.contact {
    margin-top: var(--space-lg);
    width: 100%;
    opacity: 0;
    animation: fade-up 0.9s var(--ease-out) 1.2s forwards;
}

.contact__text {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring),
                box-shadow 0.3s var(--ease-out),
                background-color 0.3s var(--ease-out),
                color 0.3s var(--ease-out);
    will-change: transform;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Botón WhatsApp — sólido azul */
.btn--whatsapp {
    background: var(--color-primary-blue);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 150, 255, 0.3);
}

.btn--whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 150, 255, 0.45);
    background: #0088e6;
}

.btn--whatsapp:active {
    transform: translateY(-1px);
}

/* Botón Email — outline naranja */
.btn--email {
    background: transparent;
    color: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
}

.btn--email:hover {
    transform: translateY(-3px);
    background: var(--color-accent-orange);
    color: #fff;
    box-shadow: 0 12px 32px rgba(255, 152, 69, 0.35);
}

.btn--email:active {
    transform: translateY(-1px);
}

/* ===== 12. FOOTER ===== */
.footer {
    text-align: center;
    padding: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 1.4s forwards;
}

/* ===== 13. ANIMACIÓN ENTRADA ===== */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 14. RESPONSIVE ===== */
@media (max-width: 600px) {
    .container {
        padding: var(--space-lg) var(--space-sm) var(--space-md);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact__actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Orbs más chicos en mobile para no recargar */
    .orb--blue,
    .orb--orange {
        width: 320px;
        height: 320px;
    }
}

/* ===== 15. ACCESIBILIDAD — respeta prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .progress__bar { width: 75%; }
    .logo,
    .status-badge,
    .headline,
    .subtitle,
    .progress,
    .service,
    .contact,
    .footer { opacity: 1; }
}

/* ===== 16. FOCUS VISIBLE para accesibilidad keyboard ===== */
a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--color-primary-blue);
    outline-offset: 3px;
    border-radius: var(--radius-md);
}
