/* ==========================================================================
   DevStudio — estilos
   1. Variables   2. Base   3. Navegación   4. Portada   5. Secciones
   6. Servicios   7. Proyectos   8. Nosotros   9. Contacto   10. Pie
   11. Visor de capturas   12. Notificación y WhatsApp   13. Móvil
   ========================================================================== */

/* --- 1. VARIABLES --- */
:root {
    --bg: #0a0a0a;
    --surface: #111417;
    --surface-2: #161b20;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(6, 182, 212, 0.45);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #06b6d4;
    --accent-bright: #22d3ee;
    --accent-soft: rgba(6, 182, 212, 0.12);
    --danger: #f87171;

    --radius-lg: 20px;
    --radius: 14px;
    --radius-sm: 8px;
    --nav-h: 72px;
    --container: 1120px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- 2. BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; text-wrap: balance; }

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--accent);
    color: #000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 24px rgba(6, 182, 212, 0.35);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--accent);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #021014;
}
.btn-primary:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.45);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(10, 10, 10, 0.4);
    color: var(--accent);
}
.btn-ghost:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* --- 3. NAVEGACIÓN --- */
.nav-wrap {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 16px;
    pointer-events: none;
}

.nav-main {
    pointer-events: auto;
    max-width: var(--container);
    margin: 0 auto;
    height: 64px;
    padding: 0 12px 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-brand {
    font-size: 1.6rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-decoration: none;
    line-height: 1;
}
.nav-brand b { font-weight: 800; }
.nav-brand span { font-weight: 300; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-menu .nav-cta {
    margin-left: 8px;
    background: var(--accent);
    color: #021014;
    font-weight: 600;
}
.nav-menu .nav-cta:hover,
.nav-menu .nav-cta.active {
    background: var(--accent-bright);
    color: #021014;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

/* --- 4. PORTADA --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 40px) 24px 80px;
    overflow: hidden;
    isolation: isolate;
}

#animated-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

/* Oscurece el centro para que el texto se lea sobre la animación
   y funde la parte de abajo con el resto de la página */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 50% 50%, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.35) 60%, transparent 100%),
        linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}

.hero-text { max-width: 860px; }

.hero h1 {
    font-size: clamp(1.95rem, 5.2vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero h1 .highlight { display: block; }

.hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: #cbd5e1;
    font-weight: 300;
    max-width: 40em;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 1.1rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    animation: cue 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--accent); }

@keyframes cue {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* --- 5. SECCIONES --- */
.section {
    padding: clamp(72px, 10vw, 120px) 0;
    scroll-margin-top: 70px;
}

.section + .section { border-top: 1px solid rgba(148, 163, 184, 0.06); }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

/* --- 6. SERVICIOS --- */
.service-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px 12px;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.service-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 22px 0;
}
.service-item + .service-item { border-top: 1px solid var(--border); }

.service-item > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.1rem;
}

.service-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.service-item p { color: var(--muted); font-size: 0.95rem; }

/* --- 7. PROYECTOS --- */
.showcases {
    display: grid;
    gap: clamp(72px, 10vw, 128px);
}

.showcase {
    --p-color: #06b6d4;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.showcase.reverse { grid-template-columns: 1fr 1.3fr; }
.showcase.reverse .showcase-media { order: 2; }

/* Escenario de las capturas, con brillo del color del proyecto */
.showcase-media {
    position: relative;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 28px;
    border: 1px solid var(--border);
    background-color: var(--surface);
    background-image:
        radial-gradient(ellipse 70% 60% at 35% 35%, color-mix(in srgb, var(--p-color) 30%, transparent), transparent 70%),
        radial-gradient(ellipse 50% 50% at 90% 100%, color-mix(in srgb, var(--p-color) 18%, transparent), transparent 70%);
    isolation: isolate;
}
.showcase-media.has-phone { padding-right: clamp(56px, 9vw, 110px); padding-bottom: clamp(40px, 6vw, 72px); }

.shot {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.shot img { width: 100%; height: auto; display: block; }

/* Marco de navegador para capturas de PC */
.shot-desktop {
    border-radius: 12px;
    overflow: hidden;
    background: #0f1215;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    background: #1a1f25;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.shot-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

/* Marco de teléfono para capturas de celular */
.shot-phone {
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 5px solid #1c2128;
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.has-phone .shot-phone {
    position: absolute;
    right: clamp(14px, 2.5vw, 28px);
    bottom: clamp(-28px, -2vw, -14px);
    width: 26%;
    z-index: 2;
}

.only-phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6%;
}
.only-phones .shot-phone { width: 36%; }
.only-phones .shot-phone:nth-child(2) { transform: translateY(-20px); }

.shot:hover { transform: translateY(-6px); }
.has-phone .shot-phone:hover { transform: translateY(-8px) rotate(-1deg); }

/* Texto del proyecto */
.showcase-body { display: flex; flex-direction: column; gap: 14px; }

.showcase-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--p-color);
    font-size: 0.9rem;
    font-weight: 500;
}
.showcase-category::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--p-color);
}

.showcase-title { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.01em; }
.showcase-desc { color: #cbd5e1; font-size: 1rem; max-width: 52ch; }

.showcase-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.showcase-tags li {
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
}

.showcase-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.thumb {
    display: block;
    width: 76px;
    height: 52px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.thumb-phone img { object-position: top center; }
.thumb:hover { opacity: 1; border-color: var(--p-color); transform: translateY(-2px); }

.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

.projects-empty {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 56px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.projects-empty[hidden] { display: none; }
.projects-empty i { font-size: 2rem; color: var(--accent); }
.projects-empty p { color: var(--muted); max-width: 46ch; }

/* --- 8. NOSOTROS --- */
.about {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p { color: #cbd5e1; margin-bottom: 16px; max-width: 58ch; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-more { margin-top: 8px; }
.about-more i { transition: transform 0.3s var(--ease); }
.about-more[aria-expanded="true"] i { transform: rotate(180deg); }

/* Panel "Conoce más": experiencia del fundador */
.experience {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    position: relative;
    isolation: isolate;
}

/* Ángulo animable para que la luz gire alrededor del panel */
@property --neon-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: true;
}

.experience {
    --neon: conic-gradient(
        from var(--neon-angle),
        rgba(6, 182, 212, 0.18) 0%,
        rgba(6, 182, 212, 0.18) 55%,
        #06b6d4 70%,
        #a5f3fc 79%,
        #06b6d4 85%,
        rgba(6, 182, 212, 0.18) 96%
    );
}

/* Resplandor difuso que sigue a la luz (queda por fuera del panel) */
.experience::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    background: var(--neon);
    filter: blur(18px);
    opacity: 0.7;
    pointer-events: none;
}

/* Fondo del panel + borde con la luz neón que recorre el contorno */
.experience::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    border: 2px solid transparent;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(6, 182, 212, 0.14), transparent 70%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--neon) border-box;
    pointer-events: none;
}

.experience[hidden] { display: none; }
.experience:not([hidden]) { animation: reveal 0.45s var(--ease), neon-spin 4s linear infinite; }

@keyframes neon-spin {
    to { --neon-angle: 360deg; }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.experience-text h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: 14px; }
.experience-text p { color: #cbd5e1; margin-bottom: 12px; max-width: 54ch; }
.experience-text p:last-child { margin-bottom: 0; }

.experience-caption { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }

.experience-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.experience-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.55);
}
.experience-list strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.experience-list span { font-size: 0.82rem; color: var(--muted); }

.steps { display: grid; gap: 4px; }

.steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    padding: 16px 0;
    position: relative;
}

/* Línea que une los pasos */
.steps li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 58px;
    bottom: -14px;
    width: 1px;
    background: var(--border-strong);
    opacity: 0.5;
}

.step-n {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--bg);
}

.steps h3 { font-size: 1.05rem; margin-bottom: 2px; padding-top: 6px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* --- 9. CONTACTO --- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.contact-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }

.contact-channels { display: grid; gap: 12px; }

.channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.25s;
}
.channel:hover { border-color: var(--border-strong); }
.channel i { font-size: 1.4rem; color: var(--accent); width: 28px; text-align: center; }
.channel-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.channel-label { font-size: 0.8rem; color: var(--muted); }
.channel-value { font-weight: 500; overflow-wrap: anywhere; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.optional { color: var(--muted); font-weight: 400; }

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}

textarea { resize: vertical; min-height: 110px; }
::placeholder { color: #64748b; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
option { background: var(--bg); color: var(--text); }

.invalid, .invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }

.form-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin: -4px 0 14px;
}

/* --- 10. PIE --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand { font-size: 1.3rem; }
.footer p { color: var(--muted); font-size: 0.88rem; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--border-strong); }

/* --- 11. VISOR DE CAPTURAS --- */
.lightbox {
    width: min(1200px, 94vw);
    max-width: none;
    max-height: 96vh;
    margin: auto;
    padding: 56px 0 0;
    border: none;
    background: transparent;
    color: var(--text);
    overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop 0.25s var(--ease); }

@keyframes pop {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.lightbox-figure img {
    max-height: calc(96vh - 150px);
    width: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.lightbox-figure figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    max-width: 70ch;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}
.lightbox-figure figcaption strong { color: var(--text); font-weight: 600; }
.lightbox-counter { font-size: 0.8rem; opacity: 0.8; }

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.85);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color 0.2s, border-color 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { color: var(--accent); border-color: var(--border-strong); }

.lightbox-close { top: 0; right: 0; }
.lightbox-nav { top: calc(50% + 10px); transform: translateY(-50%); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox-nav[hidden] { display: none; }

/* --- 12. NOTIFICACIÓN Y WHATSAPP --- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 24px);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(480px, calc(100vw - 32px));
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast i { color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }
.toast.error { border-color: var(--danger); }
.toast.error i { color: var(--danger); }

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float[hidden] { display: none; }

/* --- 13. MÓVIL Y TABLET --- */
@media (max-width: 960px) {
    .about, .contact { grid-template-columns: 1fr; gap: 40px; }
    .experience { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
    .nav-main { padding: 0 8px 0 24px; }

    .menu-toggle { display: grid; place-items: center; }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(6, 182, 212, 0.3);
        border-radius: var(--radius-lg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    }

    .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

    .nav-menu a { padding: 14px 18px; font-size: 1.05rem; border-radius: 12px; }
    .nav-menu .nav-cta { margin: 6px 0 0; text-align: center; }

    .service-groups { grid-template-columns: 1fr; }

    .showcase,
    .showcase.reverse { grid-template-columns: 1fr; gap: 36px; }
    .showcase.reverse .showcase-media { order: 0; }
}

@media (max-width: 560px) {
    .container { padding: 0 20px; }
    .nav-brand { font-size: 1.35rem; }

    .hero { padding: calc(var(--nav-h) + 24px) 20px 72px; }
    .hero::after {
        background:
            radial-gradient(ellipse 95% 50% at 50% 48%, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.5) 60%, rgba(10, 10, 10, 0.2) 100%),
            linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
    }
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.65rem; right: 16px; bottom: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }

    .service-group { padding: 22px 20px 6px; }
    .contact-form { padding: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer-inner { flex-direction: column; text-align: center; }

    .lightbox-nav.prev { left: 4px; }
    .lightbox-nav.next { right: 4px; }
}

/* Respeta la preferencia de "reducir movimiento" del sistema */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
