/* Fuente cargada via <link> en HTML para evitar @import bloqueante */

/* ── Skip Link (Accesibilidad) ────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-lime);
    color: var(--color-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

:root {
    --color-dark: #000052;
    --color-section-alt: #0d0d0f;
    --color-accent-lime: #00ff00;
    --color-accent-orange: #ff6400;
    --color-gray: #b0b0b0;
    --color-white: #ffffff;
    --font-main: 'Space Grotesk', sans-serif;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-accent-lime {
    color: var(--color-accent-lime);
}

.text-accent-orange {
    color: var(--color-accent-orange);
}

.text-gray {
    color: var(--color-gray);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(0, 0, 52, 0.4);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-accent-lime);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 0.8rem 5%;
    background: rgba(0, 0, 52, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-accent-lime);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(1);
    transition: var(--transition-smooth);
}

.logo-img:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
}

/* Logo en la sección Nosotros */
.brand-logo-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 255, 0, 0.15));
}

/* Logo en el Footer */
.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.footer-logo-img:hover {
    opacity: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--color-accent-lime);
}

.cta-button {
    background: linear-gradient(135deg, var(--color-accent-orange), #e85a00);
    color: var(--color-white);
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 100, 0, 0.35);
}

/* ══ Hero Section — MOBILE FIRST ══════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 8rem 5% 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 70% 50%, rgba(0, 255, 0, 0.04), transparent),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(255, 100, 0, 0.03), transparent),
        var(--color-dark);
}

.hero-content {
    z-index: 2;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ── Carousel ─────────────────────────────────────────── */
.hero-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 en mobile */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out, visibility 0s linear 1.5s;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 1.5s ease-in-out, visibility 0s linear 0s;
    z-index: 1;
}

.carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
    filter: drop-shadow(0 0 30px rgba(0, 255, 0, 0.08));
}


/* ── Carousel Controls ────────────────────────────────── */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.08);
    color: var(--color-accent-lime);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-accent-lime);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--color-accent-lime);
    border-color: var(--color-accent-lime);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(0, 255, 0, 0.5);
    border-color: rgba(0, 255, 0, 0.5);
}

/* ── Tablet (600px+) ──────────────────────────────────── */
@media (min-width: 600px) {
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-visual {
        max-width: 600px;
    }
}

/* ── Desktop (969px+) ─────────────────────────────────── */
@media (min-width: 969px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 8rem 5% 4rem;
    }

    .hero-content {
        flex: 1;
        padding-right: 5%;
        margin-bottom: 0;
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 5.5vw, 3.5rem);
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 3rem;
    }

    .hero-visual {
        flex: 1.2;
        max-width: none;
    }

    .carousel-container {
        padding-bottom: 75%;
        /* 4:3 en desktop */
    }

    .hero-visual:hover .carousel-image {
        transform: scale(1.02);
        transition: transform 0.6s var(--ease-smooth);
    }
}

/* Feature Points */
.hero-features-inline {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-lime);
    flex-shrink: 0;
}

.feature-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-label strong {
    font-size: 0.85rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-label span {
    font-size: 0.75rem;
    color: var(--color-gray);
}

/* Showcase Section */
.showcase {
    padding: 8rem 5%;
    background:
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0, 255, 0, 0.04), transparent),
        var(--color-section-alt);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}

.showcase-item:hover {
    box-shadow: 0 20px 50px rgba(0, 255, 0, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 255, 0, 0.15);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 82, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
    opacity: 1;
}

.showcase-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-lime);
}

.showcase-overlay p {
    font-size: 0.9rem;
    color: var(--color-white);
}

/* Section Shared */
.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -2rem auto 4rem;
}

/* Proyectos */
.proyectos {
    padding: 8rem 5%;
    background: var(--color-dark);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.proyecto-wide {
    grid-column: span 2;
}

.proyecto-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}

.proyecto-card:hover {
    box-shadow: 0 15px 40px rgba(0, 255, 0, 0.08);
    border-color: rgba(0, 255, 0, 0.12);
}

.proyecto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proyecto-card:hover img {
    transform: scale(1.08);
}

.proyecto-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 82, 0.95), transparent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-white);
}

/* Nosotros */
.nosotros {
    padding: 8rem 5%;
    background: var(--color-section-alt);
}

.nosotros-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nosotros-text {
    flex: 1;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--color-accent-lime);
    margin-bottom: 1rem;
    border-left: 3px solid var(--color-accent-lime);
    padding-left: 0.75rem;
}

.nosotros-text h2 {
    font-size: 2.5rem;
    text-transform: none;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.nosotros-text p {
    color: var(--color-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.nosotros-stats {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nosotros-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nosotros-stats strong {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.nosotros-stats span {
    font-size: 0.8rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nosotros-visual {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-box {
    width: 320px;
    height: 320px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.brand-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.06), transparent 70%);
}

.chevrons {
    font-size: 5rem;
    background: linear-gradient(90deg, var(--color-accent-lime), var(--color-accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.2em;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--color-white);
}

.brand-sub {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: var(--color-accent-lime);
    margin-top: 0.25rem;
}

/* Contacto — Two column layout */
.contacto {
    padding: 8rem 5%;
    background: var(--color-section-alt);
}

.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

/* Left info panel */
.contacto-info h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    text-transform: none;
    margin: 1rem 0 1.5rem;
}

.contacto-info>p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.upload-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.upload-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.uf-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 255, 0, 0.08);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-features li div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.upload-features li strong {
    font-size: 0.95rem;
    color: var(--color-white);
}

.upload-features li span {
    font-size: 0.82rem;
    color: var(--color-gray);
}

.contacto-direct {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.direct-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-gray);
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition-smooth);
    width: fit-content;
}

.direct-link:hover {
    border-color: var(--color-accent-lime);
    color: var(--color-white);
    background: rgba(0, 255, 0, 0.05);
}

.direct-link--wa:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.07);
}

/* Right form panel */
.contacto-form-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.cotizar-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.cotizar-form input,
.cotizar-form select,
.cotizar-form textarea {
    font-family: var(--font-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition-smooth);
    outline: none;
}

.cotizar-form input::placeholder,
.cotizar-form textarea::placeholder {
    color: rgba(176, 176, 176, 0.7);
}

.cotizar-form select option {
    background: var(--color-section-alt);
    color: var(--color-white);
}

.cotizar-form input:focus,
.cotizar-form select:focus,
.cotizar-form textarea:focus {
    border-color: var(--color-accent-lime);
    background: rgba(0, 255, 0, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.08);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(0, 255, 0, 0.25);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    background: rgba(0, 255, 0, 0.02);
    position: relative;
}

.upload-zone:hover,
.upload-zone--drag {
    border-color: var(--color-accent-lime);
    background: rgba(0, 255, 0, 0.05);
}

.upload-zone--done {
    border-color: rgba(0, 255, 0, 0.5);
    border-style: solid;
}

.upload-zone-icon {
    font-size: 2rem;
}

.upload-zone-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upload-zone-text strong {
    font-size: 0.95rem;
    color: var(--color-white);
}

.upload-zone-text span {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.upload-zone-text small {
    font-size: 0.75rem;
    color: rgba(176, 176, 176, 0.7);
    margin-top: 0.2rem;
}

/* Uploaded file list */
.upload-file-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 255, 0, 0.07);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.ufi-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ufi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ufi-info strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.ufi-info span {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.ufi-remove {
    color: var(--color-accent-orange);
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.85rem;
    flex-shrink: 0;
    opacity: 0.7;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.ufi-remove:hover {
    opacity: 1;
    background: rgba(255, 100, 0, 0.15);
}

/* Progress bar */
.upload-progress-wrap {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    height: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.upload-progress-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--color-accent-lime), var(--color-accent-orange));
    border-radius: 100px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-label {
    font-size: 0.75rem;
    color: var(--color-gray);
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Submit row */
.form-submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.submit-btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-family: var(--font-main);
    min-width: 220px;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: rgba(176, 176, 176, 0.7);
    text-align: center;
    max-width: 380px;
}

/* Success / Error states */
.form-success,
.form-error {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.form-success .success-icon {
    font-size: 3rem;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--color-accent-lime);
}

.form-success p,
.form-error p {
    color: var(--color-gray);
}

.form-error a {
    color: var(--color-accent-lime);
}

/* Shake animation for invalid fields */
@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.input-shake {
    animation: inputShake 0.5s ease;
}


/* Partner Logos */
.logo-strip {
    background: rgba(13, 13, 15, 0.7);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
}

.partners-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--color-accent-lime);
    margin-bottom: 2.5rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.8;
}

.logos-wrapper {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.logos-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 1.5rem;
    flex-wrap: nowrap;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.logo-strip:hover .logos-wrapper {
    animation-play-state: paused;
}

.brand-logo {
    max-height: 28px;
    max-width: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.4s var(--ease-smooth);
}

.logo-item:hover .brand-logo {
    filter: none;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Efecto de desvanecimiento a los lados */
.logo-strip::before,
.logo-strip::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-strip::before {
    left: 0;
    background: linear-gradient(to right, #0d0d0f, transparent);
}

.logo-strip::after {
    right: 0;
    background: linear-gradient(to left, #0d0d0f, transparent);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #090909, #050505);
    border-top: 1px solid rgba(0, 255, 0, 0.08);
    padding: 4rem 5% 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--color-gray);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-gray);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-accent-lime);
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.showcase-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.showcase-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.showcase-grid .reveal:nth-child(4) {
    transition-delay: 0.15s;
}

.showcase-grid .reveal:nth-child(5) {
    transition-delay: 0.25s;
}

.showcase-grid .reveal:nth-child(6) {
    transition-delay: 0.3s;
}

/* ── Mobile Hamburger Menu ─────────────────────────────── */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Back to Top Button ────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent-orange);
    color: var(--color-white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 100, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-lime);
    color: var(--color-dark);
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3);
}

/* ── Active Nav Link ───────────────────────────────────── */
nav a.active {
    color: var(--color-accent-lime);
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-lime);
    border-radius: 1px;
}

/* ── Focus Visible (Accesibilidad) ─────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-accent-lime);
    outline-offset: 2px;
}

.cta-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.4);
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive (non-hero items) ───────────────────────── */
@media (max-width: 968px) {

    /* Mobile menu */
    .menu-toggle {
        display: flex;
    }

    /* Reforzar la línea verde en móvil */
    header {
        border-bottom: 1px solid var(--color-accent-lime) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    }

    .header-cta {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(13, 13, 15, 0.97);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s var(--ease-smooth);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Showcase overlays always visible on touch */
    .showcase-overlay {
        transform: translateY(0);
        opacity: 1;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .proyecto-wide {
        grid-column: span 1;
    }

    .nosotros-content {
        flex-direction: column;
        gap: 3rem;
    }

    .nosotros-visual {
        flex: none;
    }

    .nosotros-stats {
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contacto-form-wrap {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .back-to-top {
        bottom: 5rem;
        right: 1.5rem;
    }

    .hero-features-inline {
        justify-content: center;
    }

    .logo-strip {
        padding: 1.5rem 0;
    }

    .partners-label {
        margin-bottom: 1.5rem;
    }

    .logos-row {
        gap: 2rem;
        padding: 0 1rem;
    }

    .logo-item {
        width: 60px;
        height: 22px;
    }

    .brand-logo {
        max-height: 22px;
        max-width: 60px;
    }
}

/* =====================
   TESTIMONIOS
   ===================== */
.testimonios {
    padding: 8rem 5%;
    background: var(--color-dark);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}

.testimonial-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 255, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 0, 0.2);
}

.testimonial-stars {
    color: var(--color-accent-lime);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-name {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-meta {
    color: var(--color-accent-lime);
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.testimonios-cta {
    text-align: center;
}

.testimonios-link {
    display: inline-block;
    color: var(--color-gray);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.testimonios-link:hover {
    color: var(--color-white);
    border-color: rgba(0, 255, 0, 0.4);
}

@media (max-width: 768px) {
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile overlay backdrop */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 30, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}