/* ============================================
   TID INFORMÀTICS - Stylesheet
   Minimalista Moderno Profesional
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #2d2d2d;
    --color-accent: #e63946;
    --color-accent-hover: #c1121f;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #888888;
    --color-white: #ffffff;
    --color-bg: #fafafa;
    --color-bg-alt: #f0f0f0;
    --color-border: #e0e0e0;
    --color-success: #22c55e;
    --color-logo-t: #e63946;
    --color-logo-i: #2d8a3e;
    --color-logo-d: #1a73e8;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    /* Dark Mode Variables */
    --color-dark-primary: #1a1a1a;
    --color-dark-secondary: #1a1a1a;
    --color-dark-surface: #222222;
    --color-dark-elevated: #2a2a2a;
    --color-dark-border: #333333;
    --color-dark-text: #e8e8e8;
    --color-dark-text-light: #a0a0a0;
    --color-dark-text-muted: #6c6c6c;

}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo-text {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.logo-t { color: var(--color-logo-t); }
.logo-i { color: var(--color-logo-i); }
.logo-d { color: var(--color-logo-d); }

/* Cápsula "informàtics" */
.logo-subtitle--pill {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    color: #1a1a1a;
    background: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 20px;
    padding: 2px 10px;
    line-height: 1.6;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Variante footer — un poco más grande */
.logo--footer {
    align-items: flex-start;
    margin-bottom: 14px;
}
.logo--footer .logo-text {
    font-size: 2.8rem;
    letter-spacing: -2px;
}
.logo--footer .logo-subtitle--pill {
    font-size: 0.65rem;
    padding: 3px 12px;
}

/* ---------- LOGO HOVER BOUNCE ---------- */
@keyframes logoBounce {
    0%   { transform: translateY(0) scale(1); }
    28%  { transform: translateY(-9px) scale(1.08); }
    50%  { transform: translateY(3px) scale(0.97); }
    68%  { transform: translateY(-4px) scale(1.03); }
    82%  { transform: translateY(1px) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
}

.logo .logo-text span {
    display: inline-block;
    will-change: transform;
}

.logo:hover .logo-t {
    animation: logoBounce 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0ms;
}
.logo:hover .logo-i {
    animation: logoBounce 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 90ms;
}
.logo:hover .logo-d {
    animation: logoBounce 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 180ms;
}
.logo:hover .logo-subtitle--pill {
    opacity: 0.85;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-white);
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.05);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-asistencia {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 6px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-asistencia:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    opacity: 0.5;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-smooth);
    border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 0;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Waves canvas */
.hero-waves-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Grid background decoration */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.028) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, transparent 20%, black 100%);
    mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, transparent 20%, black 100%);
    pointer-events: none;
    z-index: 0;
}

/* Hero content wrapper */
.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    animation: heroFadeUp 0.7s 0.15s ease both;
}
.hero-badge-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--color-accent);
}
.hero-badge-text {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Title */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.05;
    text-transform: uppercase;
    animation: heroFadeUp 0.7s 0.28s ease both;
}
.hero-title-accent {
    color: var(--color-accent);
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--color-text-light);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: heroFadeUp 0.7s 0.4s ease both;
}

/* CTA buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: heroFadeUp 0.7s 0.52s ease both;
}

/* Stats strip at bottom of hero */
.hero-stats {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    border-top: 1px solid var(--color-border);
    animation: heroFadeUp 0.7s 0.64s ease both;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-right: 1px solid var(--color-border);
    transition: background 0.25s;
    cursor: default;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(250,250,250,0.9); }
.hero-stat:hover .hero-stat-num { color: var(--color-accent); }

.hero-stat-num {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    transition: color 0.25s;
}
.hero-stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 8px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-text);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(0.6); opacity: 1; }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
    text-transform: uppercase;
}

/* ============================================
   SOBRE NOSOTROS
   ============================================ */
.sobre-nosotros {
    background: var(--color-white);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a3e;
    margin-bottom: 32px;
}

.sobre-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sobre-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    margin-top: 2px;
}

.check-icon svg {
    width: 100%;
    height: 100%;
}

.sobre-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sobre-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.sobre-image:hover img {
    transform: scale(1.03);
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
    background: var(--color-bg);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.servicio-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--color-accent);
}

.servicio-icon svg {
    width: 100%;
    height: 100%;
}

.servicio-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.servicio-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   DESCARGAS
   ============================================ */
.descargas {
    background: var(--color-white);
}

.descargas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.descarga-card {
    background: var(--color-bg);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.descarga-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.descarga-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.descarga-icon svg {
    width: 100%;
    height: 100%;
}

.descarga-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.descarga-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ============================================
   DESARROLLO
   ============================================ */
.desarrollo {
    background: var(--color-bg);
}

.desarrollo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.desarrollo-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.desarrollo-text > p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.desarrollo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desarrollo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.desarrollo-list li::before {
    content: '›';
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Code Block */
.code-block {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #181825;
    border-bottom: 1px solid #2a2a3e;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-filename {
    margin-left: 8px;
    font-size: 0.8rem;
    color: #6c6c8a;
    font-family: 'Courier New', monospace;
}

.code-body {
    padding: 20px 24px;
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #cdd6f4;
    overflow-x: auto;
}

.code-keyword { color: #cba6f7; }
.code-var { color: #f38ba8; }
.code-prop { color: #89dceb; }
.code-string { color: #a6e3a1; }
.code-number { color: #fab387; }
.code-function { color: #89b4fa; }
.code-method { color: #89b4fa; }
.code-comment { color: #6c7086; font-style: italic; }

/* ============================================
   CONTACTA
   ============================================ */
.contacta {
    background: var(--color-white);
}

.contacta-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contacta-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--color-text);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Contact Form */
.contacta-form-wrapper {
    background: var(--color-white);
    padding: 48px 44px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

/* ---- Field groups ---- */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    transition: color 0.25s ease;
}

.form-group:focus-within label {
    color: var(--color-accent);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 0;
    font-size: 0.97rem;
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--color-border);
    border-radius: 0;
    transition: border-color 0.25s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

/* Animated underline on focus */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.form-group:focus-within::after {
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: transparent;
}

.form-group textarea {
    resize: none;
    min-height: 110px;
    padding-top: 11px;
    line-height: 1.65;
}

/* Select arrow custom */
.form-group select {
    cursor: pointer;
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 28px;
    border-radius: 0;
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 15px 24px;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.28s ease, border-color 0.28s ease, transform 0.2s ease, box-shadow 0.28s ease;
    font-family: var(--font-main);
    position: relative;
}

.btn-submit:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.28);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ============================================
   ASISTENCIA
   ============================================ */
.asistencia {
    background: var(--color-bg);
}

.asistencia-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.asistencia-desc {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.asistencia-form {
    background: var(--color-white);
    padding: 48px 44px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.urgencia-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.urgencia-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1.5px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

.urgencia-option:hover {
    border-color: var(--color-text-light);
    color: var(--color-text);
}

.urgencia-option input {
    display: none;
}

.urgencia-option input:checked + span {
    color: inherit;
    font-weight: 600;
}

.urgencia-option:has(input:checked) {
    border-color: var(--color-accent);
    background: rgba(230, 57, 70, 0.04);
    color: var(--color-accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.4;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .header-right {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sobre-content,
    .desarrollo-content,
    .contacta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-image img {
        height: 300px;
    }

    .servicios-grid,
    .descargas-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 16px 60px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .contacta-form-wrapper,
    .asistencia-form {
        padding: 24px;
    }
}


/* Hero responsive */
@media (max-width: 768px) {
    .hero-accent-left,
    .hero-accent-right { display: none; }

    .hero-stats { flex-wrap: wrap; }
    .hero-stat {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .hero-stat:nth-child(odd) { border-right: 1px solid var(--color-border); }
    .hero-stat:nth-last-child(-n+2) { border-bottom: none; }

    .hero-stat-num { font-size: 1.4rem; }
}

/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode {
    background: var(--color-dark-primary);
    color: var(--color-dark-text);
}

body.dark-mode .hero {
    background: var(--color-dark-primary);
}

body.dark-mode .hero-bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
}

body.dark-mode .hero-title {
    color: var(--color-dark-text);
}

body.dark-mode .hero-subtitle {
    color: var(--color-dark-text-light);
}

body.dark-mode .hero-badge-text {
    color: var(--color-dark-text-muted);
}

body.dark-mode .hero-stats {
    border-top-color: var(--color-dark-border);
    background: rgba(26,26,26,0.95);
}

body.dark-mode .hero-stat {
    border-right-color: var(--color-dark-border);
}

body.dark-mode .hero-stat:hover {
    background: rgba(34,34,34,0.9);
}

body.dark-mode .hero-stat-num {
    color: var(--color-dark-text);
}

body.dark-mode .hero-stat-label {
    color: var(--color-dark-text-muted);
}

body.dark-mode .scroll-line {
    background: var(--color-dark-text);
}

body.dark-mode .btn-secondary {
    color: var(--color-dark-text);
    border-color: var(--color-dark-text);
}

body.dark-mode .btn-secondary:hover {
    background: var(--color-dark-text);
    color: var(--color-dark-primary);
}

body.dark-mode .sobre-nosotros {
    background: var(--color-dark-primary);
}

body.dark-mode .sobre-heading {
    color: var(--color-dark-text);
}

body.dark-mode .sobre-list li {
    color: var(--color-dark-text-light);
}

body.dark-mode .servicios {
    background: var(--color-dark-secondary);
}

body.dark-mode .servicio-card {
    background: var(--color-dark-surface);
    border-color: var(--color-dark-border);
}

body.dark-mode .servicio-card h3 {
    color: var(--color-dark-text);
}

body.dark-mode .servicio-card p {
    color: var(--color-dark-text-light);
}

body.dark-mode .descargas {
    background: var(--color-dark-primary);
}

body.dark-mode .descarga-card {
    background: var(--color-dark-surface);
    border-color: var(--color-dark-border);
}

body.dark-mode .descarga-card h3 {
    color: var(--color-dark-text);
}

body.dark-mode .descarga-card p {
    color: var(--color-dark-text-light);
}

body.dark-mode .desarrollo {
    background: var(--color-dark-secondary);
}

body.dark-mode .desarrollo-text h3 {
    color: var(--color-dark-text);
}

body.dark-mode .desarrollo-text > p {
    color: var(--color-dark-text-light);
}

body.dark-mode .desarrollo-list li {
    color: var(--color-dark-text);
}

body.dark-mode .contacta {
    background: var(--color-dark-primary);
}

body.dark-mode .contacta-info h3 {
    color: var(--color-dark-text);
}

body.dark-mode .info-item strong {
    color: var(--color-dark-text);
}

body.dark-mode .info-item p {
    color: var(--color-dark-text-light);
}

body.dark-mode .info-icon {
    background: var(--color-dark-surface);
}

body.dark-mode .contacta-form-wrapper {
    background: var(--color-dark-surface);
    border-color: var(--color-dark-border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

body.dark-mode .form-group label {
    color: var(--color-dark-text-muted);
}

body.dark-mode .form-group:focus-within label {
    color: var(--color-accent);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: transparent;
    color: var(--color-dark-text);
    border-bottom-color: var(--color-dark-border);
}

body.dark-mode .form-group select {
    background-color: var(--color-dark-elevated);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    color: var(--color-dark-text);
    border-bottom-color: var(--color-dark-border);
    border-radius: 0;
    padding: 8px 28px 8px 4px;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
    border-color: transparent;
    box-shadow: none;
}

body.dark-mode .btn-submit {
    background: var(--color-dark-elevated);
    border-color: var(--color-dark-border);
    color: var(--color-dark-text);
}

body.dark-mode .btn-submit:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

body.dark-mode .asistencia {
    background: var(--color-dark-secondary);
}

body.dark-mode .asistencia-desc {
    color: var(--color-dark-text-light);
}

body.dark-mode .asistencia-form {
    background: var(--color-dark-surface);
    border-color: var(--color-dark-border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

body.dark-mode .urgencia-option {
    border-color: var(--color-dark-border);
    color: var(--color-dark-text-muted);
}

body.dark-mode .urgencia-option:hover {
    border-color: var(--color-dark-text-muted);
    color: var(--color-dark-text);
}

body.dark-mode .urgencia-option:has(input:checked) {
    border-color: var(--color-accent);
    background: rgba(230, 57, 70, 0.12);
    color: var(--color-accent);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-white);
    margin-left: 8px;
}

.dark-mode-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
}

.dark-mode-toggle .sun-icon {
    display: none;
}

.dark-mode-toggle .moon-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle {
    border-color: rgba(255,255,255,0.3);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: none;
}


body.dark-mode .section-title {
    color: var(--color-dark-text);
}

body.dark-mode .desarrollo-text h3 {
    color: var(--color-dark-text);
}

body.dark-mode .desarrollo-text > p {
    color: var(--color-dark-text-light);
}

body.dark-mode .desarrollo-list li {
    color: var(--color-dark-text);
}

body.dark-mode .contacta-info h3 {
    color: var(--color-dark-text);
}

body.dark-mode .info-item strong {
    color: var(--color-dark-text);
}

body.dark-mode .info-item p {
    color: var(--color-dark-text-light);
}

body.dark-mode .asistencia-desc {
    color: var(--color-dark-text-light);
}

body.dark-mode .footer-desc {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .footer-contact p {
    color: rgba(255,255,255,0.6);
}

/* Títulos de footer en dark mode */
body.dark-mode .footer-links h4,
body.dark-mode .footer-contact h4 {
    color: var(--color-white);
}

body.dark-mode .footer-links a {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .footer-links a:hover {
    color: var(--color-accent);
}

/* Scroll indicator en dark mode */
body.dark-mode .scroll-text {
    color: var(--color-dark-text-muted);
}

body.dark-mode .scroll-line {
    background: var(--color-dark-text-muted);
}

/* Toast en dark mode */
body.dark-mode .toast {
    background: var(--color-dark-surface);
    color: var(--color-dark-text);
    border: 1px solid var(--color-dark-border);
}


/* ============================================
   NAV DOWNLOAD BUTTON - VISTOSO
   ============================================ */

.nav-download-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 18px !important;
    font-size: 0.8rem;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: var(--color-white) !important;
    background: var(--color-accent) !important;
    border-radius: 6px;
    border: 2px solid var(--color-accent) !important;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nav-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s ease;
}

.nav-download-btn:hover::before {
    left: 100%;
}

.nav-download-btn::after {
    display: none !important;
}

.nav-download-btn:hover {
    background: var(--color-accent-hover) !important;
    border-color: var(--color-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.nav-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* Pulse animation para llamar la atención */
@keyframes downloadPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.nav-download-btn {
    animation: downloadPulse 2s ease-in-out infinite;
}

.nav-download-btn:hover {
    animation: none;
}

/* Dark mode para el botón de descarga */
body.dark-mode .nav-download-btn {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    border-color: var(--color-accent) !important;
}

body.dark-mode .nav-download-btn:hover {
    background: var(--color-accent-hover) !important;
    border-color: var(--color-accent-hover) !important;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-download-btn {
        width: 100%;
        justify-content: center;
        margin: 8px 0;
    }
}

/* Responsive dark mode toggle */
@media (max-width: 768px) {
    .dark-mode-toggle {
        margin-left: 0;
    }
}
/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-accent);
    z-index: 99998;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.6);
}

/* ============================================
   WAVE DIVIDERS
   ============================================ */
.wave-divider {
    position: relative;
    line-height: 0;
    overflow: hidden;
    margin: -1px 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Variables para los colores de ola */
:root {
    --wave-fill: #ffffff;
    --wave-fill-alt: #fafafa;
}

body.dark-mode {
    --wave-fill: var(--color-dark-secondary);
    --wave-fill-alt: var(--color-dark-surface);
}

body.dark-mode .wave-divider {
    display: none;
}

/* ============================================
   CARD SPOTLIGHT EFFECT
   ============================================ */
.servicio-card {
    --spotlight-x: 50%;
    --spotlight-y: 50%;
    --spotlight-opacity: 0;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        280px circle at var(--spotlight-x) var(--spotlight-y),
        rgba(230, 57, 70, 0.07),
        transparent 70%
    );
    opacity: var(--spotlight-opacity);
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.servicio-card > * {
    position: relative;
    z-index: 1;
}

.servicio-card:hover {
    --spotlight-opacity: 1;
}

/* ============================================
   HERO TITLE GLINT ANIMATION
   ============================================ */
@keyframes titleGlint {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-title {
    background: linear-gradient(
        105deg,
        var(--color-text) 40%,
        rgba(230, 57, 70, 0.85) 50%,
        var(--color-text) 60%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlint 4s linear infinite;
}

.hero-title-accent {
    -webkit-text-fill-color: transparent;
}

/* Dark mode hero title */
body.dark-mode .hero-title {
    background: linear-gradient(
        105deg,
        #ffffff 40%,
        rgba(230, 57, 70, 0.9) 50%,
        #ffffff 60%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlint 4s linear infinite;
}