/* ============================================
   ESCOS ARQUITECTURA — Design System Premium
   ============================================ */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Variables CSS ─── */
:root {
    /* Colores Base */
    --bg-color: #1A1A1A;
    --bg-secondary: #242424;
    --bg-card: #2C2C2C;
    --text-color: #F5F0EB;
    --text-muted: #9A9591;
    --text-light: #D1CEC9;

    /* Paleta Principal — Warm Wood Premium */
    --primary: #8B6F47;
    --primary-light: #A68B50;
    --primary-dark: #5E4A2E;
    --accent: #2C2C2C;
    --accent-light: #F5F0EB;

    /* Gradientes */
    --gradient-gold: linear-gradient(135deg, #8B6F47 0%, #A68B50 50%, #8B6F47 100%);
    --gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #2C2C2C 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.95) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.85) 100%);

    /* Tipografía */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 30px rgba(201, 169, 110, 0.15);

    /* Glass */
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(201, 169, 110, 0.15);
    --blur: 20px;

    /* Transiciones */
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Espaciado */
    --section-padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 6rem);
    --container-max: 1400px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ─── Tipografía ─── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--primary);
}

/* ─── Container ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 6rem);
}

/* ─── Botones ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold), var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════
   HEADER / NAVEGACIÓN
   ═══════════════════════════════════ */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: 0 1px 0 var(--glass-border);
    padding: 0.8rem 5%;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: white;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.logo a:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    padding: 5px;
}

.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: white;
    transition: var(--transition);
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ═══════════════════════════════════
   HERO — Slider de Imágenes
   ═══════════════════════════════════ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    color: white;
    /* Ensure base color is white */
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Slider indicators */
.hero-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.hero-indicator {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.hero-indicator.active {
    background: var(--primary);
    width: 60px;
}

/* ═══════════════════════════════════
   SECCIONES GENERALES
   ═══════════════════════════════════ */

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 1rem;
}

/* ─── Separador decorativo ─── */
.divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 2rem auto;
}

/* ═══════════════════════════════════
   SECCIÓN DETALLES — Inicio
   ═══════════════════════════════════ */

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.detail-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.detail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.detail-card:hover img {
    transform: scale(1.08);
}

.detail-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 13, 13, 0.9) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.detail-card:hover .detail-card-overlay {
    opacity: 1;
}

.detail-card-overlay h4 {
    color: white;
    font-size: 1.1rem;
    transform: translateY(10px);
    transition: var(--transition);
}

.detail-card:hover .detail-card-overlay h4 {
    transform: translateY(0);
}

/* ─── Stats Strip ─── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: var(--section-padding);
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════
   PROYECTOS — Grid & Cards
   ═══════════════════════════════════ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.project-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    pointer-events: none;
}

.project-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--primary-light);
    z-index: 2;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.project-card:hover .project-card-body h3 {
    color: var(--primary);
}

.project-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.project-card:hover .project-card-link::after {
    transform: translateX(4px);
}

/* PDF Viewer modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    height: 90%;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--bg-color);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ═══════════════════════════════════
   ABOUT — Sobre Mí
   ═══════════════════════════════════ */

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.about-portrait {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.about-portrait img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: var(--transition-slow);
}

.about-portrait::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: var(--gradient-gold);
    z-index: -1;
    opacity: 0.3;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.3rem;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.4);
    transform: translateX(-50%);
    margin-left: 0.5px;
}

.timeline-item h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Infografia Section */
.infografia-section {
    margin-top: 4rem;
}

.infografia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 2rem auto 0;
}

.infografia-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    transition: var(--transition);
}

.infografia-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.infografia-card img {
    width: 100%;
    height: auto;
}

/* ═══════════════════════════════════
   CONTACTO
   ═══════════════════════════════════ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    border-color: var(--primary);
}

.contact-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Map */
.map-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 250px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.5) contrast(1.1);
}

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form h3 {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    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 d='M6 8L1 3h10z' fill='%238A8A8A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.form-check a {
    color: var(--primary);
    text-decoration: underline;
}

.form-check a:hover {
    color: var(--primary-light);
}

.btn-submit {
    width: 100%;
    padding: 1.1rem;
    background: var(--gradient-gold);
    color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold), var(--shadow-md);
}

/* ═══════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(201, 169, 110, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto 3rem;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ═══════════════════════════════════
   PÁGINA PRIVACY
   ═══════════════════════════════════ */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 120px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

@media (max-width: 1024px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    header.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        background-image: var(--gradient-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: var(--transition);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.6s;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-family: var(--font-display);
        color: white;
        letter-spacing: 3px;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stats-strip {
        grid-template-columns: 1fr 1fr;
        padding: 4rem 1.5rem;
        gap: 2rem;
    }

    .infografia-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .project-card-image {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .stats-strip {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-indicators {
        bottom: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        height: 80%;
    }
}

/* ─── Page banner (inner pages) ─── */
.page-banner {
    height: 40vh;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 2rem;
    color: white;
}

.page-banner-content h1 {
    color: white !important;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-banner-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ─── Scroll to top ─── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}