/* style.css */
:root {
    --bg-light: #FAFAFC; 
    --bg-grad-end: #FFFFFF;
    --bg-dark: #3B3E51;
    --accent-teal: #F6A90A; /* Actually yellow/amber from the logo */
    --accent-yellow: #F6A90A;
    --text-main: #3B3E51;
    --text-dark: #262835;
    --text-muted: #6F738A;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(59, 62, 81, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-grad-end) 100%);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* 3D Canvas / Sketchfab Container */
.sketchfab-embed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

.sketchfab-embed-wrapper.sf-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto; 
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 40px;
}

/* Hologram Overlay - slight tech scanlines */
.hologram-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1)
    );
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Below the hologram-overlay but above background */
    pointer-events: none;
}

/* UI Layer - Frente del 3D */
.ui-layer {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 5%;
}

/* Header Glassmorphism */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(59, 62, 81, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    display: block !important;
}

.logo h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo .highlight {
    color: var(--text-main);
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-yellow);
}

/* 3D CTA Buttons */
.cta-button {
    background: var(--accent-yellow);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(246, 169, 10, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.cta-button:active {
    transform: translateY(3px);
    box-shadow: 0 5px 10px rgba(246, 169, 10, 0.2);
}

.secondary-cta {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: none;
}
.secondary-cta:hover {
    background: rgba(59, 62, 81, 0.05);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5rem;
    gap: 4rem;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    padding: 2rem 0;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.highlight-text {
    color: var(--accent-teal);
    /* Remove glow effect */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* 3D Model Container */
.model-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    background: transparent; /* Eliminado el fondo oscuro */
    /* Eliminado el borde y sombra para que el modelo flote en el entorno */
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: 15px;
    background: #ffffff;
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(59, 62, 81, 0.1);
    color: var(--text-main);
    text-align: center;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.floating-badge h2 {
    color: var(--accent-teal);
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.floating-badge span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
}



/* Floating Panels */
.floating-panels {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: auto;
    padding-bottom: 4rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    flex: 1;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.glass-panel:hover::before {
    left: 150%;
}

.glass-panel:hover {
    border-color: rgba(255, 184, 0, 0.3);
    transform: translateY(-10px);
}

.active-panel {
    border-color: rgba(255, 184, 0, 0.5);
    background: rgba(17, 25, 40, 0.7);
}

.panel-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.1);
}

.highlight-icon {
    color: var(--accent-yellow);
    background: rgba(255, 184, 0, 0.1);
    border-color: rgba(255, 184, 0, 0.2);
    box-shadow: 0 0 20px var(--accent-yellow-glow), inset 0 2px 10px rgba(255,255,255,0.1);
}

.glass-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.glass-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.panel-link {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.glass-panel:hover .panel-link {
    gap: 12px;
}

/* =========================================
   NEW SECTIONS STYLING
========================================= */

.section-padding {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Social Section */
.social-section {
    background-color: rgba(59, 62, 81, 0.02);
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1050px;
    margin: 0 auto;
}

.reel-container {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(59, 62, 81, 0.05);
}

.reel-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(59, 62, 81, 0.1);
}

.services-section {
    background-color: #ffffff;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.services-section .section-title {
    margin-bottom: 5rem; 
}

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

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(59, 62, 81, 0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(246, 169, 10, 0.1);
    color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section (Now overlapping the hero) */
.about-section {
    background-color: #ffffff;
    position: relative;
    margin-top: -80px; /* Pull it up over the hero section */
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-radius: 60px 60px 0 0; /* Clean curved top */
    box-shadow: 0 -10px 40px rgba(59, 62, 81, 0.05); /* Subtle shadow for depth */
    z-index: 10;
}

.layout-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.modern-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    border-left: 4px solid var(--accent-yellow);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.signature {
    font-weight: 600;
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.dra-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 20px;
    filter: drop-shadow(0 20px 30px rgba(59, 62, 81, 0.15));
    object-fit: contain;
}

/* Tech Section */
.tech-section {
    background-color: rgba(59, 62, 81, 0.02);
}

.tech-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-item {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(59, 62, 81, 0.05);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Location Section */
.location-section {
    background-color: #ffffff;
}

/* Footer Section */
.footer-section {
    background: var(--text-main);
    padding: 5rem 5%;
    color: #fff;
}

.footer-section .section-title, .footer-section h2 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.8rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--accent-yellow);
    margin-right: 10px;
}

.whatsapp-btn {
    background: #25D366; /* Official WhatsApp color */
    color: #fff !important;
}

/* Responsividad */
@media (max-width: 992px) {
    .floating-panels {
        flex-direction: column;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-left {
        text-align: center;
    }
    .model-container {
        margin: 0 auto;
    }
    .layout-split {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .cta-group {
        flex-direction: column;
    }
    .glass-header {
        padding: 1rem;
    }
}
