@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Sistema de Variables GSM --- */
:root {
    /* Modo Claro - Alto Contraste */
    --bg-base: #f0f2f0; 
    --bg-surface: #ffffff; 
    --text-primary: #0a0f0a; 
    --text-secondary: #3a4a3a; 
    --border-color: rgba(100, 120, 100, 0.3);
    
    --glass-nav: rgba(255, 255, 255, 0.95); 
    --glass-sidebar: rgba(255, 255, 255, 0.98);
    --glass-overlap: rgba(255, 255, 255, 0.75); 
    
    --accent-green: #5a7058; 
    --accent-green-hover: #7a9078; 
    --accent-gold: #c4a86a; 
    --text-on-accent: #ffffff; 
    
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.08);
    --shadow-glass: 0 30px 60px rgba(0,0,0,0.2);
    
    --font-base: 1.125rem; 
    --title-hero: 5rem; 
    --radius-large: 20px;
    --radius-pill: 50px;
}

[data-theme="dark"] {
    /* Modo Oscuro - Alto Contraste */
    --bg-base: #080c08; 
    --bg-surface: #121a12; 
    --text-primary: #f5f8f0; 
    --text-secondary: #b8c8b0; 
    --border-color: rgba(255, 255, 255, 0.15);
    
    --glass-nav: rgba(8, 12, 8, 0.95);
    --glass-sidebar: rgba(18, 26, 18, 0.98);
    --glass-overlap: rgba(18, 26, 18, 0.80);
    
    --accent-green: #9ab89a;
    --accent-green-hover: #c4d8c0;
    --accent-gold: #f0d890;
    --text-on-accent: #080c08;
    
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.7);
    --shadow-glass: 0 30px 60px rgba(0,0,0,0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }

body { background-color: var(--bg-base); color: var(--text-primary); font-size: var(--font-base); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color 0.4s ease, color 0.4s ease; overflow-x: hidden; }

/* --- Navegación --- */
header { position: fixed; top: 0; width: 100%; height: 90px; background: var(--glass-nav); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-bottom: 1px solid var(--border-color); z-index: 1000; display: flex; justify-content: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
header.header-scrolled { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); height: 70px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
[data-theme="dark"] header.header-scrolled { background: rgba(8, 12, 8, 0.12); box-shadow: 0 4px 20px rgba(0,0,0,0.35); }

/* Header scrolled - cambio de color para mejor contraste */
header.header-scrolled .nav-link { 
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0.95;
}
header.header-scrolled .nav-link:hover {
    color: var(--accent-gold);
    opacity: 1;
}
header.header-scrolled .brand-logo-img { 
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Ajuste del contenedor cuando el header se hace más pequeño */
header.header-scrolled .nav-container { height: 100%; }
header.header-scrolled .brand-logo { height: 50px; }
.nav-container { width: 100%; max-width: 1400px; padding: 0 3rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; }
.nav-left, .nav-right { display: flex; gap: 2.5rem; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav-link { text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em; transition: color 0.3s ease; text-transform: uppercase; cursor: pointer; opacity: 0.8;}
.nav-link:hover, .nav-link.active { color: var(--accent-green); opacity: 1; border-bottom: 2px solid var(--accent-gold); }
.brand-logo { height: 65px; display: flex; align-items: center; text-decoration: none; }
.brand-logo-img { height: 100%; width: auto; object-fit: contain; }
.icon-btn { background: transparent; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; transition: transform 0.3s ease; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;}
.icon-btn:hover { background: var(--border-color); }

/* --- Botones --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 1.1rem 2.5rem; border-radius: var(--radius-pill); font-size: 1.05rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-green { background: var(--accent-green); color: var(--text-on-accent); box-shadow: 0 8px 20px rgba(120, 144, 120, 0.25); }
.btn-green:hover { transform: translateY(-3px); background: var(--accent-green-hover); color: var(--text-primary); box-shadow: 0 12px 25px rgba(120, 144, 120, 0.35); }
.btn-glass { background: rgba(255,255,255,0.08); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-glass:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }

/* --- Hero --- */
.hero-immersive { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: -90px; }
.hero-backgrounds { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: var(--bg-base); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 10s linear; }
.hero-slide.active img { transform: scale(1.05); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(8, 12, 8, 0.92) 0%, rgba(8, 12, 8, 0.65) 50%, rgba(8, 12, 8, 0.4) 100%); z-index: 2; }
.hero-bottom-fade { position: absolute; bottom: 0; left: 0; width: 100%; height: 120px; background: linear-gradient(to bottom, transparent 0%, var(--bg-base) 100%); z-index: 4; pointer-events: none; transition: background 0.4s ease; }

.hero-content { position: relative; z-index: 5; width: 100%; max-width: 1400px; padding: 0 3rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; }
.hero-text-box h1 { font-size: var(--title-hero); line-height: 1.02; font-weight: 800; margin-bottom: 1.5rem; color: #ffffff; letter-spacing: -0.04em; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-text-box h1 span { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero-text-box p { font-size: 1.3rem; color: rgba(255,255,255,0.85); margin-bottom: 3rem; max-width: 550px; line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.hero-buttons { display: flex; gap: 1.5rem; }

.hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-glass-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-large); padding: 2.5rem; color: white; transition: all 0.4s ease; box-shadow: var(--shadow-glass); }
.stat-glass-card:hover { transform: translateY(-8px); border-color: var(--accent-green); }
.stat-glass-card i { font-size: 2.5rem; color: var(--accent-green); margin-bottom: 1.2rem; display: block; }
.stat-glass-card h3 { font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.03em; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.stat-glass-card p { font-size: 0.9rem; color: rgba(255,255,255,0.8); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; }

/* --- Utilidades --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
.pt-nav { padding-top: 150px; }
.pb-nav { padding-bottom: 100px; }
.text-center { text-align: center; }
.fade-up { opacity: 0; transform: translateY(40px); animation: fadeUpAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; }
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }

/* --- Sidebar --- */
.settings-sidebar { position: fixed; top: 0; right: -450px; width: 420px; height: 100vh; background: var(--glass-sidebar); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-left: 1px solid var(--border-color); z-index: 2000; padding: 4rem 3rem; transition: right 0.6s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.1); overflow-y: auto; }
.settings-sidebar.open { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.sidebar-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.settings-group { margin-bottom: 2.5rem; }
.settings-group h4 { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; font-weight: 600; }

/* Menú de Navegación del Sidebar */
.nav-menu-list { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-menu-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 12px; color: var(--text-primary); text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.nav-menu-item:hover { background: var(--bg-base); color: var(--accent-green); }
.nav-menu-item.active { background: var(--accent-green); color: var(--text-on-accent); }
.nav-menu-item i { width: 20px; text-align: center; font-size: 1.1rem; }

.config-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.config-item { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; cursor: pointer; transition: background 0.2s ease; border-bottom: 1px solid var(--border-color); }
.config-item:last-child { border-bottom: none; }
.config-item:hover { background: var(--border-color); }
.config-item.active i.fa-check { display: block; color: var(--accent-green); }
.config-item i.fa-check { display: none; }
.overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 1500; }
.overlay.active { opacity: 1; visibility: visible; }

/* --- SERVICIOS: Bloques Montados Borrosos (Glassmorphism Fix) --- */
.service-block-wrapper { padding: 4rem 0 8rem 0; }
.service-block { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; margin-bottom: 8rem; }
.service-block.right .block-img-container { grid-column: 5 / 13; grid-row: 1; height: 600px; border-radius: var(--radius-large); overflow: hidden; box-shadow: var(--shadow-soft); }
.service-block.right .block-card { grid-column: 1 / 7; grid-row: 1; z-index: 2; }
.service-block.left .block-img-container { grid-column: 1 / 9; grid-row: 1; height: 600px; border-radius: var(--radius-large); overflow: hidden; box-shadow: var(--shadow-soft); }
.service-block.left .block-card { grid-column: 7 / 13; grid-row: 1; z-index: 2; }

/* RESTAURADO: Fondo borroso, translúcido que permite ver la imagen */
.block-card { 
    background: var(--glass-overlap); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); /* Crucial para Safari/iOS */
    border: 1px solid var(--border-color); 
    padding: 4.5rem; 
    border-radius: var(--radius-large); 
    box-shadow: var(--shadow-glass); 
    transition: transform 0.4s ease; 
}
.block-card:hover { transform: translateY(-10px); border-color: var(--accent-green); }
.block-card h2 { font-size: 2.8rem; margin-bottom: 1.5rem; color: var(--text-primary); letter-spacing: -0.04em; text-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: text-shadow 0.3s ease; }
.block-card:hover h2 { text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.block-card > p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 2.5rem; }
.feature-list { list-style: none; }
.feature-list li { margin-bottom: 1.2rem; display: flex; align-items: flex-start; gap: 1rem; font-weight: 500; color: var(--text-primary); }
.feature-list i { font-size: 1.2rem; color: var(--accent-green); margin-top: 0.2rem; }

.block-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.block-img-container:hover img { transform: scale(1.05); }

/* Bajado de 991px a 768px para que en Laptops pequeñas SIEMPRE se monte */
@media (max-width: 768px) {
    .service-block { display: flex; flex-direction: column; gap: 2rem; }
    .service-block.right .block-img-container, .service-block.left .block-img-container { height: 400px; width: 100%; border-radius: var(--radius-large); }
    .service-block.right .block-card, .service-block.left .block-card { width: 100%; margin: 0 auto; margin-top: -80px; position: relative; z-index: 5;}
    .block-card { padding: 3rem; }
}

/* --- Modal de Proyectos --- */
.project-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.project-modal-overlay.active { opacity: 1; visibility: visible; }
.project-modal-content { background: var(--bg-surface); width: 1100px; max-width: 95%; border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; position: relative; box-shadow: 0 40px 80px rgba(0,0,0,0.6); border: 1px solid var(--border-color); transform: scale(0.95); transition: transform 0.4s ease; }
.project-modal-overlay.active .project-modal-content { transform: scale(1); }
.modal-close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(0,0,0,0.5); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10; transition: background 0.3s; display: flex; justify-content: center; align-items: center; }
.modal-close-btn:hover { background: var(--accent-green); }

.modal-gallery { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.modal-main-img-wrapper { position: relative; width: 100%; height: 400px; }
.modal-main-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.modal-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; transition: all 0.3s; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; z-index: 10;}
.modal-arrow:hover { background: var(--accent-green); }
.modal-arrow.prev { left: 1rem; } .modal-arrow.next { right: 1rem; }
.modal-thumbnails { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;}
.modal-thumbnails img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s; }
.modal-thumbnails img:hover, .modal-thumbnails img.active { border-color: var(--accent-green); }

.modal-details { padding: 3rem 3rem 3rem 1rem; color: var(--text-primary); display: flex; flex-direction: column; justify-content: center; }
.modal-tag { display: inline-block; background: var(--accent-green); color: var(--text-on-accent); padding: 0.4rem 1rem; border-radius: 20px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1.5rem; letter-spacing: 0.05em; align-self: flex-start;}
.modal-details h2 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.03em; color: var(--text-primary); text-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.modal-meta { display: flex; gap: 1.5rem; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 2rem; }
.modal-meta i { color: var(--accent-gold); margin-right: 0.5rem; }
.modal-details h4 { color: var(--accent-green); font-size: 1.1rem; margin-bottom: 0.8rem; }
.modal-details p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; margin-bottom: 2rem; }
.modal-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3rem; list-style: none; }
.modal-features li { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; color: var(--text-primary); }
.modal-features i { color: var(--accent-gold); }
.btn-modal-action { background: var(--accent-green); color: var(--text-on-accent); width: 100%; padding: 1.2rem; border-radius: 12px; font-weight: 700; font-size: 1.1rem; border: none; cursor: pointer; transition: background 0.3s; display: flex; justify-content: center; align-items: center; gap: 0.8rem; text-transform: uppercase; text-decoration: none;}
.btn-modal-action:hover { background: var(--accent-green-hover); color: var(--text-primary); }

@media (max-width: 1024px) {
    :root {
        --title-hero: 3.5rem;
        --font-base: 1rem;
    }
    .nav-container { padding: 0 1.5rem; }
    .nav-left, .nav-right { gap: 1rem; }
    .hero-content { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.5rem; }
    .hero-stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-glass-card { padding: 1.5rem; }
    .stat-glass-card h3 { font-size: 2rem; }
    .stat-glass-card i { font-size: 2rem; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    :root {
        --title-hero: 2.5rem;
        --font-base: 0.95rem;
    }
    header { height: 70px; }
    .nav-left, .nav-right { display: none; }
    .nav-container { grid-template-columns: 1fr auto 1fr; }
    .nav-right { justify-content: flex-end; }
    .nav-right .btn { display: none; }
    #btn-settings { display: flex; }
    .brand-logo { height: 50px; }
    
    .hero-immersive { height: auto; min-height: 100vh; padding-top: 70px; padding-bottom: 4rem; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; padding: 0 1rem; text-align: center; }
    .hero-text-box { order: 1; }
    .hero-text-box h1 { font-size: var(--title-hero); }
    .hero-text-box p { font-size: 1rem; max-width: 100%; margin-bottom: 2rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; padding: 1rem 1.5rem; font-size: 1rem; }
    .hero-stats-grid { order: 2; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-glass-card { padding: 1.2rem; }
    .stat-glass-card h3 { font-size: 1.8rem; }
    .stat-glass-card p { font-size: 0.75rem; }
    .stat-glass-card i { font-size: 1.5rem; margin-bottom: 0.8rem; }
    
    .container { padding: 0 1rem; }
    .block-card { padding: 2rem; }
    .block-card h2 { font-size: 1.8rem; }
    .block-card > p { font-size: 1rem; }
    
    .project-modal-content { grid-template-columns: 1fr; }
    .modal-gallery { padding: 1rem; }
    .modal-main-img-wrapper { height: 250px; }
    .modal-details { padding: 1.5rem; }
    .modal-details h2 { font-size: 1.5rem; }
    .modal-meta { flex-direction: column; gap: 0.5rem; }
    .modal-features { grid-template-columns: 1fr; }
    
    .settings-sidebar { width: 100%; right: -100%; padding: 2rem 1.5rem; }
    
    footer { padding: 3rem 0 2rem; }
    footer .brand-logo { margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
    :root {
        --title-hero: 2rem;
    }
    .hero-text-box h1 { font-size: var(--title-hero); line-height: 1.15; }
    .hero-text-box p { font-size: 0.9rem; }
    .hero-buttons .btn { font-size: 0.9rem; padding: 0.9rem 1rem; }
    .hero-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .stat-glass-card { padding: 1rem; border-radius: 12px; }
    .stat-glass-card h3 { font-size: 1.5rem; }
    .stat-glass-card p { font-size: 0.7rem; }
    .stat-glass-card i { font-size: 1.3rem; }
    
    .container { padding: 0 0.8rem; }
}

/* ============================================
   RESPONSIVE MÓVIL — PÁGINAS INTERNAS
   Nosotros, Servicios, Proyectos, Contacto
   ============================================ */

/* --- Nosotros: firma-split --- */
@media (max-width: 900px) {
    .firma-split {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .firma-text h2 { font-size: 2.2rem !important; }
    .firma-text p { font-size: 1.1rem !important; }
    .firma-media { height: 350px !important; width: 100% !important; }

    .cards-premium-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .card-premium { padding: 2.5rem 2rem !important; }

    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .info-section { padding: 4rem 0 !important; }
}

@media (max-width: 768px) {
    .firma-split { margin-bottom: 3rem !important; }
    .firma-text h2 { font-size: 1.8rem !important; }
    .firma-media { height: 260px !important; }
    .card-premium { padding: 2rem 1.5rem !important; }
    .card-premium h3 { font-size: 1.4rem !important; }
    .card-premium p { font-size: 1rem !important; }
    .info-block { flex-direction: column; gap: 1rem !important; }
    .info-block i { padding: 1rem !important; font-size: 1.8rem !important; }
    .info-block h4 { font-size: 1.2rem !important; }
    .info-block p { font-size: 1rem !important; }
}

/* --- Proyectos: grid y filtros --- */
@media (max-width: 900px) {
    .portfolio-apple-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 3rem 0 5rem 0 !important;
    }
    .portfolio-img-wrapper { height: 260px !important; }
    .filter-header-bar {
        flex-wrap: wrap !important;
        gap: 0.6rem !important;
        padding: 2.5rem 0 !important;
    }
    .filter-header-bar .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
    .portfolio-body { padding: 2rem !important; }
    .portfolio-title { font-size: 1.4rem !important; }
}

/* --- Contacto: layout --- */
@media (max-width: 900px) {
    .contact-premium-layout {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        padding: 4rem 0 5rem 0 !important;
    }
    .premium-form-wrapper { padding: 3rem 2rem !important; }
    .premium-form-wrapper h3 { font-size: 1.8rem !important; }
    .premium-form-wrapper > p { font-size: 1rem !important; margin-bottom: 2.5rem !important; }
    .input-row-grid {
        grid-template-columns: 1fr !important;
        gap: 1.8rem !important;
        margin-bottom: 1.8rem !important;
    }
    .card-contact-box { padding: 2rem !important; gap: 1.2rem !important; }
    .contact-icon-circle { width: 55px !important; height: 55px !important; font-size: 1.4rem !important; }
    .contact-txt-details h4 { font-size: 1.1rem !important; }
    .contact-txt-details p { font-size: 1rem !important; }
}

@media (max-width: 480px) {
    .premium-form-wrapper { padding: 2rem 1.2rem !important; }
    .premium-form-wrapper h3 { font-size: 1.5rem !important; }
    .card-contact-box { padding: 1.5rem !important; flex-direction: column; align-items: flex-start; gap: 1rem !important; }
}

/* --- Servicios: service-block mejorado --- */
@media (max-width: 768px) {
    .service-block-wrapper { padding: 2rem 0 5rem 0; }
    .service-block { margin-bottom: 4rem; }
    .service-block.right .block-img-container,
    .service-block.left .block-img-container { height: 280px !important; }
    .block-card { padding: 2rem 1.5rem !important; }
    .block-card h2 { font-size: 1.5rem !important; }
    .block-card > p { font-size: 0.95rem !important; margin-bottom: 1.5rem !important; }
    .feature-list li { font-size: 0.95rem !important; gap: 0.8rem !important; margin-bottom: 0.8rem !important; }
}

/* --- Modal proyectos en móvil --- */
@media (max-width: 768px) {
    .project-modal-content {
        grid-template-columns: 1fr !important;
        overflow-y: auto;
        max-height: 90vh;
    }
    .modal-details { padding: 1.5rem !important; }
    .modal-details h2 { font-size: 1.4rem !important; }
    .modal-main-img-wrapper { height: 230px !important; }
    .modal-features { grid-template-columns: 1fr !important; gap: 0.7rem !important; }
    .modal-meta { flex-direction: column; gap: 0.4rem !important; }
}

/* --- Navegación móvil: mostrar botón hamburguesa siempre --- */
@media (max-width: 768px) {
    /* Asegurar que el icono de menú siempre sea visible */
    .nav-right {
        display: flex !important;
        gap: 0.5rem !important;
        align-items: center;
    }
    #btn-settings { display: flex !important; }
    /* El .nav-left y nav-right con links de texto se ocultan */
    .nav-left { display: none !important; }
    .nav-right .nav-link { display: none !important; }
    .nav-right .btn-green { display: none !important; }
}

/* --- Utilidades de padding responsive --- */
@media (max-width: 768px) {
    .pt-nav { padding-top: 100px !important; }
    .pb-nav { padding-bottom: 60px !important; }
    footer { padding: 2.5rem 0 2rem !important; }
}