/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark-primary: #080F18;      /* Petroleum deep blue */
    --bg-dark-secondary: #0D1724;    /* Slate/Graphite dark blue */
    --bg-light-primary: #F8FAFC;     /* Smoke white */
    --bg-light-secondary: #FFFFFF;   /* Pure white */
    
    --accent-teal: #00D2C4;          /* Tech cyan/teal */
    --accent-blue: #00B4D8;          /* Bright control cyan */
    --accent-teal-glow: rgba(0, 210, 196, 0.15);
    
    --text-light-main: #F8FAFC;
    --text-light-muted: #94A3B8;
    --text-dark-main: #0F172A;
    --text-dark-secondary: #334155;
    --text-dark-muted: #64748B;
    
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(15, 23, 42, 0.08);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Transitions */
    --max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light-primary);
    color: var(--text-dark-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark-main);
    font-weight: 700;
    line-height: 1.25;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--bg-dark-primary);
    color: var(--text-light-main);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--text-light-main);
}

/* Typography Helpers */
.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
    margin-bottom: 12px;
}

.section-subtitle.light {
    color: var(--accent-teal);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-title.light {
    color: var(--text-light-main);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-dark-muted);
    max-width: 600px;
    margin-bottom: 48px;
}

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

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: var(--bg-dark-primary);
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(8, 15, 24, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.footer-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light-main);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light-muted);
    letter-spacing: 0.05em;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light-muted);
}

.nav-menu a:hover {
    color: var(--accent-teal);
}

.nav-menu .btn-nav {
    background-color: rgba(0, 210, 196, 0.1);
    color: var(--accent-teal);
    border: 1px solid rgba(0, 210, 196, 0.2);
    padding: 8px 18px;
    border-radius: 6px;
}

.nav-menu .btn-nav:hover {
    background-color: var(--accent-teal);
    color: var(--bg-dark-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light-main);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--bg-dark-primary);
    color: var(--text-light-main);
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.glow-effect {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-teal-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(0, 210, 196, 0.08);
    border: 1px solid rgba(0, 210, 196, 0.2);
    color: var(--accent-teal);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-light-main);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Code Visual */
.tech-card-wrapper {
    position: relative;
    perspective: 1000px;
}

.tech-card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.tech-card:hover {
    transform: rotateX(2deg) rotateY(-2deg) translateY(-5px);
    border-color: rgba(0, 210, 196, 0.3);
}

.tech-card-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-dark);
}

.tech-card-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.card-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-light-muted);
    margin-left: 8px;
}

.tech-card-body {
    padding: 24px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #A5B4FC;
}

.code-comment {
    color: #64748B;
}

.tech-status-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--bg-dark-primary);
    border: 1px solid var(--accent-teal);
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-light-main);
}

.tech-status-badge i {
    color: var(--accent-teal);
}

/* ==========================================================================
   ABOUT SECTION (NOSOTROS)
   ========================================================================== */
.about-section {
    background-color: var(--bg-light-primary);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-lead {
    font-size: 1.2rem;
    color: var(--text-dark-main);
    margin-bottom: 20px;
}

.about-left p {
    margin-bottom: 24px;
    color: var(--text-dark-secondary);
}

.stats-row {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
    font-weight: 500;
}

/* About Right Illustration */
.about-illustration {
    position: relative;
    padding: 40px;
}

.pattern-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--text-dark-muted) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.15;
    z-index: 1;
}

.info-card {
    position: relative;
    z-index: 2;
    background-color: var(--bg-light-secondary);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.info-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.info-card p {
    color: var(--text-dark-muted);
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark-main);
}

.check-list i {
    color: var(--accent-teal);
}

/* ==========================================================================
   PROPUESTA DE VALOR
   ========================================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    padding: 48px 32px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pillar-icon {
    font-size: 2.2rem;
    color: var(--accent-teal);
    margin-bottom: 24px;
}

.pillar-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

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

/* ==========================================================================
   SOLUCIONES
   ========================================================================== */
.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.section-header-split .section-desc {
    margin-bottom: 0;
}

.solutions-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark-main);
    text-align: left;
    transition: var(--transition-smooth);
}

.accordion-header span {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-sol {
    color: var(--accent-blue);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.accordion-header .arrow {
    font-size: 1rem;
    color: var(--text-dark-muted);
    transition: var(--transition-smooth);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content p {
    padding-bottom: 28px;
    color: var(--text-dark-muted);
    padding-left: 44px;
    line-height: 1.7;
}

/* Active states */
.accordion-item.active .accordion-header {
    color: var(--accent-teal);
}

.accordion-item.active .icon-sol {
    color: var(--accent-teal);
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
    color: var(--accent-teal);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

/* ==========================================================================
   SECTORES
   ========================================================================== */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sector-card {
    position: relative;
    height: 420px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    z-index: 1;
    transition: var(--transition-smooth);
}

.sector-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
}

.sector-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -2;
    transition: var(--transition-smooth);
}

.sector-card:hover .sector-bg {
    opacity: 0.3;
    transform: scale(1.05);
}

/* Linear gradients / fallbacks representing sectors */
.mining-bg {
    background-image: linear-gradient(135deg, #1e293b, #0f172a);
}
.industry-bg {
    background-image: linear-gradient(135deg, #0f172a, #1e293b);
}
.tech-bg {
    background-image: linear-gradient(135deg, #0f172a, #111a24);
}
.corp-bg {
    background-image: linear-gradient(135deg, #111a24, #1e293b);
}

.sector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 15, 24, 0.9) 20%, rgba(8, 15, 24, 0.4) 100%);
    z-index: -1;
}

.sector-icon {
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

.sector-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-light-main);
}

.sector-content p {
    color: var(--text-light-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ==========================================================================
   EXPERIENCIA / CLIENT MARQUEE
   ========================================================================== */
.experience-section {
    background-color: var(--bg-light-primary);
    overflow: hidden;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    padding: 30px 0;
    background-color: var(--bg-light-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.client-logo {
    opacity: 0.65;
    filter: grayscale(85%) contrast(90%);
    transition: var(--transition-smooth);
    display: block;
}

.marquee-item:hover .client-logo {
    opacity: 1;
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   DIFERENCIADOR
   ========================================================================== */
.diferenciador-section .lead-text {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 60px auto;
    color: var(--text-light-muted);
    line-height: 1.7;
}

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

.diff-stat-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    padding: 32px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.diff-stat-item:hover {
    border-color: var(--accent-teal);
    background-color: rgba(255, 255, 255, 0.04);
}

.diff-icon {
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
    display: inline-block;
}

.diff-stat-item h4 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.diff-stat-item p {
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-section {
    background-color: var(--bg-light-primary);
}

.contact-lead {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-dark-muted);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 210, 196, 0.1);
    color: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--text-dark-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.contact-form {
    background-color: var(--bg-light-secondary);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

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

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark-main);
    margin-bottom: 8px;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark-main);
    transition: var(--transition-smooth);
    background-color: #FFFFFF;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 210, 196, 0.15);
}

/* Full-width submit button */
.btn-block-form {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* Vertical side tab — same design as Enviar Solicitud */
.form-side-tab {
    display: none; /* shown only on desktop via media query */
}

.form-status {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    color: #10B981;
}

.form-status.error {
    color: #EF4444;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark-primary);
    color: var(--text-light-main);
    border-top: 1px solid var(--border-dark);
    padding: 80px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 60px;
}

.footer-brand .logo-placeholder {
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4, .footer-legal h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-teal);
    display: inline-block;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-legal p {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 30px 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-container p {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light-main);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background-color: var(--accent-teal);
    color: var(--bg-dark-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   SCROLL ANIMATIONS & EFFECTS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Header & Navigation Menu Mobile */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-dark-primary);
        padding: 40px 24px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-dark);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
    }
    
    /* Grid overrides */
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .diferenciador-stats {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bottom-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
    }
}

/* Base style: hide toggle buttons on mobile, shown only on desktop */
.form-close-btn, .form-toggle-floating-btn {
    display: none;
}

/* Floating Contact Box on Desktop */
@media (min-width: 1024px) {

    .contact-right {
        position: fixed;
        top: 80px;
        right: 30px;
        width: 380px;
        z-index: 995;
        overflow: visible;
        transform: scale(0.85);
        transform-origin: top right;
        transition: var(--transition-smooth);
        animation: slide-in-form 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .contact-section .section-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
    
    .contact-form {
        position: relative;
        padding: 28px 22px 20px 22px;
        border: 1px solid rgba(0, 210, 196, 0.3);
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 40px rgba(8, 15, 24, 0.15);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        max-height: calc((100vh - 100px) / 0.85);
        overflow-y: auto;
    }
    
    .contact-form.hidden {
        transform: scale(0.2) translateY(200px);
        opacity: 0;
        pointer-events: none;
        height: 0;
        padding: 0;
        border: none;
        overflow: hidden;
    }

    /* Ocultar tab — pestaña lateral izquierda tipo montaña */
    .form-side-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateX(-100%) translateY(-50%) rotate(180deg);
        writing-mode: vertical-rl;
        background: linear-gradient(180deg, var(--accent-blue), var(--accent-teal));
        color: var(--bg-dark-primary);
        border: none;
        padding: 22px 13px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.85rem;
        border-radius: 0 50px 50px 0;
        box-shadow: -6px 0 20px rgba(0, 210, 196, 0.35);
        cursor: pointer;
        white-space: nowrap;
        z-index: 997;
        transition: filter 0.25s ease, box-shadow 0.25s ease, padding 0.2s ease;
    }

    .form-side-tab:hover {
        filter: brightness(1.1);
        box-shadow: -8px 0 26px rgba(0, 210, 196, 0.5);
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .form-side-tab.tab-hidden {
        display: none;
    }

    /* Animación de entrada suave al aparecer */
    .form-side-tab:not(.tab-hidden) {
        animation: tab-pop-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    @keyframes tab-pop-in {
        from {
            opacity: 0;
            transform: translateX(-60%) translateY(-50%) rotate(180deg) scale(0.5);
        }
        to {
            opacity: 1;
            transform: translateX(-100%) translateY(-50%) rotate(180deg) scale(1);
        }
    }

    .form-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    
    .form-group-row .form-group {
        margin-bottom: 12px;
    }
    
    input, textarea {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    /* Toggle Buttons Style */
    .form-close-btn {
        position: absolute;
        top: 10px;
        right: 12px;
        background: none;
        border: none;
        color: var(--text-dark-muted);
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: var(--transition-smooth);
        z-index: 10;
    }
    
    .form-close-btn:hover {
        color: var(--accent-teal);
    }
    
    .form-toggle-floating-btn {
        position: fixed;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
        background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
        color: var(--bg-dark-primary);
        border: none;
        padding: 12px 24px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.9rem;
        border-radius: 50px;
        box-shadow: 0 10px 25px rgba(0, 210, 196, 0.35);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 996;
        transition: var(--transition-smooth);
        animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
    
    .form-toggle-floating-btn:hover {
        box-shadow: 0 15px 30px rgba(0, 210, 196, 0.5);
        filter: brightness(1.08);
    }
    
    .form-toggle-floating-btn.hidden-btn {
        display: none;
    }
    
    @keyframes slide-in-form {
        from {
            transform: scale(0.85) translateX(160px);
            opacity: 0;
        }
        to {
            transform: scale(0.85) translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes pop-in {
        from {
            transform: scale(0) translateY(20px);
            opacity: 0;
        }
        to {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }
}

