/* ==========================================================================
   WORKHOUSE COWORKING - PREMIUM REDESIGN
   Diseño de vanguardia por Muyska Studio
   ========================================================================== */

/* --- 1. Variables de Diseño (Design Tokens) --- */
:root {
    /* Paleta de Colores Curada */
    --bg-dark: #07080a;
    --bg-card: rgba(16, 18, 23, 0.6);
    --bg-card-hover: rgba(22, 25, 32, 0.85);
    --accent: hsl(20, 95%, 52%); /* Naranja cobre vibrante */
    --accent-glow: rgba(255, 94, 26, 0.2);
    --accent-hover: hsl(20, 100%, 45%);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    /* Bordes y Sombras Glassmorphism */
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 94, 26, 0.25);
    --glass-blur: blur(16px);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 0 30px rgba(255, 94, 26, 0.1);
    
    /* Tipografías */
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transiciones */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    /* Layout */
    --container-max-width: 1280px;
    --header-height: 80px;
}

/* --- 2. Reset General y Scroll --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Personalizado (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- 3. Tipografía y Clases de Utilidad --- */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

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

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

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

/* Gradientes y Efectos de Texto */
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px auto;
}

.section-tag {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 400;
}

/* Botones Premium */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 94, 26, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 94, 26, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: var(--transition-fast);
}

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

.btn-secondary:hover .btn-icon {
    transform: translateY(2px);
}

.icon-inline {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    color: var(--accent);
}

/* --- 4. Header & Navegación --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

/* Clases dinámicas al hacer scroll en header */
.main-header.scrolled {
    background-color: rgba(7, 8, 10, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-container {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.logo-accent {
    color: var(--accent);
    margin-right: 4px;
}

.logo-light {
    font-weight: 300;
    color: var(--text-muted);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-nav:hover {
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 94, 26, 0.35);
    transform: translateY(-1px);
}

/* Hamburguesa Móvil */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* --- 5. Sección Hero --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(7, 8, 10, 0.85) 0%, rgba(7, 8, 10, 0.65) 45%, #07080a 100%), url('assets/slide-2.jpg');
    background-size: cover;
    background-position: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to bottom, transparent 0%, #07080a 100%);
    pointer-events: none;
    z-index: 3;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 30%, rgba(255, 94, 26, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Resplandores abstractos en el fondo */
.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.04) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.06) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
}

.hero-content {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 94, 26, 0.08);
    border: 1px solid rgba(255, 94, 26, 0.25);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-family: var(--font-title);
    letter-spacing: 0.02em;
    backdrop-filter: var(--glass-blur);
}

.icon-badge {
    width: 14px;
    height: 14px;
    margin-right: 8px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* Tarjeta Glassmorphic del Hero */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.hero-card-glass {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: var(--glass-blur);
    padding: 24px;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-smooth);
}

.hero-card-glass:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-premium), var(--shadow-accent);
}

.card-glass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.glass-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.glass-title {
    font-family: var(--font-title);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
}

.status-label {
    color: var(--text-muted);
}

.status-val {
    color: #fff;
    font-weight: 500;
}

.status-val.highlight {
    color: #fff;
    border-bottom: 1px dashed var(--accent);
}

.status-val.highlight-accent {
    color: var(--accent);
    font-weight: 600;
}

.icon-inline {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Space Finder Widget */
.space-finder-widget {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.widget-controls {
    display: flex;
    gap: 8px;
}

.btn-widget-choice {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-title);
    flex: 1;
    text-align: center;
}

.btn-widget-choice:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-widget-choice.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 94, 26, 0.2);
}

.widget-result {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.25s ease;
    min-height: 18px;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

/* Animación de la rueda del mouse */
@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.3; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* --- 6. Servicios - Bento Grid --- */
.services-section {
    padding: 80px 0 120px 0;
    position: relative;
    z-index: 4;
}

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

/* Estilos Comunes de Tarjetas Bento */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium), var(--shadow-accent);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 94, 26, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover .card-glow {
    opacity: 1;
}

/* Tarjetas con Fondo de Imagen */
.card-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    z-index: 1;
}

.bento-card:hover .card-bg-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.9) 20%, rgba(7, 8, 10, 0.2) 100%);
    z-index: 2;
}

.card-overlay-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 15%, rgba(7, 8, 10, 0.4) 100%);
    z-index: 2;
}

/* Contenido de Tarjetas */
.card-content-top {
    position: relative;
    z-index: 3;
    padding: 24px;
}

.badge-card {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content-bottom {
    position: relative;
    z-index: 3;
    padding: 28px;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 20px;
}

.card-icon-normal {
    width: 28px;
    height: 28px;
    color: var(--accent);
    margin-bottom: 16px;
}

.card-icon-accent {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255, 94, 26, 0.06);
    border: 1px solid rgba(255, 94, 26, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
}

.card-link i {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.card-link:hover i {
    transform: translate(2px, -2px);
}

/* Configuraciones Bento Específicas */
.card-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.card-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.card-sm {
    grid-column: span 1;
    grid-row: span 1;
}

/* Elementos particulares de tarjetas */
.speed-indicator {
    margin-top: 24px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.speed-num {
    font-family: var(--font-title);
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.speed-unit {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* --- 7. Membresías - Pricing Selector --- */
.pricing-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 22, 28, 0.3) 100%);
    border-top: 1px solid var(--border-color);
}

/* Navegación de Tabs */
.pricing-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 6px;
    margin: 0 auto 56px auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: var(--glass-blur);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 94, 26, 0.3);
}

/* Pricing Grid Layout */
.pricing-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid.active {
    display: grid;
    animation: fade-in 0.6s ease forwards;
}

/* Tarjeta de Membresía */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium), var(--shadow-accent);
}

/* Plan Recomendado/Destacado */
.pricing-card.recommended {
    border-color: rgba(255, 94, 26, 0.4);
    background: linear-gradient(180deg, rgba(20, 22, 28, 0.8) 0%, rgba(10, 11, 14, 0.8) 100%);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(255, 94, 26, 0.05);
}

.pricing-card.recommended::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(180deg, var(--accent), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Cinta de destacado */
.ribbon {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 100px;
}

.pricing-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 28px;
    margin-bottom: 32px;
}

.plan-badge {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.plan-badge.badge-accent {
    color: var(--accent);
}

.pricing-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.price-val {
    font-family: var(--font-title);
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.price-period {
    font-size: 15px;
    color: var(--text-muted);
}

.price-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
}

/* Cuerpo de la Tarjeta */
.pricing-card-body {
    margin-bottom: 40px;
}

.pricing-card-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card-body li {
    font-size: 15px;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Botón de la Tarjeta */
.btn-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-card-cta:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.btn-card-primary {
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 94, 26, 0.25);
}

.btn-card-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(255, 94, 26, 0.4);
}

/* --- 8. Galería Inmersiva --- */
.gallery-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px;
    z-index: 2;
}

.gallery-hover-content {
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.gallery-hover-content h4 {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

.gallery-icon {
    width: 20px;
    height: 20px;
    color: #fff;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    opacity: 0.6;
}

/* Hover de Item */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

.gallery-item:hover .gallery-hover-content,
.gallery-item:hover .gallery-icon {
    transform: translateY(0);
}

.gallery-item:hover .gallery-icon:hover {
    opacity: 1;
    color: var(--accent);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(7, 8, 10, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    animation: zoom-in 0.4s ease forwards;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #fff;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    padding: 16px 0;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    transition: var(--transition-fast);
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* --- 9. Contacto & Mapa --- */
.contact-section {
    padding: 120px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-bg-glow {
    position: absolute;
    top: 40%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.03) 0%, transparent 60%);
    filter: blur(50px);
    pointer-events: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    margin-bottom: 80px;
}

/* Detalles de Contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin: 20px 0 40px 0;
    line-height: 1.6;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 94, 26, 0.05);
    border: 1px solid rgba(255, 94, 26, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.icon-box i, .icon-box svg {
    width: 22px;
    height: 22px;
}

.detail-text h4 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-text p, .detail-text a {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.detail-text a:hover {
    color: var(--accent);
}

/* Wrapper del Formulario */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1.2px;
    background: linear-gradient(135deg, rgba(255, 94, 26, 0.25), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-form h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 34px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 12px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* Campos de Formulario Interactivos (Floating Labels) */
.form-group {
    position: relative;
    margin-bottom: 28px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
}

.contact-form textarea {
    resize: none;
}

/* Label flotante */
.form-group label {
    position: absolute;
    left: 18px;
    top: 14px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: 0.25s ease all;
}

/* Estado Focus y No Vacío */
.contact-form input:focus ~ label,
.contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background-color: #0b0c0f; /* Tapa el borde */
    padding: 0 6px;
    border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent);
    background: rgba(255, 94, 26, 0.01);
    box-shadow: 0 0 15px rgba(255, 94, 26, 0.05);
}

/* Estilo para el selector HTML */
.contact-form select {
    color: var(--text-muted);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
}

.contact-form select:focus,
.contact-form select:valid {
    color: #fff;
}

.contact-form select option {
    background-color: #12141a;
    color: #ffffff;
    padding: 12px;
}

/* Mensajes de Error */
.error-msg {
    position: absolute;
    bottom: -18px;
    left: 4px;
    font-size: 11px;
    color: #ef4444;
    font-weight: 500;
    display: none;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.01);
}

.form-group.invalid .error-msg {
    display: block;
}

/* Botón Enviar */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 94, 26, 0.25);
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 94, 26, 0.4);
}

.btn-submit .btn-icon {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    transition: var(--transition-fast);
}

.btn-submit:hover .btn-icon {
    transform: translate(2px, -2px);
}

/* Pantalla de Éxito */
.form-success {
    display: none;
    position: absolute;
    inset: 0;
    background: #0f1115;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.form-success.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    margin-bottom: 24px;
}

.success-icon-wrap i {
    width: 36px;
    height: 36px;
}

.form-success h3 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 360px;
    margin-bottom: 32px;
}

/* Mapa Oscurecido */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    margin-top: 40px;
    background-color: #0b0c0f;
    line-height: 0;
}

.map-container iframe {
    /* Mapa limpio, claro y moderno */
    filter: grayscale(15%) contrast(100%);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.map-container:hover iframe {
    opacity: 1;
    filter: grayscale(0%) contrast(100%);
}

/* --- 10. Footer Sofisticado --- */
.footer {
    background: #040507;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 40px 0;
    position: relative;
    z-index: 5;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 380px;
}

.logo-img-footer {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(255, 94, 26, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 94, 26, 0.15);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-contact h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 24px;
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--accent);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p, .credit-line {
    font-size: 13px;
    color: var(--text-muted);
}

.credit-line a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.credit-line a:hover {
    color: var(--accent);
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    fill: var(--accent);
    display: inline-block;
    vertical-align: -2px;
    margin: 0 3px;
}

.footer-bottom p a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom p a:hover {
    color: var(--accent);
}

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

.footer-legal a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: #fff;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* --- 11. Keyframe Animations --- */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scale-up {
    from { transform: scale(0.92) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

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

/* Clases de animación iniciales */
.animate-fade-in { animation: fade-in 1s ease forwards; }
.animate-slide-up { animation: slide-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scale-up { animation: scale-up 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.animate-fade-in-delay {
    opacity: 0;
    animation: fade-in 1s ease 0.4s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fade-in 1s ease 0.7s forwards;
}

.animate-width {
    animation: fill-width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes fill-width {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Animaciones al Scroll (Intersection Observer) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appeared {
    opacity: 1;
    transform: translateY(0);
}

/* --- 12. Media Queries (Responsividad Completa) --- */

/* Pantallas grandes y medianas (Laptops) */
@media (max-width: 1200px) {
    .hero-title { font-size: 52px; }
}

/* Tablets en horizontal / vertical (Pantallas medianas) */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 64px;
        padding-top: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    
    .card-lg {
        grid-column: span 2;
    }
    
    .card-wide {
        grid-column: span 1;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 24px;
    }
    
    .pricing-card.recommended::before {
        inset: -1px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Celulares grandes y medianos (Smartphones) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .services-section,
    .gallery-section,
    .contact-section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title { font-size: 30px; }
    .section-subtitle { font-size: 15px; }
    
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-title { 
        font-size: 36px; 
        line-height: 1.2;
    }
    
    .hero-subtitle { 
        font-size: 16px; 
        margin-bottom: 28px;
    }
    
    .hero-card-glass {
        transform: none !important;
        max-width: 100%;
        padding: 20px 16px;
    }

    .status-row {
        font-size: 13px;
    }
    
    /* Toggle de Menú Móvil */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(7, 8, 10, 0.98);
        backdrop-filter: var(--glass-blur);
        padding: 40px 24px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .btn-nav {
        display: none;
    }
    
    /* Animación del ícono hamburguesa */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Bento Grid en Celular */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
    }
    
    .card-lg, .card-md, .card-sm {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 220px;
    }
    
    .speed-num {
        font-size: 34px;
    }
    
    /* Galería */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gallery-item {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }
    
    /* Formulario de contacto */
    .contact-form-wrapper {
        padding: 28px 18px;
        border-radius: 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Evita auto-zoom molesto en iOS Safari */
    }

    .map-container iframe {
        height: 320px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 32px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-content {
        width: 94%;
    }

    /* Footer Centrado y Fluido en Móvil */
    .footer {
        padding: 50px 0 60px 0;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 36px;
        margin-bottom: 36px;
    }

    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-img-footer {
        margin: 0 auto 16px auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact h4 {
        margin-bottom: 16px;
    }

    .footer-contact p {
        justify-content: center;
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding-top: 24px;
        padding-bottom: 24px; /* Otorga espacio para que el botón de WhatsApp no pise el texto */
    }
}

/* Celulares pequeños (iPhone SE, dispositivos de <480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 46px !important;
    }

    .hero-title { 
        font-size: 30px; 
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

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

    .footer-brand .logo-img {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}
