/* ===== VARIABLES ===== */
:root {
  --primary: #b5862b;
  --secondary: #1c1c1c;
  --accent: #d4a843;
  --dark: #111111;
  --light: #f9f7f4;
  --gray: #6b7280;
  --light-gray: #f0ece6;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(181,134,43,0.2);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background-color: var(--light); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 1000; background: var(--dark); transition: var(--transition); }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 1200px; margin: 0 auto; }
.header__logo { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: 1px; text-transform: uppercase; }
.header__logo span { color: var(--primary); }
.header__nav { display: flex; align-items: center; gap: 32px; }
.nav__link { font-weight: 500; color: rgba(255,255,255,0.75); font-size: 0.92rem; position: relative; padding-bottom: 4px; letter-spacing: 0.3px; }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: 15px; }

/* ===== HAMBURGER ===== */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--white); border-radius: 2px; 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); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-weight: 700; font-size: 0.92rem; font-family: 'Inter', sans-serif; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(181,134,43,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.84rem; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80') center/cover no-repeat; color: white; padding: 80px 20px; }
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); padding: 6px 16px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; color: white; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero__title span { color: var(--primary); }
.hero__subtitle { font-size: 1.1rem; opacity: 0.85; margin-bottom: 38px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 55px; }
.section-eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 0.8rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-subtitle { color: var(--gray); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ===== SERVICES ===== */
.services-section { background: var(--light-gray); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.service-card { background: white; border-radius: var(--radius); padding: 38px 30px; box-shadow: var(--shadow); transition: var(--transition); border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-bottom-color: var(--primary); }
.service-card__icon { font-size: 2.2rem; margin-bottom: 18px; color: var(--primary); }
.service-card__title { font-weight: 800; font-size: 1.05rem; color: var(--dark); margin-bottom: 10px; }
.service-card__desc { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }

/* ===== WHY US ===== */
.why-section { background: var(--dark); color: white; }
.why-section .section-title { color: white; }
.why-section .section-subtitle { color: rgba(255,255,255,0.6); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.why-card { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 35px 25px; text-align: center; border: 1px solid rgba(181,134,43,0.2); transition: var(--transition); }
.why-card:hover { background: rgba(181,134,43,0.1); border-color: var(--primary); transform: translateY(-4px); }
.why-card__icon { width: 58px; height: 58px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.3rem; color: white; }
.why-card__title { font-weight: 800; font-size: 1rem; margin-bottom: 8px; color: white; }
.why-card__desc { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.project-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.project-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.project-card__body { background: white; padding: 22px; }
.project-card__tag { display: inline-block; background: var(--light-gray); color: var(--primary); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px; }
.project-card__title { font-weight: 800; font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.project-card__desc { font-size: 0.88rem; color: var(--gray); }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--primary); padding: 80px 20px; text-align: center; }
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: white; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 35px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner__btns { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ===== PRODUCTS PAGE ===== */
.products-section { background: var(--light-gray); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.product-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--light-gray); }
.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.badge-obra       { background: #fef3c7; color: #92400e; }
.badge-reforma    { background: #dbeafe; color: #1e40af; }
.badge-acabados   { background: #d1fae5; color: #065f46; }
.badge-integral   { background: #ede9fe; color: #5b21b6; }
.product-card__name { font-weight: 800; font-size: 0.97rem; color: var(--dark); margin-bottom: 6px; flex: 1; }
.product-card__desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 16px; line-height: 1.5; }
.product-card__btn { width: 100%; padding: 11px; background: var(--dark); color: white; border: none; border-radius: var(--radius); font-weight: 700; font-size: 0.88rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.product-card__btn:hover { background: var(--primary); }

/* ===== FILTERS ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.filter-btn { padding: 8px 20px; border-radius: var(--radius); border: 2px solid var(--light-gray); background: white; color: var(--gray); font-weight: 600; font-size: 0.88rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--dark); color: white; border-color: var(--dark); }

/* ===== TERMS ===== */
.terms-page { background: var(--light-gray); }
.terms-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.terms-toc { background: white; border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.terms-toc h3 { font-size: 0.88rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--light-gray); }
.terms-toc ul { display: flex; flex-direction: column; gap: 4px; }
.terms-toc a { display: block; padding: 7px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; color: var(--gray); transition: var(--transition); }
.terms-toc a:hover { background: var(--light-gray); color: var(--primary); }
.terms-content { background: white; border-radius: var(--radius); padding: 45px; box-shadow: var(--shadow); }
.terms-content h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.terms-date { color: var(--gray); font-size: 0.9rem; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--light-gray); }
.terms-section { margin-bottom: 40px; scroll-margin-top: 100px; }
.terms-section h2 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 14px; padding-left: 14px; border-left: 4px solid var(--primary); }
.terms-section p { color: #444; font-size: 0.93rem; line-height: 1.8; margin-bottom: 12px; }
.terms-section ul { list-style: disc; padding-left: 22px; color: #444; font-size: 0.93rem; line-height: 1.8; margin-bottom: 12px; }
.terms-section .data-box { background: var(--light-gray); border-radius: 8px; padding: 18px 20px; margin: 15px 0; border-left: 4px solid var(--primary); }
.terms-section .data-box p { margin: 0 0 6px; font-weight: 600; color: var(--dark); }
.terms-section .data-box p:last-child { margin-bottom: 0; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--dark); color: white; padding: 14px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.25); animation: slideUp 0.3s ease; border-left: 4px solid var(--primary); min-width: 260px; }
.toast i { color: var(--primary); }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(30px); opacity: 0; } }
.toast.hide { animation: slideDown 0.3s ease forwards; }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1400&q=80') center/cover no-repeat; color: white; padding: 75px 20px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.page-hero h1 span { color: var(--primary); }
.page-hero p { opacity: 0.8; font-size: 1rem; }

/* ===== FOOTER ===== */
.footer { background: #0a0a0a; color: #bbb; padding: 65px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #1f1f1f; }
.footer-brand__logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-brand__desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; color: #888; }
.footer-brand__fiscal { font-size: 0.78rem; color: #555; line-height: 1.7; background: rgba(255,255,255,0.03); padding: 12px 15px; border-radius: 6px; border-left: 3px solid var(--primary); }
.footer-col h4 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.88rem; color: #888; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 5px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.05); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #888; font-size: 0.9rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-bottom { padding: 20px 0; font-size: 0.82rem; color: #444; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease forwards; }
.fade-in-delay-1 { animation: fadeIn 0.6s ease 0.1s both; }
.fade-in-delay-2 { animation: fadeIn 0.6s ease 0.2s both; }
.fade-in-delay-3 { animation: fadeIn 0.6s ease 0.3s both; }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .terms-layout { grid-template-columns: 1fr; } .terms-toc { position: static; } }
@media (max-width: 768px) {
  .header__nav { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; background: var(--dark); flex-direction: column; justify-content: center; gap: 30px; padding: 30px; box-shadow: 5px 0 25px rgba(0,0,0,0.5); transition: left 0.35s cubic-bezier(0.4,0,0.2,1); z-index: 999; }
  .header__nav.open { left: 0; }
  .nav__link { font-size: 1.1rem; }
  .hamburger { display: flex; z-index: 1000; }
  .hero { min-height: 80vh; padding: 70px 20px; }
  .hero__cta { flex-direction: column; }
  section { padding: 65px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .terms-content { padding: 25px; }
  .filter-btn { padding: 6px 14px; font-size: 0.82rem; }
}
