/* =====================================================
   VEGASA — styles.css
   Sistema de diseño Dark Luxury · Verde #22C55E
   ===================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Verde VEGASA — escala completa */
    --primary-50:  #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22C55E;   /* Color base */
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;

    /* RGB para rgba() */
    --primary-rgb: 34, 197, 94;

    /* Textos */
    --text-primary:    #FFFFFF;
    --text-secondary:  #E4E4E7;
    --text-tertiary:   #A1A1AA;
    --text-quaternary: #71717A;

    /* Acentos secundarios */
    --success: #22C55E;
    --info:    #3B82F6;
    --warning: #F59E0B;

    /* Tipografía */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Espaciado */
    --container-max: 1280px;
    --section-py: 100px;

    /* Bordes */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: var(--section-py) 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.08) 0%,
        rgba(var(--primary-rgb), 0.04) 50%,
        rgba(var(--primary-rgb), 0.08) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow:
        0 25px 50px -12px rgba(var(--primary-rgb), 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* ===== BOTONES ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(
        135deg,
        var(--primary-600) 0%,
        var(--primary-500) 30%,
        var(--primary-400) 60%,
        var(--primary-500) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.4),
        0 4px 24px rgba(var(--primary-rgb), 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
    will-change: transform;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
        0 0 0 2px rgba(var(--primary-rgb), 0.7),
        0 8px 40px rgba(var(--primary-rgb), 0.5);
}

.btn-glow {
    animation: gradient-shift 4s ease infinite, pulse-glow 3s ease-in-out infinite;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: rgba(var(--primary-rgb), 0.7);
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-2px);
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-400);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: auto;
}

.btn-card:hover {
    background: rgba(var(--primary-rgb), 0.25);
    border-color: rgba(var(--primary-rgb), 0.6);
    transform: translateY(-1px);
}

/* ===== ANIMACIONES ===== */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(var(--primary-rgb), 0.5),
            0 4px 24px rgba(var(--primary-rgb), 0.4),
            0 0 60px rgba(var(--primary-rgb), 0.25);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(var(--primary-rgb), 0.8),
            0 8px 40px rgba(var(--primary-rgb), 0.6),
            0 0 80px rgba(var(--primary-rgb), 0.4);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%       { transform: translateY(-20px) rotate(1.5deg); }
    50%       { transform: translateY(-10px) rotate(-1.5deg); }
    75%       { transform: translateY(-28px) rotate(1deg); }
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25%       { transform: translate(80px, -80px); opacity: 0.7; }
    50%       { transform: translate(-40px, -160px); opacity: 0.5; }
    75%       { transform: translate(-80px, -80px); opacity: 0.7; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fade-in-rotate {
    from { opacity: 0; transform: translateX(60px) rotate(-5deg); }
    to   { opacity: 1; transform: translateX(0) rotate(0deg); }
}

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

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

.logo-img {
    height: 44px;
    width: auto;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: calc(100% - 28px);
}

.btn-nav {
    font-size: 13px;
    padding: 10px 22px;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== PARTÍCULAS ===== */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(var(--primary-rgb), 0.6);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
    will-change: transform;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(var(--primary-rgb), 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 20%, rgba(var(--primary-rgb), 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    width: fit-content;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.label-icon {
    font-size: 14px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 520px;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 8px;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-400);
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.2);
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
    object-position: center top;
    max-height: 520px;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), 0.15),
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(var(--primary-rgb), 0.2);
}

.floating {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

/* Anillos decorativos */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: spin-slow 20s linear infinite;
    pointer-events: none;
}

.ring-1 {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-color: rgba(var(--primary-rgb), 0.15);
}

.ring-2 {
    width: 125%;
    height: 125%;
    top: -12.5%;
    left: -12.5%;
    border-color: rgba(var(--primary-rgb), 0.08);
    animation-direction: reverse;
    animation-duration: 30s;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--primary-500), transparent);
    animation: float-particle 2s ease-in-out infinite;
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 32px 0;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
    background: rgba(var(--primary-rgb), 0.03);
}

.trust-label {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    margin-bottom: 20px;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-badge {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.trust-badge:hover {
    color: var(--primary-400);
}

.trust-divider {
    color: rgba(var(--primary-rgb), 0.3);
    font-size: 18px;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
}

/* FLIP CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card-flip {
    perspective: 1200px;
    height: 380px;
    /* Aislamos el contexto de apilamiento para evitar interferencias */
    isolation: isolate;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Forzar composición en GPU para eliminar temblado */
    will-change: transform;
    transform: translateZ(0);
}

.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Evitar que hereden transformaciones del padre que causen jitter */
    transform: translateZ(0);
}

/* Frente */
.service-card-front {
    background: #1a2e1f;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 20px;
    /* Sin transition ni transform aquí — el flip ya es el efecto hover */
    background: linear-gradient(135deg, #0f1f13 0%, #1a2e1f 100%);
    filter: drop-shadow(0 8px 24px rgba(var(--primary-rgb), 0.3));
    /* Quitar: no scale en hover para evitar el temblado */
}

/* ELIMINADO: .service-card-flip:hover .service-image { transform: scale(1.06); } */
/* El scale conflictuaba con el rotateY del padre causando el temblado */

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calibre-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.2);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: var(--radius-full);
    padding: 3px 12px;
}

.service-title-front {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Dorso */
.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.12) 0%,
        rgba(var(--primary-rgb), 0.06) 50%,
        rgba(var(--primary-rgb), 0.12) 100%
    );
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    /* Anular el translateY del glass-card:hover para no interferir con el flip */
    transform: rotateY(180deg) translateZ(0) !important;
}

/* El dorso NO debe mover translateY al hover — solo el flip */
.service-card-flip:hover .service-card-back,
.service-card-flip.flipped .service-card-back {
    transform: rotateY(180deg) translateZ(0) !important;
    box-shadow: none;
}

.back-icon {
    font-size: 32px;
}

.service-title-back {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-description {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.65;
    flex: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: var(--radius-full);
    padding: 4px 10px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.stat-card-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
}

.stat-card-label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-card-desc {
    font-size: 13px;
    color: var(--text-quaternary);
    line-height: 1.5;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: radial-gradient(ellipse at 80% 50%, rgba(var(--primary-rgb), 0.06) 0%, transparent 55%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.2);
}

.about-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: var(--radius-xl);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.badge-icon {
    font-size: 24px;
}

.badge-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-sub {
    font-size: 11px;
    color: var(--primary-400);
    font-weight: 500;
}

.about-text-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 16px;
    color: var(--text-tertiary);
    line-height: 1.75;
}

.about-text strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.highlight-icon {
    color: var(--primary-500);
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== VALUES SECTION ===== */
.values-section {
    background: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-icon {
    font-size: 36px;
}

.value-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.value-text {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: radial-gradient(ellipse at 50% 100%, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
}

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

.testimonial-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 64px;
    line-height: 1;
    color: var(--primary-500);
    opacity: 0.5;
    margin-bottom: -16px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(var(--primary-rgb), 0.4);
}

.author-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 12px;
    color: var(--text-quaternary);
    margin-top: 2px;
}

.rating {
    margin-left: auto;
    color: var(--warning);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    text-align: left;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus {
    border-color: rgba(var(--primary-rgb), 0.6);
    background: rgba(var(--primary-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2322C55E'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-form {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px 32px;
    margin-top: 8px;
}

.btn-icon {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.btn-form:hover .btn-icon {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

.footer-logo {
    height: 150px;
    width: fit-content;
    border-radius: var(--radius-sm);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-quaternary);
    line-height: 1.6;
    max-width: 280px;
}

.footer-location {
    font-size: 13px;
    color: var(--text-quaternary);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.footer-links li a,
.footer-links li span {
    font-size: 14px;
    color: var(--text-quaternary);
    transition: color var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-quaternary);
}

.footer-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    padding: 4px 14px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    :root { --section-py: 72px; }

    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-visual { order: -1; }
    .hero-image-wrapper { max-width: 420px; margin: 0 auto; }
    .hero-stats { justify-content: center; }
    .hero-ctas { justify-content: center; }
    .hero-label { margin: 0 auto; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-badge { right: 0; bottom: -16px; }
    .values-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 767px) {
    :root { --section-py: 56px; }

    .nav-links, .btn-nav { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.15);
        z-index: 999;
        gap: 4px;
    }
    .mobile-menu-toggle { display: flex; }

    .hero-content { padding-top: 20px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card-flip { height: 360px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .contact-form { padding: 24px; }
    .about-badge { position: static; margin-top: 16px; }
    .ring { display: none; }

    /* Partículas reducidas en mobile */
    .particle:nth-child(n+20) { display: none; }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 12px; align-items: center; }
    .stat-divider { width: 60px; height: 1px; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .trust-divider { display: none; }
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
    animation: wa-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.65),
        0 4px 12px rgba(0, 0, 0, 0.35);
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Ícono SVG */
.wa-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    flex-shrink: 0;
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(37, 211, 102, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Flecha del tooltip */
.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: rgba(0, 0, 0, 0.85);
}

/* Anillo de pulso */
.wa-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: wa-pulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes wa-pulse {
    0%   { transform: scale(1); opacity: 0.7; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes wa-enter {
    from { opacity: 0; transform: scale(0.5) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile: un poco más pequeño y más pegado al borde */
@media (max-width: 767px) {
    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    .wa-icon {
        width: 28px;
        height: 28px;
    }
    .wa-tooltip {
        display: none; /* El tooltip se oculta en mobile */
    }
}
