/* ==========================================================================
   MINDOR Premium Web Design System
   Color Palette: Deep Obsidian (#080808) & Gold Metallic Accent (#D4AF37)
   Fonts: Outfit (Headings) & Inter (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-deep: #080808;
    --bg-dark: #121212;
    --bg-card: rgba(20, 20, 20, 0.7);
    --gold-primary: #d4af37;
    --gold-light: #f5d061;
    --gold-dark: #a88118;
    --gold-glow: rgba(212, 175, 55, 0.3);
    
    --text-white: #ffffff;
    --text-gray-light: #e0e0e0;
    --text-gray: #a0a0a5;
    --text-gray-dark: #66666a;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Details */
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --glass-backdrop: blur(16px) saturate(180%);
    --glass-border: rgba(212, 175, 55, 0.12);
    --glass-border-hover: rgba(212, 175, 55, 0.35);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
    color: var(--text-gray-light);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-gray);
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Scrollbar & Utilities
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark);
    border: 2px solid var(--bg-deep);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.text-gold {
    color: var(--gold-primary);
}
.text-green {
    color: #4cd137;
}
.text-gray {
    color: var(--text-gray);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    color: var(--bg-deep);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar-scrolled {
    padding: 12px 8%;
    background-color: rgba(8, 8, 8, 0.85);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 38px;
    width: 38px;
    filter: drop-shadow(0 0 4px var(--gold-glow));
}

.nav-brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 60%, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--text-gray);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    margin: 5px;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section (with Neural Network Canvas)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-primary);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
section {
    padding: 100px 8%;
    position: relative;
    z-index: 2;
}

.section-header {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ==========================================================================
   Section 2: Servicios Clave (Bento Grid)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition);
    backdrop-filter: var(--glass-backdrop);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.05);
}

/* Bento Grid Column Spans */
.span-large {
    grid-column: span 8;
}

.span-small {
    grid-column: span 4;
}

.span-medium {
    grid-column: span 6;
}

.service-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--gold-light);
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-content p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
}

.service-features span {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-features span::before {
    content: '✓';
    color: var(--gold-primary);
    font-weight: bold;
}

/* ==========================================================================
   Section 3: El Enfoque "Mindor"
   ========================================================================== */
.focus-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.focus-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.focus-visual-bg {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    animation: rotate 60s linear infinite;
}

.focus-visual img {
    width: 60%;
    max-width: 280px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.15));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.focus-quadrants {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.quadrant-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    backdrop-filter: var(--glass-backdrop);
}

.quadrant-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

.quad-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.quadrant-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.quadrant-card p {
    font-size: 0.9rem;
}

/* ==========================================================================
   Heavy Industry Twin - Interactive Module
   ========================================================================== */
.twin-container {
    margin-top: 50px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    backdrop-filter: var(--glass-backdrop);
}

.twin-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.twin-info h3 {
    font-size: 1.8rem;
}

.twin-widget {
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 24px;
    font-family: monospace;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.twin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.twin-header span {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.status-active {
    color: #4cd137;
    animation: blink 1.5s infinite;
}

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

.status-warning {
    color: var(--gold-primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.twin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stat-val {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-white);
}

.twin-console {
    background: #040405;
    border-radius: 6px;
    height: 120px;
    padding: 12px;
    font-size: 0.8rem;
    overflow-y: auto;
    color: #88c999;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.twin-console div {
    margin-bottom: 4px;
}

/* ==========================================================================
   Contacto / Alianzas
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-details p {
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    backdrop-filter: var(--glass-backdrop);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
    resize: none;
    height: 120px;
}

/* ==========================================================================
   Footer (Google Partner Transparency Requirements)
   ========================================================================== */
.footer {
    background: #040404;
    border-top: 1px solid var(--glass-border);
    padding: 80px 8% 30px 8%;
    z-index: 2;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 44px;
    width: 44px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
    background: var(--gold-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.partner-badge-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.partner-badge-wrapper h5 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-white);
    text-transform: uppercase;
}

.partner-badge {
    border-radius: 6px;
    padding: 10px 16px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-blue { background-color: #4285F4; }
.dot-red { background-color: #EA4335; }
.dot-yellow { background-color: #FBBC05; }
.dot-green { background-color: #34A853; }

.partner-text {
    font-family: 'Product Sans', var(--font-heading);
    font-weight: bold;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-gray-dark);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   Modal "Agenda una Consultoría" (Glassmorphism)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 4, 4, 0.7);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-visible {
    opacity: 1;
}

.modal-content {
    background: #0f0f11;
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 580px;
    padding: 48px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-white);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal-success-message {
    text-align: center;
    padding: 40px 0;
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px auto;
}

.modal-success-message h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

/* Spinner Loader for Submitting */
.loader {
    border: 2px solid var(--bg-deep);
    border-top: 2px solid var(--text-white);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* ==========================================================================
   Section: Casos de Éxito y Sectores (Interactive Tabs)
   ========================================================================== */
.portfolio-tabs-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 48px;
}

.portfolio-tabs {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px;
    display: inline-flex;
    gap: 4px;
    backdrop-filter: var(--glass-backdrop);
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: var(--bg-deep);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.tab-content {
    width: 100%;
    min-height: 350px;
}

.tab-pane {
    display: none;
    opacity: 0;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    animation: fadeInTab 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab 1: Galería de Sectores */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 1.5;
    background: var(--bg-dark);
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--text-white);
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Tab 2: Casos de Éxito */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    backdrop-filter: var(--glass-backdrop);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.case-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.05);
}

.case-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-tag {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--gold-primary);
    letter-spacing: 0.08em;
    font-weight: 600;
}

.case-card h4 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.case-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.case-metric-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.case-metric {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 4px;
}

.case-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-gray-dark);
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Tab 3: Socios Clave */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    backdrop-filter: var(--glass-backdrop);
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.05);
}

.partner-logo-mock {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-white);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.partner-card:hover .partner-logo-mock {
    color: var(--gold-light);
}

.partner-logo-mock span.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.partner-card p {
    font-size: 0.75rem;
    color: var(--text-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Overwrites for tabs */
@media screen and (max-width: 1024px) {
    .gallery-grid, .cases-grid {
        grid-template-columns: 1fr 1fr;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid, .cases-grid, .partners-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 16px;
        padding: 8px;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        gap: 16px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .span-large, .span-medium {
        grid-column: span 12;
    }
    
    .span-small {
        grid-column: span 6;
    }
    
    .focus-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .focus-visual {
        order: -1;
    }
    
    .twin-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
    }
    
    .navbar-scrolled {
        padding: 12px 24px;
    }
    
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0px;
        background-color: #0c0c0c;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out, visibility 0.5s;
        z-index: 999;
        gap: 40px;
        visibility: hidden;
    }
    
    .nav-links a {
        font-size: 1.25rem;
    }
    
    .nav-active {
        transform: translateX(0%);
        visibility: visible;
    }
    
    .nav-burger {
        display: block;
    }
    
    .burger-toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger-toggle .line2 {
        opacity: 0;
    }
    
    .burger-toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    section {
        padding: 80px 24px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .span-small {
        grid-column: span 12;
    }
    
    .focus-quadrants {
        grid-template-columns: 1fr;
    }

    .twin-container {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-top: 30px;
    }

    .twin-stats {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer {
        padding: 60px 24px 20px 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Added Styles for UX/UI, CRO and WhatsApp Optimizations
   ========================================================================== */

/* Nav Actions & CTA */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
}

.nav-cta {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--gold-primary) !important;
    color: var(--gold-light) !important;
    background: rgba(212, 175, 55, 0.05) !important;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary)) !important;
    color: var(--bg-deep) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border-color: transparent !important;
}

/* Trust Band (Social Proof) */
.trust-band {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 8%;
    backdrop-filter: var(--glass-backdrop);
    position: relative;
    z-index: 5;
}

.trust-band-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-band-container > span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-gray-dark);
    letter-spacing: 0.03em;
    transition: var(--transition);
    cursor: default;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-logo:hover {
    color: var(--text-white);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.trust-logo .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Hero Secondary CTA Link */
.hero-subcta {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 8px;
}

/* Testimonials Section */
#testimonios {
    background: radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    border-top: 1px solid rgba(212, 175, 55, 0.05);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    backdrop-filter: var(--glass-backdrop);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 5rem;
    font-family: var(--font-heading);
    color: rgba(212, 175, 55, 0.08);
    line-height: 1;
    font-weight: 800;
}

.testimonial-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.05);
}

.test-quote {
    font-size: 0.95rem;
    color: var(--text-gray-light);
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-white);
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: block;
}

/* WhatsApp Floating Widget */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba59;
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 76px;
    background-color: #0f0f11;
    border: 1px solid var(--glass-border-hover);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #0f0f11;
    border-right: 1px solid var(--glass-border-hover);
    border-top: 1px solid var(--glass-border-hover);
}

.whatsapp-tooltip.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsiveness adjustments for new elements */
@media screen and (max-width: 1024px) {
    .trust-band-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .trust-logos {
        justify-content: center;
        gap: 24px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-cta {
        display: none !important;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* Spinner rotation animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
