:root {
  /* Paleta base iProject */
  --color-agave-deep:     #0D3B52;  /* Fondo hero, navbar, footer */
  --color-agave-mid:      #1A6B8A;  /* Secciones alternas, íconos secundarios */
  --color-agave-light:    #2492B8;  /* Acentos, bordes activos */
  --color-teal-bright:    #5BA8C4;  /* Hover states, texto secundario sobre oscuro */

  /* Contrastes */
  --color-ivory:          #F5F0E8;  /* Fondo de cards sobre oscuros */
  --color-celeste-soft:   #E8F4F8;  /* Cards sobre blancos */
  --color-graphite:       #1A2A34;  /* Secciones intermedias, cuerpo claro */
  --color-amber:          #D4A853;  /* CTA primario, íconos */
  --color-white:          #FFFFFF;  /* Texto sobre oscuro, sección marcas */
}

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

body {
    background-color: var(--color-agave-deep);
    color: var(--color-white);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 1. Volumetric Spotlight (Spotlight cenital) */
body::before {
    content: '';
    position: absolute;
    top: -30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 60%);
    pointer-events: none;
    z-index: 1;
}

/* 6. Particles Wrapper */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Behind the sections and cards */
    pointer-events: none; /* Let clicks pass through */
}

/* 3. Top Navigation Bar */
.top-nav {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 100;
}

.header-logo {
    height: 60px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.top-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-teal-bright);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.top-nav a:hover {
    color: var(--color-teal-bright);
}

.top-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    perspective: 1200px;
}

/* 2. Background Typography */
.background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18vw;
    font-weight: 700;
    color: #FFFFFF;
    opacity: 0.12;
    mix-blend-mode: overlay;
    z-index: 5; /* behind model */
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    letter-spacing: -2px;
}

/* 4. Central 3D Object */
.model-container {
    position: relative;
    z-index: 20;
    width: 50vh; /* Scaled to 50% of vertical viewport roughly */
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s linear; /* extremely short transition to smooth JS updates */
}

/* The actual image floating */
.floating-model {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
    animation: gravityZero 6s ease-in-out infinite;
    transform-origin: center;
}

/* Gravity Zero Animation */
@keyframes gravityZero {
    0%   { transform: translateY(-20px); }
    50%  { transform: translateY(20px); }
    100% { transform: translateY(-20px); }
}

/* 5. Hotspots */
.hotspot {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 30;
    transform: translate(-50%, -50%) translateZ(40px); /* Push it forward in 3D space */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hotspot:hover {
    transform: translate(-50%, -50%) translateZ(60px) scale(1.15);
    border-color: rgba(91, 168, 196, 0.6);
}

.hotspot .dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-amber);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-amber);
    animation: pulseAmber 2s infinite;
}

@keyframes pulseAmber {
    0% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.8); }
    70% { box-shadow: 0 0 0 15px rgba(212, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0); }
}

/* Glass Card Tooltip */
.hotspot-card {
    position: absolute;
    top: 50%;
    left: 45px; /* Offset to the right of the dot */
    transform: translateY(-50%) translateZ(50px) scale(0.95);
    transform-origin: left center;
    background: rgba(15, 23, 42, 0.4); /* Translúcido */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    width: max-content;
    max-width: 250px;
    opacity: 0;
    pointer-events: none; /* Ignore clicks when hidden */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Connecting line design */
.hotspot-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -25px; /* Span the gap to the dot */
    width: 25px;
    height: 1px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.8), transparent);
    transform: translateY(-50%);
}

.hotspot:hover .hotspot-card,
.hotspot.active .hotspot-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateZ(50px) scale(1);
}

.hotspot-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.hotspot-card p {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    opacity: 0.9;
}

/* 7. Bottom Tagline */
.tagline {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    font-size: 1.125rem; /* 18px */
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-muted);
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
    z-index: 50;
    text-transform: uppercase;
}

.tagline:hover {
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px var(--cyan);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .background-text {
        font-size: 24vw; /* Larger on mobile */
    }
    
    .top-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tagline {
        font-size: 0.85rem;
        letter-spacing: 2px;
        bottom: 30px;
        padding: 0 20px;
    }
    
    .model-container {
        width: 65vw;
        height: 65vw;
    }
    
    /* Reposition cards for mobile to avoid going off screen */
    .hotspot-card {
        left: 50%;
        top: 45px;
        transform: translateX(-50%) translateZ(50px) scale(0.95);
        transform-origin: top center;
    }
    
    .hotspot-card::before {
        top: -25px;
        left: 50%;
        width: 1px;
        height: 25px;
        background: linear-gradient(180deg, rgba(6, 182, 212, 0.8), transparent);
        transform: translateX(-50%);
    }
    
    .hotspot.active .hotspot-card {
        transform: translateX(-50%) translateZ(50px) scale(1);
    }
}

/* =========================================
   NUEVAS SECCIONES (Acerca de & Footer)
========================================= */
.about-section {
    position: relative;
    z-index: 10;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background-color: transparent;
}

.glass-panel {
    background: var(--color-celeste-soft);
    border-radius: 16px;
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.about-section .glass-panel {
    background: var(--color-ivory);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-agave-deep);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--color-graphite);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.site-footer {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem 2rem;
    display: flex;
    justify-content: center;
    background-color: transparent;
}

.site-footer .glass-panel {
    background: var(--color-ivory);
    border: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 3rem;
    text-align: left;
}

.contact-info h3 {
    color: var(--color-agave-deep);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--color-graphite);
    font-weight: 500;
}

.contact-info a {
    color: var(--color-agave-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-amber);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366; /* WhatsApp Green */
    color: #FFFFFF !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-link:hover {
    background-color: #128C7E !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.brand-footer {
    text-align: right;
}

.brand-footer p {
    color: var(--color-graphite);
}

.brand-footer a {
    color: var(--color-agave-deep);
    text-decoration: none;
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.3s ease;
}

.brand-footer a:hover {
    color: var(--color-amber);
}

.brand-footer .copyright {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(26, 42, 52, 0.6);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .brand-footer {
        text-align: center;
        margin-top: 1rem;
    }
}

/* =========================================
   PÁGINA DE SERVICIOS
========================================= */
/* Scroll Reveal Animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-350px);
    transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(350px);
    transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateX(0);
}
.services-header {
    text-align: center;
    padding: 10rem 2rem 3rem;
    position: relative;
    z-index: 10;
}

.services-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-family: 'Space Grotesk', sans-serif;
}

.services-header p {
    font-size: 1.25rem;
    color: var(--color-teal-bright);
    font-weight: 300;
    letter-spacing: 4px;
}

#services-main {
    background-color: var(--color-agave-deep);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 4rem 6rem;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

.service-row {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: var(--color-ivory);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-row.reversed {
    flex-direction: row-reverse;
}

.service-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-agave-deep);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-agave-mid);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.service-content p {
    font-size: 1.125rem;
    color: var(--color-graphite);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-keywords span {
    background: var(--color-celeste-soft);
    color: var(--color-agave-deep);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
}

.service-image {
    flex: 1;
    max-width: 600px;
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-row:hover .service-image img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .service-row, .service-row.reversed {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .service-image {
        width: 100%;
        max-width: 600px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .services-list {
        padding: 1rem 1.5rem 4rem;
    }
    .services-header h1 {
        font-size: 2.5rem;
    }
    .service-content h2 {
        font-size: 1.75rem;
    }
}

/* =========================================
   NUEVAS SECCIONES (Marcas & CTA)
========================================= */
.brands-section {
    background-color: transparent;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--color-teal-bright);
    position: relative;
    z-index: 10;
}

.brands-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-white);
}

.brands-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.brand-card {
    width: 400px;
    height: 300px;
    background-color: #FFFFFF;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-card {
    cursor: pointer;
}

/* Dynamic Brand Info Box */
.brand-info-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.dynamic-info-box {
    max-width: 800px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dynamic-info-box h3 {
    color: var(--color-amber);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.dynamic-info-box p {
    color: var(--color-teal-bright);
    font-size: 1.125rem;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

/* Fading animation state */
.fade-out {
    opacity: 0;
}
.fade-in {
    opacity: 1;
}

.cta-section {
    background-color: transparent;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--color-white);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--color-teal-bright);
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-amber);
    color: var(--color-graphite);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}
