/* ===========================
   URBATEK — style.css (v4.0 Blueprint Edition)
   =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@700;800;900&display=swap');

/* ---------- RESET & VARS ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #2d6a27;
    --primary-dark: #1a3d16;
    --accent: #6bbf59;
    --accent-light: #a3e635;
    --text: #1a2e17;
    --text-muted: #5a6e55;
    --bg: #f0ede5;
    --bg-cream: #e8e4d8;
    --bg-dark: #1a3d16;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
section { padding: 6rem 8%; position: relative; overflow: hidden; }
#servicios { padding-top: 3rem; padding-bottom: 3rem; }

/* ---------- PAGE FADE-IN ---------- */
body { animation: pageFadeIn 0.6s ease forwards; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- SECTION REVEAL ---------- */
.section-reveal { transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; opacity: 0.01; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

/* Section click ripple */
.section-ripple {
    position: absolute; top: 50%; left: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, rgba(45,106,39,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: none;
    z-index: 0;
}
.section-ripple.active {
    width: 200vw; height: 200vw;
    opacity: 0;
    transition: width 0.8s ease, height 0.8s ease, opacity 0.8s ease;
}

/* ---------- BLUEPRINT BG ---------- */
.blueprint-bg { background: var(--bg); }
.section-cream-dark { background: var(--primary-dark); }

/* ---------- ACCESSIBILITY & SEO ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ---------- NAVBAR ---------- */
nav {
    position: sticky; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 5%;
    background: var(--bg);
    border-bottom: 1px solid rgba(45,106,39,0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    transition: none;
}
.logo-link { display: flex; align-items: center; }
.nav-logo { height: 100px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-link {
    font-size: 0.88rem; font-weight: 600;
    color: var(--text); letter-spacing: 0.02em;
    position: relative; padding: 0.3rem 0;
    transition: color 0.3s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
    background: var(--primary); color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.7rem 1.4rem; border-radius: 6px;
    transition: var(--transition); white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-mobile {
    position: fixed; top: 110px; left: 0; right: 0; z-index: 99;
    background: var(--bg); border-bottom: 2px solid var(--primary);
    padding: 1.5rem 5%;
    display: flex; flex-direction: column; gap: 1rem;
    transform: translateY(-110%); transition: transform 0.4s ease;
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile .nav-link { font-size: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(45,106,39,0.1); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 0.9rem 2rem; border-radius: 6px; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
}
.btn-lg { padding: 1.2rem 2.8rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45,106,39,0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-4px); }
.btn-outline-dark { background: #f5f0e8; color: var(--primary-dark); border-color: #f5f0e8; }
.btn-outline-dark:hover { background: transparent; color: #f5f0e8; border-color: rgba(245,240,232,0.7); transform: translateY(-4px); }

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh; position: relative;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-content {
    position: relative; z-index: 2;
    width: 100%; padding: 4rem 8% 5rem;
    display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hero-scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll-hint span {
    display: block; width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin: 0 auto;
    animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* Blueprint strip at bottom of hero — acts as footer band */
.hero-blueprint-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    height: 130px;
    overflow: hidden;
    pointer-events: none;
}
.hero-blueprint-strip img {
    width: 100%; height: 130px;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

/* ---------- FULL IMAGE SECTIONS ---------- */
.full-img-section { padding: 0; }
.full-section-img { width: 100%; display: block; height: auto; }
.rounded-img { border-radius: 20px; }
.full-section-img-wrap { margin-top: 2rem; }

/* ---------- SECTION COMMON ---------- */
.section-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.26rem; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--primary); display: block; margin-bottom: 1rem;
}
.section-tag.light { color: var(--accent-light); }
.section-head { margin-bottom: 4rem; }
.section-head.centered { text-align: center; }
.section-head h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900;
    color: var(--primary-dark); line-height: 1.1;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-top: 1rem; }
.accent-text { color: var(--primary); }

/* ---------- NOSOTROS ---------- */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.nosotros-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.nosotros-img img { width: 100%; height: auto; display: block; }
.nosotros-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 1.5rem; line-height: 1.1;
}
.nosotros-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.nosotros-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.nosotros-stats > div { text-align: center; padding: 1.5rem 1rem; background: white; border-radius: 12px; border: 1px solid rgba(45,106,39,0.12); }
.nosotros-stats strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; font-weight: 900; color: var(--primary);
}
.nosotros-stats span { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.nosotros-stats p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.3rem; color: var(--text-muted); }

/* ---------- SERVICIOS ---------- */
.section-cream-dark .section-tag { color: var(--accent-light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: #f0ece2; border: 1px solid rgba(45,106,39,0.12); border-radius: 16px; overflow: hidden; transition: var(--transition); }
.service-card:hover { transform: translateY(-8px); background: #e8e3d8; border-color: var(--accent); }
.service-img-new { width: 100%; height: 380px; overflow: hidden; background: #f0ece2; display: flex; align-items: stretch; }
.service-img-new img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- CATÁLOGO ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.catalog-card { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.06); transition: var(--transition); background: white; }
.catalog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.13); }
/* OLD photo style - removed */
.catalog-icon-box {
    background: var(--bg-cream);
    padding: 2rem 1.5rem 1rem;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid rgba(45,106,39,0.08);
    min-height: 180px;
}
.catalog-icon-box svg {
    width: 100%; max-width: 160px; height: auto;
    transition: transform 0.4s ease;
}
.catalog-card:hover .catalog-icon-box svg { transform: scale(1.06); }
.catalog-info { padding: 1.5rem; }
.catalog-info h3 { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid rgba(45,106,39,0.15); }
.catalog-info ul li { font-size: 0.83rem; color: var(--text-muted); padding: 0.25rem 0 0.25rem 1rem; position: relative; }
.catalog-info ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.catalog-cta { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 1rem; }

/* ---------- TECNOLOGÍA ---------- */
.tech-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.tech-2col { grid-template-columns: repeat(2, 1fr) !important; gap: 2rem; }
.tech-prod-card { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: white; transition: var(--transition); border: 1px solid rgba(45,106,39,0.08); }
.tech-prod-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.tech-prod-card img { width: 100%; height: auto; display: block; }

/* ---------- SPLIT SECTION ---------- */
.split-section { padding: 6rem 8%; }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.split-img img { width: 100%; height: auto; display: block; }
.split-text h2 { font-family: 'Montserrat', sans-serif; font-size: 2.6rem; font-weight: 900; color: var(--primary-dark); margin: 0.8rem 0 1.2rem; line-height: 1.1; }
.split-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.split-list { display: flex; flex-direction: column; gap: 0.6rem; }
.split-list li { font-size: 0.9rem; color: var(--text); padding-left: 1.2rem; position: relative; }
.split-list li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- CIUDAD DEL FUTURO ---------- */
.section-cream-dark { background: var(--primary-dark); }
.ciudad-content { padding: 3rem 8% 1.5rem; position: relative; z-index: 2; color: white; }
.ciudad-content h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; margin: 0.6rem 0 1rem; line-height: 1.05; color: white; }
.ciudad-content > p { font-size: 1.1rem; opacity: 0.85; max-width: 640px; line-height: 1.7; margin-bottom: 2rem; }
/* Background image via ::before overlay — no blend-mode needed */
.ciudad-bg { position: relative; }
.ciudad-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('recursos/IMAGENES%20NUEVAS/dise%C3%B1ando%20la%20ciudad%20del%20ma%C3%B1ana.png');
    background-size: cover; background-position: center;
    opacity: 0.35;
    z-index: 0;
}
.ciudad-bg > * { position: relative; z-index: 1; }
/* Full image — no crop */
.ciudad-strip { width: 100%; overflow: hidden; }
.ciudad-strip img { width: 100%; height: auto; display: block; }
.ciudad-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.pillar { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 1rem 1.2rem; backdrop-filter: blur(8px); transition: var(--transition); }
.pillar:hover { background: rgba(255,255,255,0.18); transform: translateY(-6px); }
.pillar-icon { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 1rem; color: var(--accent-light); }
.pillar-icon svg { stroke: var(--accent-light); }
.pillar h4 { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.6rem; color: var(--accent-light); }
.pillar p { font-size: 0.82rem; opacity: 0.85; line-height: 1.6; color: white; }
.ciudad-img-full { width: 100%; }
.ciudad-img-full img { width: 100%; display: block; height: auto; }
.full-bleed-img { margin-left: calc(-8%); margin-right: calc(-8%); width: calc(100% + 16%); }
.full-bleed-img img { width: 100%; display: block; height: auto; }

/* ---------- VIDEO INTERMEDIO ---------- */
.video-mid-section { background: var(--bg); padding: 6rem 8%; }
.video-mid-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.video-mid-text h2 { font-family: 'Montserrat', sans-serif; font-size: 2.6rem; font-weight: 900; color: var(--primary-dark); margin: 0.8rem 0 1.2rem; line-height: 1.1; }
.video-mid-text p { color: var(--text-muted); line-height: 1.8; font-size: 1rem; }
.video-mid-player { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.15); }
.video-mid-player video { width: 100%; height: auto; display: block; }

/* ---------- CONSTRUYAMOS JUNTOS ---------- */
.construyamos-wrap { position: relative; overflow: hidden; }
.construyamos-cropped {
    width: 100%;
    display: block;
    /* Center crop: cuts BOTH top logo and bottom contact boxes, shows content zone */
    object-fit: cover;
    object-position: 50% 28%;
    height: 520px;
}
/* ---------- FOTO REAL URBATEK ---------- */
.foto-real-section { background: var(--bg-cream); }
.foto-real-section .full-section-img { width: 100%; height: auto; display: block; }

/* ---------- CONTACTO / FORM ---------- */
.quote-container { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.quote-form { background: white; border-radius: 20px; padding: 3rem; box-shadow: 0 20px 60px rgba(0,0,0,0.06); border: 1px solid rgba(45,106,39,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.form-group label { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.form-group input, .form-group textarea { padding: 0.9rem 1rem; border: 1.5px solid rgba(45,106,39,0.15); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--text); transition: border-color 0.3s; background: #fafaf8; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(45,106,39,0.08); }
.form-group textarea { resize: vertical; }
.checkbox-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.check-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; cursor: pointer; padding: 0.5rem 0.7rem; border-radius: 6px; border: 1.5px solid rgba(45,106,39,0.15); transition: all 0.2s; color: var(--text-muted); }
.check-item:hover { border-color: var(--primary); background: rgba(45,106,39,0.04); color: var(--primary); }
.check-item input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; }
.quote-info { display: flex; flex-direction: column; gap: 1.4rem; padding-top: 0.5rem; }
.quote-benefit { display: flex; gap: 1rem; align-items: flex-start; }
.quote-benefit > span { font-size: 1.4rem; flex-shrink: 0; }
.quote-benefit h4 { font-size: 0.82rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.quote-benefit p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.whatsapp-cta { display: flex; align-items: center; justify-content: center; gap: 0.7rem; background: var(--primary); color: white; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.9rem; padding: 1rem 1.5rem; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s ease; margin-top: 0.5rem; border: 2px solid var(--primary); }
.whatsapp-cta:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(45,106,39,0.35); }
.whatsapp-cta span { font-size: 1.3rem; }

/* ---------- FOOTER ---------- */
footer { background: var(--primary-dark); color: white; padding: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); align-items: start; }
.footer-minimal { display: flex; align-items: center; justify-content: flex-end; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 72px; width: auto; margin-bottom: 1.2rem; mix-blend-mode: lighten; }
.footer-brand p { font-size: 0.88rem; opacity: 0.65; line-height: 1.7; }
.footer-links-col h4 { font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent-light); margin-bottom: 1.2rem; }
.footer-links-col a { display: block; font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.7rem; transition: opacity 0.3s, color 0.3s; }
.footer-links-col a:hover { opacity: 1; color: var(--accent-light); }
.privacy-btn { display: inline-block; background: var(--primary); color: white !important; padding: 0.6rem 1.2rem; border-radius: 6px; font-size: 0.78rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 1 !important; transition: all 0.3s !important; border: 1px solid rgba(255,255,255,0.2); }
.privacy-btn:hover { background: var(--accent) !important; color: var(--primary-dark) !important; }
.footer-bottom { display: flex; align-items: center; justify-content: center; padding: 0.75rem 0; font-size: 0.8rem; opacity: 0.5; }
.footer-bottom strong { color: var(--accent-light); margin-left: 0.3rem; }

/* ---------- FLOATING SOCIALS ---------- */
.social-float {
    position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.8rem;
    z-index: 500;
}
.social-btn {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: var(--transition);
    position: relative;
    animation: socFloat 3s ease-in-out infinite;
}
.social-btn:nth-child(2) { animation-delay: 0.4s; }
.social-btn:nth-child(3) { animation-delay: 0.8s; }
@keyframes socFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}
.social-btn:hover {
    transform: scale(1.15) translateX(-4px) !important;
    box-shadow: 0 8px 24px rgba(45,106,39,0.45);
    background: var(--primary-dark);
}
.social-label {
    position: absolute; right: 58px;
    background: var(--primary-dark); color: white;
    font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 700;
    padding: 0.3rem 0.8rem; border-radius: 20px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translateX(8px);
    transition: all 0.3s ease;
}
.social-btn:hover .social-label { opacity: 1; transform: translateX(0); }
.slider-hint { display: none; } /* hidden on desktop, shown only in 768px media query */
/* Slider hint color on dark sections matches the accent-light tag color */
.section-cream-dark .slider-hint { color: var(--accent-light); font-weight: 800; }

/* ---------- DESKTOP CIUDAD SECTION ---------- */
@media (min-width: 769px) {
    /* Section becomes a stacked flex column — no extra padding */
    #ciudad { padding: 0; display: flex; flex-direction: column; min-height: auto; overflow: visible; }

    /* Pull the background img out of absolute and make it a full-width block */
    #ciudad > img[aria-hidden="true"] {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        object-fit: initial !important;
        display: block;
        order: 2;                  /* image goes AFTER the section-tag row */
    }

    /* Section tag row stays on top */
    .ciudad-content { padding: 1.5rem 8% 0.5rem; order: 1; }
    /* Hide text so illustration is the hero */
    .ciudad-content h2 { display: none; }
    .ciudad-content > p { display: none; }
    .ciudad-content .ciudad-pillars { display: none; } /* pillars moved outside */

    /* Pillars strip rendered BELOW the image */
    .ciudad-pillars {
        order: 3;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        background: var(--primary-dark);
        padding: 1.2rem 8%;
        margin: 0;
        border-top: 2px solid rgba(163,230,53,0.3);
    }
    .pillar {
        border-radius: 0;
        border: none;
        border-right: 1px solid rgba(255,255,255,0.1);
        background: transparent;
        backdrop-filter: none;
        padding: 1rem 1.2rem;
    }
    .pillar:last-child { border-right: none; }
}

@media (max-width: 1200px) {
    .ciudad-pillars { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .tech-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    section { padding: 5rem 6%; }
    .nav-logo { height: 120px; }
    .nosotros-grid, .tech-container, .video-mid-inner, .split-inner { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-container { grid-template-columns: 1fr; }
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .social-float { right: 0.8rem; }
    .social-label { display: none; }
    .ciudad-content { padding: 1.5rem 5% 1rem; }
    .ciudad-content h2 { font-size: 1.6rem; }
    .ciudad-content > p { font-size: 0.78rem; margin-bottom: 1rem; }
    .ciudad-content .section-tag { font-size: 0.65rem; }
    .pillar { padding: 0.7rem 0.9rem; }
    .pillar h4 { font-size: 0.78rem; margin-bottom: 0.3rem; }
    .pillar p { font-size: 0.72rem; }
    .pillar-icon svg { width: 24px; height: 24px; }
    .pillar-icon { margin-bottom: 0.5rem; }
}
@media (max-width: 768px) {
    section { padding: 3rem 5%; }

    /* ── HERO BUTTONS ── */
    .hero-content { flex-direction: column; align-items: center; padding: 3rem 5% 4rem; }
    .hero-btns { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; width: 100%; max-width: 320px; }
    .hero-btns .btn { width: 100%; text-align: center; justify-content: center; }
    .hero { min-height: 75vh; }

    /* ── NO GAP BETWEEN SECTIONS ── */
    .full-img-section { margin: 0; padding: 0; }
    .foto-real-section { margin-bottom: 0; }

    /* ── CIUDAD SECTION MOBILE — same as desktop: inline image + pillar slider ── */
    #ciudad { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
    /* Pull background img out of absolute → full-width inline block */
    #ciudad > img[aria-hidden="true"] {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        object-fit: initial !important;
        display: block;
        order: 2;
    }
    .ciudad-content { padding: 1.5rem 5% 0.5rem; order: 1; }
    /* Slider hint — hide since we abandoned sliding */
    .ciudad-slider-hint {
        display: none !important;
    }
    /* Pillars as a single 4-column row */
    .ciudad-pillars {
        order: 4;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0;
        background: var(--primary-dark);
        padding: 0.8rem 2%;
        border-top: none;
    }
    .pillar {
        min-width: unset;
        scroll-snap-align: unset;
        flex-shrink: unset;
        border-radius: 0;
        border: none;
        border-right: 1px solid rgba(255,255,255,0.12);
        background: transparent;
        padding: 0.4rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pillar h4 { font-size: 0.55rem; margin-bottom: 0; line-height: 1.1; }
    .pillar p { display: none; } /* Hide paragraph so 4 cards fit inline cleanly */
    .pillar-icon { margin-bottom: 0.3rem; }
    .pillar-icon svg { width: 20px; height: 20px; }
    .pillar:last-child { border-right: none; }

    /* ── SERVICES GRID 3x2 ── */
    #servicios .slider-hint { display: none !important; }
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem;
        padding-bottom: 0;
        overflow-x: visible;
    }
    .service-card {
        min-width: unset;
        scroll-snap-align: unset;
        flex-shrink: unset;
    }

    /* ── CATALOG SLIDER ── */
    .catalog-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        grid-template-columns: unset;
    }
    .catalog-grid::-webkit-scrollbar { display: none; }
    .catalog-card {
        min-width: 78vw;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* ── SLIDER HINT LABEL ── */
    .slider-hint {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.82rem;
        color: #1a5c16;
        font-weight: 800;
        margin-bottom: 0.6rem;
        letter-spacing: 0.05em;
    }
    .slider-hint::after { content: '→'; font-size: 1rem; }

    /* ── TECH GRID 2 COLS ── */
    .tech-products-grid,
    .tech-2col { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }

    /* ── SERVICE CARD IMAGE — reduce sizes for 3-column fit ── */
    .service-img-new { height: 110px; border-radius: 8px; }

    /* ── CITY PILLARS 2 COLS ── */
    .ciudad-pillars { grid-template-columns: 1fr 1fr; }

    /* ── CONTACT SIDEBAR BUTTONS ── */
    .whatsapp-cta {
        display: block;
        width: fit-content;
        width: -webkit-fit-content;
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
        margin: 0 auto;
    }
    .quote-sidebar { text-align: center; align-items: center; display: flex; flex-direction: column; }
    .privacy-btn {
        display: block !important;
        width: fit-content !important;
        width: -webkit-fit-content !important;
        padding: 0.5rem 1.2rem !important;
        font-size: 0.78rem !important;
        margin: 0.5rem auto 0 !important;
    }
    .quote-container { grid-template-columns: 1fr; }

    /* ── FOOTER CENTERED ── */
    .footer-bottom { text-align: center; flex-direction: column; gap: 0.3rem; padding: 0.6rem 1rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .nosotros-stats { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
}
@media (max-width: 480px) {
    .ciudad-pillars { grid-template-columns: 1fr 1fr; }
    .tech-products-grid,
    .tech-2col { grid-template-columns: repeat(2, 1fr) !important; }
    .nosotros-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   MOBILE OPTIMIZATIONS — Enhanced v5.0
   ============================================ */

/* --- 480px: Small phones --- */
@media (max-width: 480px) {
    section { padding: 2.5rem 4%; }

    /* Typography — reduce large headings */
    .nosotros-text h2,
    .split-text h2,
    .video-mid-text h2 { font-size: 1.8rem; line-height: 1.15; }
    .section-head h2 { font-size: clamp(1.7rem, 7vw, 2.2rem) !important; }
    .section-sub { font-size: 0.88rem; }
    .nosotros-text p { font-size: 0.88rem; }

    /* Hero */
    .hero { min-height: 80svh; }
    .hero-content { padding: 2rem 4% 3rem; }
    .btn-lg { padding: 0.9rem 1.6rem; font-size: 0.88rem; }

    /* Nav */
    .nav-logo { height: 50px !important; }
    nav { padding: 0.6rem 4%; }

    /* Services — 2 cols on tiny phones */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    .service-img-new { height: 90px !important; border-radius: 6px; }

    /* Catalog slider */
    .catalog-card { min-width: 88vw; }

    /* Tech grid */
    .tech-products-grid,
    .tech-2col { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem; }
    .tech-prod-card img { border-radius: 8px; }

    /* Ciudad pillars — 2x2 grid */
    .ciudad-pillars {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0.8rem 4% !important;
        gap: 0 !important;
    }
    .pillar {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding: 0.6rem !important;
    }
    .pillar:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12) !important; }
    .pillar h4 { font-size: 0.62rem; }
    .pillar-icon svg { width: 18px; height: 18px; }

    /* Form — CRITICAL: prevents iOS zoom on input focus */
    .form-group input,
    .form-group textarea,
    .form-group select { font-size: 16px !important; }
    .checkbox-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .quote-form { padding: 1.5rem; border-radius: 12px; }
    .check-item { font-size: 0.75rem; padding: 0.4rem 0.5rem; }

    /* Nosotros stats */
    .nosotros-stats { gap: 0.5rem; }
    .counter-num { font-size: 1.5rem !important; }

    /* Full section images */
    .full-section-img { width: 100%; object-fit: cover; }

    /* Footer */
    .footer-bottom { font-size: 0.72rem; padding: 0.6rem 4%; }

    /* Social float — smaller & tighter */
    .social-float { right: 0.4rem; gap: 0.5rem; }
    .social-btn { width: 40px; height: 40px; }
    .social-btn svg { width: 18px; height: 18px; }

    /* WhatsApp CTA button */
    .whatsapp-cta { font-size: 0.82rem; padding: 0.85rem 1.2rem; }

    /* Catalog cards in slider */
    .catalog-icon-box { padding: 1.2rem; }
    .catalog-info { padding: 1rem 1.2rem 1.2rem; }
    .catalog-info h3 { font-size: 0.85rem; }
    .catalog-info ul li { font-size: 0.78rem; }

    /* Split section */
    .split-list li { font-size: 0.85rem; }
}

/* --- 360px: Very small phones (Galaxy A series, older iPhones) --- */
@media (max-width: 360px) {
    section { padding: 2rem 3.5%; }

    .nosotros-text h2,
    .split-text h2,
    .video-mid-text h2 { font-size: 1.5rem; }
    .section-head h2 { font-size: 1.5rem !important; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }
    .service-img-new { height: 78px !important; }

    .catalog-card { min-width: 92vw; }

    .nav-logo { height: 42px !important; }

    .hero-btns { max-width: 280px; }
    .btn { font-size: 0.82rem; padding: 0.8rem 1.2rem; }

    .footer-bottom { flex-direction: column; text-align: center; gap: 0.2rem; font-size: 0.68rem; }
}
