/* FLUID GLASSMORPHISM VIBRANT THEME */

:root {
    --bg-base: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --color-1: #ff007f;
    /* Vibrant Pink */
    --color-2: #00d2ff;
    /* Bright Cyan */
    --color-3: #ffaa00;
    /* Neon Orange */
    --color-4: #8a2be2;
    /* Deep Purple */

    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--color-2);
    color: var(--bg-base);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
.title-xl {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.title-xl {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.fluid-gradient {
    background-image: linear-gradient(90deg, var(--color-1), var(--color-2), var(--color-4), var(--color-1));
    background-size: 300% 100%;
    animation: gradientShift 8s ease infinite;
}

.gradient-blue {
    background-image: linear-gradient(135deg, #00d2ff, #3a7bd5);
}

.gradient-purple {
    background-image: linear-gradient(135deg, #8a2be2, #ff007f);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Fluid Mesh Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-base);
}

/* .color-blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--color-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--color-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 60%;
    width: 40vw;
    height: 40vw;
    background: var(--color-3);
    animation-delay: -10s;
}

.blob-4 {
    bottom: 20%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: var(--color-4);
    animation-delay: -15s;
} */

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10%, 15%) scale(1.1);
    }

    66% {
        transform: translate(-10%, 5%) scale(0.9);
    }

    100% {
        transform: translate(5%, -15%) scale(1);
    }
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-xl);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.glass-nav.scrolled .nav-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 2.5rem;
}

.brand img {
    height: 75px;
    /* Aumentado ~20% */
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s;
}

.brand:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hover-underline {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-2);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.hover-underline:hover::after {
    width: 100%;
}

.btn-glass {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 160px 5% 40px;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-container {
    flex: 1;
    max-width: 800px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-container.full-width-centered {
    max-width: 1000px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    max-width: 90%;
    justify-content: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-2), 0 0 20px var(--color-2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 210, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

.hero-title {
    font-size: clamp(2rem, 8vw, 6.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    perspective: 1000px;
}

.hero-img-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 210, 255, 0.1);
}

.hero-img-container:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 210, 255, 0.2), transparent);
    pointer-events: none;
}

@media (max-width: 1100px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero-container {
        align-items: center;
        text-align: center;
        margin-bottom: 4rem;
    }

    .hero-img-container {
        transform: none;
        max-width: 500px;
    }
}

.btn-glow {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    background: var(--text-primary);
    color: var(--bg-base);
    transition: all 0.3s ease;
    border: none;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--color-1), var(--color-2), var(--color-3));
    z-index: -1;
    border-radius: 50px;
    background-size: 200% auto;
    filter: blur(10px);
    opacity: 0.6;
    transition: opacity 0.3s ease, background-position 0.3s;
    animation: gradientShift 4s infinite alternate;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-glow:hover::before {
    opacity: 1;
    filter: blur(15px);
}

.btn-glow.large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

/* Floating Decor */
.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.c-1 {
    top: 25%;
    left: 10%;
    transform: rotate(-5deg);
    animation: floatY 6s ease-in-out infinite alternate;
}

.c-2 {
    top: 60%;
    right: 12%;
    transform: rotate(8deg);
    animation: floatY 8s ease-in-out infinite alternate-reverse;
}

.c-3 {
    bottom: 20%;
    left: 15%;
    transform: rotate(3deg);
    animation: floatY 7s ease-in-out infinite alternate;
}

@keyframes floatY {
    from {
        transform: translateY(0) rotate(-5deg);
    }

    to {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Experience / Bento Grid */
.experience-section,
.services-section {
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.section-desc {
    max-width: 600px;
    margin: 1.5rem auto 0;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.span-2 {
    grid-column: span 2;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-secondary);
}

.highlight-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(255, 0, 127, 0) 0%, rgba(255, 0, 127, 0.1) 25%, rgba(0, 210, 255, 0.1) 50%, rgba(255, 0, 127, 0) 100%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

.highlight-card .card-content {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Services Horizontal Layout */
.service-cards-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-compact-card {
    padding: 2.5rem 2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
}

.service-compact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.service-compact-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.service-compact-card p {
    font-size: 0.95rem;
    margin-bottom: auto;
    color: var(--text-secondary);
}

.read-more {
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-2);
    text-transform: uppercase;
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    /* Cambio de center a flex-start para permitir scroll */
    z-index: 5000;
    /* Aumentado para estar sobre todo */
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    /* Permitir scroll vertical en el overlay */
    padding: 2rem 1rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 700px;
    width: 100%;
    padding: 3rem;
    position: relative;
    margin: auto;
    /* Centrado cuando hay espacio */
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

#modal-body-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

#modal-body-content p {
    font-size: 1.25rem;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .service-cards-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-cards-horizontal {
        grid-template-columns: 1fr;
    }
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.sol-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.sol-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-2);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.1);
}

.sol-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.sol-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

/* Tech Spec Grid */
.tech-spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 450px;
}

.tech-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tech-body {
    margin-top: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tech-item strong {
    font-size: 1.1rem;
    color: var(--color-2);
}

.tech-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.small-cards-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.small-sol-card {
    flex: 1 1 250px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.small-sol-card h4 {
    color: var(--color-2);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.card-img-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sol-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.glass-panel:hover .sol-img {
    transform: scale(1.05);
}

.mt-4 {
    margin-top: 2rem;
}

/* Quotation Form Section & Container */
.quote-section {
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.quote-wrapper {
    padding: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.quote-header {
    text-align: center;
    margin-bottom: 4rem;
}

.quote-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Quotation Form Styles */
.quotation-form {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.size-inputs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.form-divider {
    margin: 3rem 0 2rem;
    position: relative;
    text-align: center;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.form-divider span {
    position: relative;
    background: var(--bg-base);
    /* Base bg color */
    padding: 0 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-2);
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-2);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {

    .solutions-grid,
    .tech-spec-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .size-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .size-inputs-grid {
        grid-template-columns: 1fr;
    }
}

.products-marquee {
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: rotate(-1deg) scale(1.05);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: flow 25s linear infinite;
    gap: 3rem;
    align-items: center;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.marquee-track .dot {
    color: var(--color-1);
}

@keyframes flow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Brands Section */
.brands-section {
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.brands-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.brands-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 3rem 2rem;
    gap: 2rem;
}

.brand-item {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.brand-item:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Footer */
.glass-footer {
    position: relative;
    padding: 2rem 0;
    z-index: 2;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.footer-cta {
    margin-bottom: 6rem;
}

.footer-cta h2 span {
    display: block;
    background-image: linear-gradient(90deg, var(--color-3), var(--color-1));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.secondary-logo {
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.secondary-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-logo {
    height: 75px;
    /* Aumentado ~20% */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer-brand p,
.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-info {
    text-align: right;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Portfolio Section Styles */
.portfolio-section {
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img-wrap img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 3000;
    transition: transform 0.3s;
    animation: pulse-phone 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Responsive Layouts --- */
@media (max-width: 1100px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-container {
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-content {
        padding: 0.5rem 1.5rem;
        border-radius: 30px;
    }

    .brand img {
        height: 60px;
    }

    .quote-wrapper {
        padding: 2rem 1rem;
    }

    .quote-header h2 {
        font-size: 2.2rem;
    }

    .title-xl {
        font-size: 2.5rem;
    }

    /* Técnica de Slider Horizontal para Soluciones y Portafolio */
    .solutions-grid,
    .portfolio-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem !important;
        gap: 1rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -1rem !important;
        padding: 0 1rem 1.5rem !important;
    }

    .solutions-grid::-webkit-scrollbar,
    .portfolio-grid::-webkit-scrollbar {
        display: none !important;
    }

    .sol-card,
    .portfolio-item {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
    }

    .small-cards-row {
        flex-direction: row;
        gap: 0.8rem;
    }

    .small-sol-card {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .small-sol-card h4 {
        font-size: 1rem;
    }

    .tech-spec-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .tech-card {
        padding: 1.5rem;
    }

    .sol-img {
        height: 140px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    :root {
        --radius-lg: 16px;
        --radius-xl: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-glow {
        width: 100%;
        text-align: center;
    }

    .nav-content {
        padding: 0.5rem 1rem;
    }

    .brand img {
        height: 50px;
    }

    .sol-card,
    .tech-card,
    .small-sol-card {
        padding: 1.5rem;
    }

    .hero-section {
        padding-top: 120px;
    }

    .marquee-track span {
        font-size: 1.1rem;
    }

    /* Ajustes específicos de modal para móviles */
    .modal-content {
        padding: 3rem 1.5rem 2rem;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }

    #modal-body-content h2 {
        font-size: 1.8rem;
    }

    #modal-body-content p {
        font-size: 1rem;
    }
}