/* ======================================================
   MEDIC PC — Estilos Profesionales
   Diseño: Dark Tech + Acentos Cian/Azul
   ====================================================== */

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

:root {
    /* Paleta principal */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #1f2637;
    --surface: #1e2538;

    /* Acentos */
    --accent-cyan: #00b4d8;
    --accent-cyan-light: #48cae4;
    --accent-cyan-dark: #0096c7;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;

    /* Texto */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0a0e17;

    /* Bordes */
    --border: #1e293b;
    --border-accent: rgba(0, 180, 216, 0.3);

    /* Estados */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Tipografía */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radios */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --glow-cyan: 0 0 20px rgba(0, 180, 216, 0.15);
}

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

img { max-width: 100%; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cyan-light); }
ul { list-style: none; }
::selection { background: var(--accent-cyan); color: var(--text-inverse); }

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

/* --- GRADIENT TEXT --- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-light), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(10, 14, 23, 0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}
.logo-icon { font-size: 1.6rem; }
.logo-text { letter-spacing: -0.5px; }
.logo-accent { color: var(--accent-cyan); }

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

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 180, 216, 0.08);
}
.nav-cta {
    background: linear-gradient(135deg, var(--accent-cyan-dark), var(--accent-cyan));
    color: white !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--glow-cyan); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 180, 216, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.25);
    color: var(--accent-cyan-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-number-static {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: float 2s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan-dark), var(--accent-cyan));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 180, 216, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 180, 216, 0.05);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-full { width: 100%; }

/* ======================================================
   SECTION COMMON
   ====================================================== */
section { padding: 100px 0; }

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
    color: var(--accent-cyan-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ======================================================
   SERVICIOS
   ====================================================== */
.servicios { background: var(--bg-secondary); position: relative; }

.servicios::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
}
.service-card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
    background: var(--bg-card-hover);
}

.card-highlight {
    border-color: rgba(0, 180, 216, 0.3);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), transparent);
}
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent-cyan-dark), var(--accent-cyan));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(0, 180, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 180, 216, 0.2);
}
.card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-cyan);
    stroke: var(--accent-cyan);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.card-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
}

/* ======================================================
   PROYECTOS
   ====================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 180, 216, 0.2);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    opacity: 0.4;
}

.project-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}
.project-tag {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 180, 216, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.project-info {
    padding: 24px;
}
.project-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.project-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.project-tech span {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    color: var(--accent-cyan-light);
    font-size: 0.78rem;
    font-weight: 500;
}

.projects-footer {
    text-align: center;
    color: var(--text-secondary);
}
.projects-footer a {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ======================================================
   NOSOTROS
   ====================================================== */
.nosotros { background: var(--bg-secondary); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}
.about-lead {
    font-size: 1.2rem;
    color: var(--text-primary) !important;
    font-weight: 600;
    margin-bottom: 24px !important;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all 0.3s;
}
.value-item:hover {
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-2px);
}

.value-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}
.value-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.value-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.about-stat-card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

.about-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.about-stat-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ======================================================
   RESEÑAS
   ====================================================== */
.resenas { background: var(--bg-primary); position: relative; }

.resenas::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

/* --- Reviews list --- */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.reviews-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.reviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.reviews-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.review-card:hover {
    border-color: rgba(0, 180, 216, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.review-card-avatar {
    display: none;
}

.review-card-info {
    flex: 1;
    min-width: 0;
}

.review-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-cyan);
}

.review-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 15px;
}

.review-card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

/* --- Formulario de reseña --- */
.review-form-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
}

.review-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

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

/* --- Review card: servicio badge --- */
.review-card-servicio {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    color: var(--accent-cyan-light);
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 12px;
    margin-left: 15px;
}

/* ======================================================
   CONTACTO
   ====================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 16px;
}

.checkbox-group { margin-bottom: 24px; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    display: none;
}
.checkbox-custom {
    min-width: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}
.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}
.checkbox-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.checkbox-text a { font-weight: 600; }

.form-feedback {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}
.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* Error state */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--error);
}

/* --- Contact info --- */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
}
.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.contact-list li svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    color: var(--accent-cyan);
    margin-top: 2px;
}

.contact-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 12px 16px;
    background: rgba(0, 180, 216, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 180, 216, 0.1);
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 16px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: all 0.2s;
}
.footer-links a:hover { color: var(--accent-cyan); padding-left: 4px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}
.footer-small {
    font-size: 0.78rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ======================================================
   LEGAL PAGE (privacidad.html)
   ====================================================== */
.legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.legal-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.2);
    color: var(--accent-cyan-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
}
.legal-badge svg { width: 20px; height: 20px; }

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 12px 0 20px;
    padding-left: 24px;
}
.legal-content ul li,
.legal-content ol li {
    margin-bottom: 8px;
    padding-left: 8px;
}
.legal-content ul li::marker { color: var(--accent-cyan); }
.legal-content ol li::marker { color: var(--accent-cyan); font-weight: 600; }

.legal-footer-badge {
    margin-top: 40px;
    padding: 16px;
    text-align: center;
    background: rgba(0, 180, 216, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 180, 216, 0.1);
}
.legal-footer-badge p {
    font-weight: 600;
    color: var(--accent-cyan-light);
    margin: 0;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 968px) {
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link { width: 100%; padding: 14px 18px; }
    .nav-cta { text-align: center; }

    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 2rem; }

    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }

    section { padding: 64px 0; }

    .legal-content { padding: 28px; }
    .legal-content h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
}

/* ======================================================
   ANIMACIONES
   ====================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
