/* ============================================================
   CONCRE BLOCK - Professional Construction Materials Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --gold: #C8963E;
    --gold-light: #D4A94E;
    --gold-dark: #A67A2E;
    --gold-glow: rgba(200,150,62,0.15);
    --dark: #1A1A1A;
    --charcoal: #333;
    --slate: #555;
    --ash: #888;
    --cloud: #E8E4DF;
    --bone: #F5F2ED;
    --cream: #FAF8F5;
    --white: #FFF;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --section-pad: clamp(60px, 8vw, 120px);
    --container: 1200px;
    --gap: clamp(16px, 2vw, 32px);
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--charcoal); background: var(--white); overflow-x: hidden; width: 100%; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: var(--font-body); font-size: 1rem; border: none; outline: none; }

/* Global overflow protection */
.container, .section, .nav-container, .stats-container,
.products-grid, .services-grid, .contact-grid, .gallery-grid,
.footer-grid, .about-grid, .product-detail {
    max-width: 100%;
    overflow: visible;
}
section { overflow: hidden; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); width: 100%; }
.section { padding: var(--section-pad) 0; }
.section-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px; }
.section-title .accent { color: var(--gold); font-style: italic; }
.section-desc { font-size: 1.05rem; color: var(--slate); max-width: 600px; line-height: 1.8; }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* PRELOADER */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--dark); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s, visibility 0.6s; }
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-text { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); letter-spacing: 2px; margin-bottom: 20px; text-align: center; }
.loader-bar { width: 120px; height: 2px; background: rgba(255,255,255,0.1); margin: 0 auto; border-radius: 2px; overflow: hidden; position: relative; }
.loader-bar::after { content: ''; position: absolute; left: -40%; width: 40%; height: 100%; background: var(--gold); animation: loadSlide 1s ease infinite; }
@keyframes loadSlide { 0% { left: -40%; } 100% { left: 100%; } }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(26,26,26,0.95); backdrop-filter: blur(20px); padding: 10px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.15); }
.nav-container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 44px; border-radius: 4px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.8); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }
.nav-cta.nav-cta { background: var(--gold); color: var(--white) !important; padding: 10px 24px; border-radius: 4px; font-weight: 600; }
.nav-cta.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 26px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('img/1.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(42,37,32,0.8) 50%, rgba(26,26,26,0.7) 100%); }
.hero-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px), repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px); }
.hero-content { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); padding-top: 80px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,150,62,0.12); border: 1px solid rgba(200,150,62,0.25); padding: 8px 16px; border-radius: 30px; margin-bottom: 28px; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-badge span { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--gold); font-style: italic; }
.hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,0.65); max-width: 520px; line-height: 1.8; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 40px; right: clamp(20px, 4vw, 60px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.hero-scroll span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,0.4); writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 50px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -100%; width: 100%; height: 50%; background: var(--gold); animation: scrollDown 2s ease infinite; }
@keyframes scrollDown { 0% { top: -50%; } 100% { top: 100%; } }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--white); padding: 14px 32px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,150,62,0.3); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--white); padding: 14px 32px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; border: 1px solid rgba(255,255,255,0.3); transition: var(--transition); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-white { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--dark); padding: 14px 32px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); cursor: pointer; border: none; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* STATS */
.stats-bar { background: var(--dark); padding: 50px 0; }
.stats-container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; color: var(--gold); }
.stat-number::after { content: '+'; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-images { position: relative; }
.about-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-main img { width: 100%; height: 400px; object-fit: cover; }
.about-img-secondary { position: absolute; bottom: -30px; right: -20px; width: 55%; border-radius: var(--radius); overflow: hidden; border: 5px solid var(--white); box-shadow: var(--shadow-md); }
.about-img-secondary img { width: 100%; height: 200px; object-fit: cover; }
.about-badge { position: absolute; top: 20px; right: 20px; background: var(--gold); color: var(--white); padding: 16px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-md); }
.about-badge .number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge .text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }
.about-text p { color: var(--slate); margin-bottom: 16px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.about-feature { display: flex; align-items: center; gap: 10px; }
.about-feature-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.about-feature span { font-size: 0.85rem; font-weight: 600; color: var(--dark); }

/* PRODUCTS GRID */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 50px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(0,0,0,0.04); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card-image { position: relative; overflow: hidden; height: 240px; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-tag { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--white); padding: 5px 14px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; z-index: 2; }
.product-card-body { padding: 24px; }
.product-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.product-card-desc { font-size: 0.9rem; color: var(--slate); line-height: 1.7; margin-bottom: 18px; }
.product-card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.product-card-link:hover { color: var(--gold-dark); gap: 12px; }

/* PARALLAX */
.parallax-section { position: relative; padding: 120px 0; overflow: hidden; }
.parallax-bg { position: absolute; inset: -20%; background: url('img/2.jpg') center/cover no-repeat; background-attachment: fixed; }
.parallax-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.85); }
.parallax-content { position: relative; z-index: 2; text-align: center; max-width: 700px; margin: 0 auto; padding: 0 20px; }
.parallax-content h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.parallax-content p { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.8; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 50px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.8), transparent 60%); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { color: var(--white); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 50px; }
.service-card { background: var(--cream); padding: 36px 28px; border-radius: var(--radius-lg); text-align: center; transition: var(--transition); border: 1px solid transparent; }
.service-card:hover { background: var(--white); border-color: var(--gold-glow); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--gold-glow); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--gold); }
.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); margin-top: 50px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--cream); border-radius: var(--radius); transition: var(--transition); }
.contact-info-card:hover { background: var(--white); box-shadow: var(--shadow-md); }
.contact-info-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--gold-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.contact-info-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.contact-info-text p { font-size: 0.85rem; color: var(--slate); }
.contact-info-text a { color: var(--gold); font-weight: 500; }
.contact-info-text a:hover { color: var(--gold-dark); }
.contact-form-wrap { background: var(--dark); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); }
.contact-form-wrap h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); color: var(--white); transition: var(--transition); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: rgba(200,150,62,0.06); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.form-group select option { background: var(--dark); color: var(--white); }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit { width: 100%; padding: 14px; background: var(--gold); color: var(--white); border: none; border-radius: var(--radius); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: var(--transition); }
.btn-submit:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,150,62,0.3); }

/* MAP */
.map-section { position: relative; height: 400px; }
.map-section iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.3); }
.map-label { position: absolute; top: 24px; left: 24px; background: var(--dark); color: var(--white); padding: 16px 24px; border-radius: var(--radius); z-index: 2; box-shadow: var(--shadow-lg); }
.map-label h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.map-label p { font-size: 0.8rem; color: var(--ash); }

/* FOOTER */
.footer { background: var(--dark); padding-top: 60px; }
.footer-grid { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { height: 48px; border-radius: 4px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; color: rgba(255,255,255,0.45); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-item p { font-size: 0.85rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom-inner { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* WHATSAPP */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 999; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 96px; right: 28px; width: 44px; height: 44px; background: var(--dark); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold); cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 998; box-shadow: var(--shadow-md); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--white); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* PAGE HEADER (inner pages) */
.page-header { background: var(--dark); padding-top: 120px; padding-bottom: 60px; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; opacity: 0.03; background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px), repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px); }
.page-header .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.4); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--gold); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.75rem; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 700; color: var(--white); line-height: 1.2; }
.page-header h1 .accent { color: var(--gold); font-style: italic; }
.page-header .subtitle { color: rgba(255,255,255,0.5); max-width: 500px; margin-top: 12px; line-height: 1.7; }

/* PRODUCT DETAIL (productos page) */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--cloud);
}
.product-detail:last-child { border-bottom: none; }
.product-detail.reverse .product-detail-image { order: 2; }
.product-detail.reverse .product-detail-info { order: 1; }
.product-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    width: 100%;
}
.product-detail-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.product-detail-image:hover img { transform: scale(1.05); }
.product-detail-info { max-width: 100%; }
.product-detail-info .section-tag { margin-bottom: 8px; }
.product-detail-info h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.product-detail-info p { color: var(--slate); line-height: 1.8; margin-bottom: 12px; font-size: 0.92rem; }
.product-features-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; margin-bottom: 22px; }
.product-features-list li { display: flex; align-items: center; gap: 6px; background: var(--bone); padding: 7px 14px; border-radius: 30px; font-size: 0.78rem; font-weight: 500; color: var(--charcoal); }
.product-features-list li svg { color: var(--gold); flex-shrink: 0; }

/* CTA BANNER */
.cta-banner { background: var(--gold); padding: 60px 0; text-align: center; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================================
   RESPONSIVE - TABLET LANDSCAPE (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        background: var(--dark);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links a::after { display: none; }
    .nav-cta.nav-cta {
        margin-top: 16px;
        text-align: center;
        padding: 14px 24px;
        border-radius: 6px;
    }
    .hamburger { display: flex; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-images { max-width: 500px; }
    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 65%;
        margin-top: -50px;
        margin-left: auto;
    }

    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0;
    }
    .product-detail.reverse .product-detail-image { order: 0; }
    .product-detail.reverse .product-detail-info { order: 0; }
    .product-detail-image { max-width: 100%; }
    .product-detail-image img { height: 280px; }

    .parallax-bg { background-attachment: scroll; }
}

/* ============================================================
   RESPONSIVE - TABLET PORTRAIT (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .hero-content {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero-scroll { display: none; }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .stats-bar { padding: 40px 0; }
    .stat-number { font-size: clamp(1.8rem, 5vw, 2.4rem); }
    .stat-label { font-size: 0.65rem; letter-spacing: 1.5px; }

    .section-title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
    .section-desc { font-size: 0.95rem; }

    .about-text p { font-size: 0.9rem; }
    .about-features { grid-template-columns: 1fr 1fr; gap: 12px; }
    .about-feature span { font-size: 0.8rem; }

    .product-card-image { height: 200px; }
    .product-card-body { padding: 20px; }
    .product-card-title { font-size: 1.1rem; }
    .product-card-desc { font-size: 0.85rem; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .service-card { padding: 28px 20px; }
    .service-card h3 { font-size: 1.05rem; }
    .service-card p { font-size: 0.85rem; }

    .parallax-section { padding: 80px 0; }
    .parallax-content h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

    .contact-form-wrap { padding: 24px; }
    .contact-form-wrap h3 { font-size: 1.3rem; margin-bottom: 20px; }
    .form-row { grid-template-columns: 1fr; }

    .map-section { height: 300px; }
    .map-label { padding: 12px 16px; }
    .map-label h4 { font-size: 0.95rem; }

    .page-header { padding-top: 100px; padding-bottom: 40px; }
    .page-header h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

    .product-detail-info h2 { font-size: 1.6rem; }
    .product-detail-image img { height: 260px; }
    .product-features-list li { font-size: 0.75rem; padding: 6px 12px; }

    .cta-banner { padding: 50px 0; }
    .cta-banner h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    .cta-banner p { font-size: 0.9rem; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    body { font-size: 15px; }

    .container { padding: 0 16px; }

    .navbar { padding: 12px 0; }
    .navbar.scrolled { padding: 8px 0; }
    .nav-logo img { height: 36px; }
    .nav-links {
        width: 100%;
        max-width: 100%;
        padding: 90px 24px 30px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
        margin-bottom: 14px;
    }
    .hero-badge { padding: 6px 12px; margin-bottom: 20px; }
    .hero-badge span { font-size: 0.65rem; letter-spacing: 1.5px; }
    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        padding: 14px 20px;
        font-size: 0.75rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-item { padding: 8px 0; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.6rem; letter-spacing: 1px; }

    .section { padding: clamp(40px, 6vw, 60px) 0; }
    .section-tag { font-size: 0.6rem; letter-spacing: 2px; margin-bottom: 8px; }
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 12px; }
    .section-desc { font-size: 0.88rem; }

    .about-img-main img { height: 280px; }
    .about-img-secondary {
        width: 55%;
        margin-top: -40px;
    }
    .about-img-secondary img { height: 140px; }
    .about-badge { padding: 10px; }
    .about-badge .number { font-size: 1.5rem; }
    .about-badge .text { font-size: 0.6rem; }
    .about-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .about-feature-icon { width: 32px; height: 32px; }
    .about-feature-icon svg { width: 16px; height: 16px; }
    .about-feature span { font-size: 0.8rem; }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-card-image { height: 220px; }
    .product-card-body { padding: 18px; }
    .product-card-title { font-size: 1.1rem; margin-bottom: 8px; }
    .product-card-desc { font-size: 0.82rem; margin-bottom: 14px; }
    .product-card-link { font-size: 0.75rem; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .gallery-item { aspect-ratio: 1/1; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .service-card { padding: 24px 18px; }
    .service-icon { width: 50px; height: 50px; margin-bottom: 14px; }
    .service-icon svg { width: 24px; height: 24px; }
    .service-card h3 { font-size: 1rem; margin-bottom: 8px; }
    .service-card p { font-size: 0.82rem; }

    .parallax-section { padding: 60px 0; }
    .parallax-content h2 { font-size: 1.4rem; }
    .parallax-content p { font-size: 0.88rem; margin-bottom: 24px; }

    .contact-info-card { padding: 14px; gap: 12px; }
    .contact-info-icon { width: 40px; height: 40px; }
    .contact-info-icon svg { width: 18px; height: 18px; }
    .contact-info-text h4 { font-size: 0.85rem; }
    .contact-info-text p { font-size: 0.8rem; }

    .contact-form-wrap { padding: 20px; border-radius: var(--radius); }
    .contact-form-wrap h3 { font-size: 1.15rem; margin-bottom: 18px; }
    .form-group { margin-bottom: 12px; }
    .form-group label { font-size: 0.65rem; margin-bottom: 4px; }
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 10px 14px; font-size: 0.9rem; }
    .form-group textarea { height: 100px; }
    .btn-submit { padding: 13px; font-size: 0.75rem; }

    .map-section { height: 250px; }
    .map-label {
        top: 12px;
        left: 12px;
        padding: 10px 14px;
    }
    .map-label h4 { font-size: 0.9rem; }
    .map-label p { font-size: 0.7rem; }

    .page-header { padding-top: 90px; padding-bottom: 30px; }
    .page-header h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .page-header .subtitle { font-size: 0.85rem; }
    .breadcrumb a, .breadcrumb span, .breadcrumb .current { font-size: 0.65rem; }

    .product-detail { padding: 30px 0; }
    .product-detail-info h2 { font-size: 1.4rem; }
    .product-detail-info p { font-size: 0.85rem; }
    .product-detail-image img { height: 220px; }
    .product-features-list { gap: 8px; margin-top: 14px; margin-bottom: 18px; }
    .product-features-list li { font-size: 0.7rem; padding: 5px 10px; }

    .cta-banner { padding: 40px 0; }
    .cta-banner h2 { font-size: 1.3rem; padding: 0 10px; }
    .cta-banner p { font-size: 0.85rem; padding: 0 10px; margin-bottom: 20px; }

    .footer { padding-top: 40px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand { text-align: center; }
    .footer-brand img { margin: 0 auto 12px; }
    .footer-brand p { font-size: 0.8rem; }
    .footer-social { justify-content: center; }
    .footer-col h4 { font-size: 0.75rem; margin-bottom: 14px; }
    .footer-links a { font-size: 0.8rem; }
    .footer-contact-item p { font-size: 0.8rem; }
    .footer-bottom { padding: 14px 0; }
    .footer-bottom p { font-size: 0.7rem; }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .back-to-top {
        bottom: 80px;
        right: 18px;
        width: 38px;
        height: 38px;
    }
    .back-to-top svg { width: 16px; height: 16px; }

    .btn-primary, .btn-outline, .btn-white {
        padding: 12px 20px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max-width: 360px)
   ============================================================ */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.82rem; }
    .hero-content { padding-top: 90px; }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: 0.55rem; }
    .section-title { font-size: 1.3rem; }
    .product-card-image { height: 180px; }
    .about-img-main img { height: 220px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { aspect-ratio: 16/10; }
    .contact-form-wrap { padding: 16px; }
    .nav-links { padding: 80px 16px 24px; }
}

/* ============================================================
   LANDSCAPE MOBILE FIX
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 20px; }
    .hero-scroll { display: none; }
    .preloader { display: none; }
}

/* ============================================================
   iOS SAFE AREAS
   ============================================================ */
@supports (padding: max(0px)) {
    .navbar { padding-top: max(16px, env(safe-area-inset-top)); }
    .footer-bottom { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .whatsapp-float { bottom: max(18px, env(safe-area-inset-bottom)); }
    .back-to-top { bottom: max(80px, calc(env(safe-area-inset-bottom) + 60px)); }
}

/* ============================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }
    .service-card:hover { transform: none; }
    .gallery-item-overlay { opacity: 1; background: linear-gradient(to top, rgba(26,26,26,0.6), transparent 50%); }
    .gallery-item:hover img { transform: none; }
    .product-card:hover .product-card-image img { transform: none; }
    .product-detail-image:hover img { transform: none; }
    .btn-primary:hover { transform: none; }
    .btn-submit:hover { transform: none; }
    .contact-info-card:hover { box-shadow: none; }

    /* Larger tap targets */
    .nav-links a { padding: 18px 0; min-height: 48px; }
    .btn-primary, .btn-outline, .btn-white, .btn-submit { min-height: 48px; }
    .footer-links a { display: block; padding: 6px 0; min-height: 40px; line-height: 28px; }
    .hamburger { padding: 8px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar, .preloader, .whatsapp-float, .back-to-top, .hero-scroll,
    .parallax-section, .cta-banner { display: none !important; }
    body { color: #000; background: #fff; font-size: 12pt; }
    .section { padding: 20px 0; }
    .hero { min-height: auto; padding: 40px 0; }
    .hero-overlay { background: rgba(0,0,0,0.3); }
}

/* ============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE NAV OVERLAY (blocks background scroll)
   ============================================================ */
body.nav-open { overflow: hidden; }
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.nav-overlay.active { opacity: 1; visibility: visible; }