/* =========================================
   1. VARIABLES DE MARCA LAREZ
========================================= */
:root {
    --color-dark: #001226;   
    --color-yellow: #FFD100; 
    --color-orange: #F59D0F; 
    --color-red-ref: #FF0033;
    --color-white: #FFFFFF;
    --color-bg-light: #F9FAFB;
    
    --font-sans: 'Open Sans', sans-serif;
    --font-condensed: 'Open Sans Condensed', sans-serif;
}

/* =========================================
   2. RESETEO BASE Y SCROLL
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-sans); color: var(--color-dark); background-color: var(--color-bg-light); line-height: 1.7; -webkit-font-smoothing: antialiased; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-dark { color: var(--color-dark) !important; }

/* =========================================
   3. HEADER, NAVEGACIÓN Y ANIMACIONES
========================================= */
.header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    padding: 25px 0; 
    z-index: 1000; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    background: linear-gradient(to bottom, rgba(0, 18, 38, 0.95), rgba(0, 18, 38, 0.7));
}

.header.scrolled { 
    background-color: rgba(0, 18, 38, 0.95); 
    padding: 12px 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.25); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* LOGO */
.logo-link { position: relative; display: inline-block; width: 140px; height: 50px; z-index: 1002; } 
.img-logo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.4s ease; transform: scale(1.6); transform-origin: left center; }
.logo-amarillo { opacity: 0; }
.header.scrolled .logo-blanco { opacity: 0; }
.header.scrolled .logo-amarillo { opacity: 1; }

/* NAVBAR Y ENLACES ANIMADOS */
.navbar { display: flex; align-items: center; gap: 30px; }

.nav-link { 
    position: relative;
    color: var(--color-white); 
    text-decoration: none; 
    font-size: 0.82rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease; 
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-yellow);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover { color: var(--color-yellow); }
.nav-link:hover::after, .nav-link.active-nav::after { width: 100%; }

/* BOTÓN CONTACTO DESTACADO EN HEADER */
.btn-nav-cta {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 9px 24px;
    border-radius: 30px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background-color: var(--color-yellow);
    color: var(--color-dark) !important;
    border-color: var(--color-yellow);
    box-shadow: 0 0 20px rgba(255, 209, 0, 0.35);
    transform: translateY(-2px);
}

.menu-toggle { display: none; }

/* =========================================
   4. BOTONES GENERALES
========================================= */
.btn-outline { border: 1px solid var(--color-white); padding: 10px 25px; border-radius: 30px; color: var(--color-white); text-decoration: none; transition: all 0.3s ease; }
.btn-outline:hover { background-color: var(--color-white); color: var(--color-dark) !important; }
.btn-solid { display: inline-block; background-color: var(--color-yellow); color: var(--color-dark); padding: 18px 40px; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: all 0.3s ease; border: none; cursor: pointer;}
.btn-solid:hover { background-color: var(--color-orange); color: var(--color-white); box-shadow: 0 10px 20px rgba(245, 157, 15, 0.3); }
.btn-small { padding: 12px 25px; font-size: 0.85rem; }
.btn-pill { display: inline-block; background-color: var(--color-white); color: var(--color-dark); padding: 10px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.3s ease; }
.btn-pill:hover { background-color: var(--color-yellow); color: var(--color-dark); transform: scale(1.05); }

/* =========================================
   5. ESTRUCTURA DE SECCIONES
========================================= */
.section-white { padding: 120px 0; background-color: var(--color-white); }
.section-light { padding: 120px 0; background-color: var(--color-bg-light); }
.section-dark { padding: 120px 0; background-color: var(--color-dark); color: var(--color-white); }
.section-yellow { padding: 120px 0; background-color: var(--color-yellow); color: var(--color-dark); }
.section-kicker { display: block; color: var(--color-orange); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; font-size: 0.9rem; }
.section-title { font-family: var(--font-condensed); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 25px; line-height: 1.1; }
.section-text { max-width: 750px; margin: 0 auto; font-size: 1.15rem; opacity: 0.85; }

/* =========================================
   6. HERO (INICIO)
========================================= */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; background: url('img/imgdefondo.jpg') center/cover no-repeat; background-attachment: fixed; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0, 18, 38, 0.95), rgba(0, 18, 38, 0.5)); }
.hero-content { position: relative; z-index: 2; color: var(--color-white); max-width: 1050px; }
.hero-title { font-family: var(--font-condensed); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 40px; max-width: 600px; font-weight: 300; opacity: 0.9; line-height: 1.6; }

/* =========================================
   7. NOSOTROS Y ELEMENTOS GRÁFICOS
========================================= */
#nosotros { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.relative-section { position: relative; overflow: hidden; }
.relative-content { position: relative; z-index: 2; }
.decor-shape { position: absolute; background-color: var(--color-yellow); opacity: 0.8; z-index: 1; }
.shape-top-right { top: 0; right: 0; width: 250px; height: 350px; border-radius: 0 0 0 120px; }
.shape-bottom-left { bottom: -50px; left: 0; width: 300px; height: 200px; background-color: rgba(245, 157, 15, 0.15); border-radius: 0 120px 0 0; }
.shape-top-left-white { top: -20px; left: -20px; width: 300px; height: 300px; background-color: rgba(255, 255, 255, 0.2); border-radius: 0 0 120px 0; }

/* =========================================
   8. CONÓCENOS Y TIKTOK
========================================= */
.conocenos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 50px; }
.conocenos-info h3 { font-family: var(--font-condensed); font-size: 1.8rem; color: var(--color-orange); margin-bottom: 15px; }
.conocenos-info p { margin-bottom: 15px; }
.tiktok-promo { background: linear-gradient(to right, rgba(0, 18, 38, 0.9), rgba(0, 18, 38, 0.6)), url('img/live2.jpg') center/cover; border-radius: 10px; padding: 50px 40px; color: var(--color-white); position: relative; box-shadow: 0 15px 30px rgba(0,0,0,0.15); transition: transform 0.4s ease; }
.tiktok-promo:hover { transform: translateY(-10px); }
.live-badge { display: inline-block; background-color: #FF0050; color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 20px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 80, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 0, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 80, 0); } }
.tiktok-content h3 { font-family: var(--font-condensed); font-size: 2.2rem; margin-bottom: 15px; }
.tiktok-content p { margin-bottom: 30px; opacity: 0.9; }
.btn-tiktok { display: inline-block; background-color: #00F2FE; color: var(--color-dark); padding: 12px 30px; border-radius: 4px; text-decoration: none; font-weight: bold; text-transform: uppercase; transition: 0.3s; }
.btn-tiktok:hover { background-color: var(--color-white); }

/* =========================================
   9. SERVICIOS PREMIUM (FLIP CARDS 3D)
========================================= */
.section-services { padding: 100px 0; background-color: var(--color-bg-light); }
.grid-services-premium { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; width: 100%; }

.flip-card { background-color: transparent; height: 480px; perspective: 1000px; width: 100%; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 10px 10px 10px 60px; overflow: hidden; }

/* FRENTE DE LA TARJETA */
.flip-card-front { background-size: cover; background-position: center; }
.card-gradient { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,18,38,0.05) 0%, rgba(0,18,38,0.95) 90%); display: flex; align-items: flex-end; padding: 40px 30px; }
.card-content { width: 100%; }
.card-title { font-family: var(--font-condensed); font-size: 2.2rem; line-height: 1.1; margin-bottom: 25px; color: var(--color-white); }

/* REVERSO DE LA TARJETA */
.flip-card-back { background-color: var(--color-dark); color: var(--color-white); transform: rotateY(180deg); padding: 50px 30px; display: flex; flex-direction: column; justify-content: center; border: 2px solid var(--color-yellow); }
.flip-card-back h3 { color: var(--color-yellow); font-family: var(--font-condensed); font-size: 1.8rem; margin-bottom: 20px; line-height: 1.1; }
.service-bullets { list-style: none; padding-left: 0; margin-bottom: 30px; flex-grow: 1; }
.service-bullets li { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.5; position: relative; padding-left: 20px; color: #E5E7EB; }
.service-bullets li::before { content: '✔'; position: absolute; left: 0; top: 0; color: var(--color-orange); font-weight: bold; }
.btn-close-flip { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--color-white); font-size: 2rem; cursor: pointer; transition: color 0.3s ease; }
.btn-close-flip:hover { color: var(--color-orange); }

/* =========================================
   10. PORTAFOLIO PROYECTOS (ESTILO INMOBILIARIA CON SLIDER Y PROYECTOS EN AVANCE)
========================================= */
.section-projects-grid {
    padding: 100px 0 60px 0;
    background-color: var(--color-white);
}

.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

.projects-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 15px 5px 30px 5px;
    scrollbar-width: none; /* Firefox */
}

.projects-slider::-webkit-scrollbar {
    display: none; /* Chrome y Safari */
}

.project-card {
    flex: 0 0 350px;
    height: 490px;
    position: relative;
    border-radius: 12px;
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 18, 38, 0.08);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 18, 38, 0.08);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 18, 38, 0.18);
}

.project-media {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media img {
    transform: scale(1.08);
}

/* ESTILO ESPECIAL: PROYECTOS SIN IMAGEN (PROYECTO EN AVANCE) */
.project-media.no-img-card {
    background: linear-gradient(135deg, #001226 0%, #002347 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-bottom: 2px solid var(--color-yellow);
}

.progress-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    gap: 8px;
}

.progress-icon {
    font-size: 2.8rem;
    margin-bottom: 5px;
}

.progress-title {
    font-family: var(--font-condensed);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-yellow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.progress-sub {
    font-size: 0.8rem;
    color: #A0AAB2;
    font-weight: 300;
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-dark);
    color: var(--color-yellow);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.project-header {
    padding: 20px;
    background-color: var(--color-white);
    border-top: 1px solid #F3F4F6;
}

.project-title {
    font-family: var(--font-condensed);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-location {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 600;
}

/* BROCHURE OVERLAY - APARECE EN HOVER */
.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 38, 0.96);
    color: var(--color-white);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    backdrop-filter: blur(5px);
}

.project-card:hover .project-hover-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.badge-hover {
    align-self: flex-start;
    background-color: var(--color-yellow);
    color: var(--color-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-hover-overlay h4 {
    font-family: var(--font-condensed);
    font-size: 1.6rem;
    color: var(--color-yellow);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hover-info {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #E5E7EB;
}

.project-hover-overlay h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-orange);
    margin: 10px 0 6px 0;
    letter-spacing: 0.5px;
}

.project-hover-overlay ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.project-hover-overlay ul li {
    font-size: 0.82rem;
    color: #D1D5DB;
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px;
}

.project-hover-overlay ul li::before {
    content: '•';
    color: var(--color-yellow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hover-deliverables {
    font-size: 0.82rem;
    color: #F3F4F6;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    margin-top: auto;
    line-height: 1.4;
}

.proj-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.prev-proj-arrow { left: 5px; }
.next-proj-arrow { right: 5px; }

/* =========================================
   11. ELEGIRNOS Y CARRUSELES
========================================= */
.carousel-wrapper { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 50px; width: 100%; }
.feature-item { background-color: rgba(255,255,255,0.3); padding: 40px 20px; border-radius: 10px; }
.grid-features h3 { font-family: var(--font-condensed); font-size: 1.6rem; margin-bottom: 15px; }
.larez-icon { width: 140px; height: 140px; margin: -20px auto 10px auto; transition: transform 0.3s ease; }
.larez-icon img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.5); } 
.feature-item:hover .larez-icon { transform: scale(1.1); }

.carousel-arrow { display: none; background-color: var(--color-dark); color: var(--color-white); border: none; width: 45px; height: 45px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; transition: 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.carousel-arrow:hover { background-color: var(--color-orange); }
.prev-arrow { left: -15px; }
.next-arrow { right: -15px; }

/* =========================================
   12. SECCIÓN CONTACTO & TRABAJA CON NOSOTROS
========================================= */
.contact-section { position: relative; padding: 100px 0; background: url('img/construccion.jpg') center/cover no-repeat; background-attachment: fixed; color: var(--color-white); }
.contact-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0, 18, 38, 0.95) 40%, rgba(0, 18, 38, 0.8)); }
.contact-container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-heading { font-family: var(--font-condensed); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 20px; color: var(--color-white); }
.contact-desc { font-size: 1.1rem; opacity: 0.9; max-width: 90%; margin-bottom: 40px; }
.contact-details p { font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.contact-form-wrapper { background-color: var(--color-white); padding: 40px; color: var(--color-dark); border-radius: 10px 10px 10px 60px; box-shadow: 0 25px 50px rgba(0,0,0,0.2); }

.form-title { font-family: var(--font-sans); font-weight: 600; font-size: 1.8rem; text-align: center; margin-bottom: 10px; }
.form-subtitle { text-align: center; font-size: 0.9rem; color: #666; margin-bottom: 30px; }
.quote-form { display: flex; flex-direction: column; gap: 15px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 15px 20px; border: none; background-color: #F3F4F6; border-radius: 8px; font-family: var(--font-sans); font-size: 0.95rem; color: var(--color-dark); transition: background-color 0.3s; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; background-color: #E5E7EB; }
.btn-full { width: 100%; text-align: center; margin-top: 10px; }

/* Estilos Específicos para Trabaja con Nosotros */
.careers-hero { position: relative; background: url('img/imgdefondo.jpg') center/cover no-repeat; background-attachment: fixed; color: var(--color-white); }
.careers-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 18, 38, 0.85); }
.careers-hero-title { font-family: var(--font-condensed); font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 15px; }
.careers-hero-subtitle { font-size: 1.15rem; max-width: 750px; margin: 0 auto; opacity: 0.9; font-weight: 300; }
.careers-form-container { max-width: 800px; margin: 0 auto; background-color: var(--color-white); padding: 50px 40px; border-radius: 10px 10px 10px 60px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 5px; color: var(--color-dark); text-transform: uppercase; letter-spacing: 0.5px; }

/* Adjunta tu CV - Botón Personalizado */
.file-upload-wrapper { display: flex; align-items: center; gap: 20px; margin: 10px 0; }
.hidden-file-input { display: none; }
.btn-file-custom {
    display: inline-block;
    border: 1px solid var(--color-red-ref);
    color: var(--color-red-ref);
    background-color: transparent;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.btn-file-custom:hover {
    background-color: rgba(255, 0, 51, 0.05);
}
.file-name-text {
    font-size: 0.95rem;
    color: #4B5563;
}

/* =========================================
   13. FOOTER COMPLETO
========================================= */
.footer-comprehensive { background-color: #040A11; color: var(--color-white); padding: 80px 0 30px; font-family: var(--font-sans); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { max-width: 190px; height: auto; margin-bottom: 20px; display: block; transform: scale(1.4); transform-origin: left center; }
.footer-desc { color: #A0AAB2; font-size: 0.95rem; line-height: 1.7; max-width: 90%; }
.footer-heading { font-weight: 600; font-size: 1.1rem; margin-bottom: 25px; color: var(--color-white); }
.footer-nav { display: flex; flex-direction: column; gap: 15px; }
.footer-col p, .footer-nav a { color: #A0AAB2; text-decoration: none; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--color-yellow); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-social { display: flex; gap: 25px; }
.footer-social a { color: var(--color-white); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.3s ease; }
.footer-social a:hover { color: var(--color-orange); }

/* =========================================
   14. ANIMACIONES REVEAL (CORREGIDO)
========================================= */
.reveal { 
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); 
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   15. DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
========================================= */
@media (max-width: 900px) {
    .section-white, .section-light, .section-dark, .section-yellow, .section-services, .contact-section {
        padding: 70px 0;
    }
    .container { padding: 0 20px; }

    .header { padding: 15px 0; background-color: var(--color-dark); }
    
    .logo-link { 
        margin-right: auto; 
        margin-left: -45px; 
        width: 160px; 
        height: 55px; 
        flex-shrink: 0; 
    }
    .img-logo { transform: scale(1.9); transform-origin: left center; }
    .logo-amarillo { opacity: 1; }
    .logo-blanco { opacity: 0; }
    
    .menu-toggle { display: flex; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; z-index: 1003; }
    .menu-toggle span { width: 30px; height: 3px; background-color: var(--color-white); border-radius: 2px; transition: 0.3s ease; }
    
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .navbar { 
        display: flex; 
        flex-direction: column; 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 280px; 
        height: 100vh; 
        background-color: var(--color-dark); 
        padding: 90px 30px 30px 30px; 
        visibility: hidden; 
        transition: right 0.4s ease, visibility 0.4s; 
        box-shadow: -10px 0 30px rgba(0,0,0,0.5); 
        z-index: 1001;
        align-items: flex-start;
        gap: 15px;
    }
    
    .navbar.active { right: 0; visibility: visible; }
    .navbar a { width: 100%; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
    .btn-nav-cta { margin-top: 15px; text-align: center; border-color: var(--color-yellow); color: var(--color-yellow); }

    .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); } 
    
    .conocenos-grid, .contact-container, .footer-grid, .form-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .contact-info { text-align: center; }
    .contact-details { align-items: center; }

    .carousel-arrow { display: block; } 
    .projects-carousel-wrapper { padding: 0 15px; }
    .project-card { flex: 0 0 290px; height: 460px; }
    .project-hover-overlay { padding: 20px 18px; }

    .grid-services-premium, .grid-features { 
        display: flex; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        scroll-behavior: smooth; 
        gap: 15px; 
        margin-top: 30px; 
        padding-bottom: 20px; 
        scrollbar-width: none; 
    }
    
    .grid-services-premium::-webkit-scrollbar, .grid-features::-webkit-scrollbar { display: none; }
    .flip-card, .feature-item { min-width: 100%; scroll-snap-align: center; box-sizing: border-box; }
    
    .flip-card-back { padding: 30px 20px; }
    .btn-close-flip { top: 5px; right: 15px; }
}