/* ============================================================
   MATERIALES TRES ARROYOS — Estilos principales
   Paleta: Ladrillo #B8432F · Ámbar #D4853A · Noche #1C2B3A
   Tipografía: Oswald (títulos) · Open Sans (cuerpo)
   ============================================================ */

/* --------------------------------
   Variables
   -------------------------------- */
:root {
  --brick:        #B8432F;
  --brick-dark:   #8B2F1F;
  --brick-light:  #D4614A;
  --amber:        #D4853A;
  --dark:         #1C2B3A;
  --dark-2:       #243346;
  --charcoal:     #2D3748;
  --cream:        #F7F2EC;
  --sand:         #C8B89A;
  --gray:         #6B7280;
  --gray-light:   #E8E2DA;
  --white:        #FFFFFF;
  --wa-green:     #25D366;
  --insta-grad:   linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);

  --font-head: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --container-w: 1200px;
  --r:    8px;
  --r-lg: 16px;

  --shadow-sm: 0 2px 8px  rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);

  --ease: .25s ease;
}

/* --------------------------------
   Reset & Base
   -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { font-weight: 600; }
em { font-style: italic; }

/* --------------------------------
   Layout utilities
   -------------------------------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--dark { background: var(--dark); color: var(--white); }

.section__header { text-align: center; margin-bottom: 3.5rem; }

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section__title--light { color: var(--white); }

.section__desc {
  max-width: 540px;
  margin: 1rem auto 0;
  color: var(--gray);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--brick);
  margin-bottom: .75rem;
}
.eyebrow--light { color: var(--amber); }

/* --------------------------------
   Buttons
   -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.btn--primary {
  background: var(--wa-green);
  color: var(--white);
  border-color: var(--wa-green);
}
.btn--primary:hover {
  background: #1db954;
  border-color: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn--whatsapp {
  background: var(--wa-green);
  color: var(--white);
  border-color: var(--wa-green);
  padding: .6rem 1.1rem;
  font-size: .85rem;
}
.btn--whatsapp:hover { background: #1db954; border-color: #1db954; }

.btn--instagram {
  background: var(--insta-grad);
  color: var(--white);
  border: none;
}
.btn--instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220,39,67,.35);
}

/* --------------------------------
   WhatsApp FAB
   -------------------------------- */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: all var(--ease);
}
.wa-fab svg { width: 1.8rem; height: 1.8rem; }
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.55); }

.wa-fab__tooltip {
  position: absolute;
  right: calc(100% + .75rem);
  background: var(--dark);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .8rem;
  border-radius: var(--r);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.wa-fab:hover .wa-fab__tooltip { opacity: 1; }

/* --------------------------------
   Header / Nav
   -------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: .8rem 0;
  transition: background var(--ease), box-shadow var(--ease), padding var(--ease);
}
.header.scrolled {
  background: rgba(28,43,58,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
  padding: .5rem 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.logo__brick {
  width: 2.4rem;
  height: auto;
  color: var(--brick);
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo__place {
  font-size: .62rem;
  font-weight: 500;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 2px;
}

/* Nav links */
.nav__list {
  display: flex;
  gap: .15rem;
  margin-left: auto;
}
.nav__link {
  padding: .5rem .85rem;
  color: rgba(255,255,255,.82);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--r);
  transition: color var(--ease), background var(--ease);
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav__actions { display: flex; align-items: center; gap: .75rem; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  position: relative;
  z-index: 101;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------
   Hero
   -------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* Fondo oscuro con textura de grilla sutil y toque ladrillo */
  background:
    linear-gradient(
      135deg,
      rgba(28,43,58,.97)  0%,
      rgba(28,43,58,.88) 55%,
      rgba(184,67,47,.22) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      rgba(255,255,255,.025) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255,255,255,.025) 60px
    ),
    var(--dark);
}

.hero__content {
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.hero__title em {
  color: var(--brick-light);
  font-style: normal;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.78);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero__desc strong { color: var(--white); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
}
.trust-item svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--wa-green);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-indicator span {
  display: block;
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 1rem;
  position: relative;
}
.hero__scroll-indicator span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.55);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 0; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* --------------------------------
   Nosotros / About
   -------------------------------- */
.about { background: var(--cream); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 5rem;
  align-items: center;
}

.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.about__years {
  position: relative;
  z-index: 2;
  text-align: center;
  background: var(--brick);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
}
.years__num {
  display: block;
  font-family: var(--font-head);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: -2px;
}
.years__label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .9;
  line-height: 1.5;
}

.about__bricks {
  position: absolute;
  inset: -1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brick);
  pointer-events: none;
}
.about__bricks svg { width: 100%; max-width: 300px; }

/* Content */
.about__content .eyebrow { margin-bottom: .75rem; }
.about__content .section__title { margin-bottom: 1.25rem; }

.about__content p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about__features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--brick);
}
.feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brick);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.feature__icon svg { width: 1.25rem; height: 1.25rem; }
.feature > div:last-child { display: flex; flex-direction: column; gap: .15rem; }
.feature strong { color: var(--dark); font-size: .94rem; }
.feature span { color: var(--gray); font-size: .83rem; }

/* --------------------------------
   Materiales
   -------------------------------- */
.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.mat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.mat-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-5px);
}
.mat-card--accent {
  border-color: rgba(212,133,58,.5);
  background: rgba(212,133,58,.08);
}
.mat-card--accent:hover { border-color: var(--amber); }

.mat-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--amber);
  margin-bottom: 1.25rem;
}
.mat-card__icon svg { width: 100%; height: 100%; }

.mat-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .65rem;
}
.mat-card p {
  font-size: .875rem;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
}
.mat-card__link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--amber);
  font-weight: 600;
  font-size: .875rem;
  transition: color var(--ease), gap var(--ease);
}
.mat-card__link:hover { color: var(--white); }

/* --------------------------------
   Instagram / Novedades
   -------------------------------- */
.insta { background: var(--white); }

.insta__widget {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
behold-widget { display: block; }

.insta__cta { text-align: center; }

/* --------------------------------
   Contacto
   -------------------------------- */
.contact { background: var(--cream); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 490px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact__info h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact__cards { display: flex; flex-direction: column; gap: .75rem; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
}
.contact-card--link:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--cream);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brick);
}
.contact-card__icon svg { width: 1.2rem; height: 1.2rem; }
.contact-card__icon--wa    { background: #e8f9f0; color: var(--wa-green); }
.contact-card__icon--insta { background: #fef0f3; color: #dc2743; }

.contact-card > div:not(.contact-card__icon) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.contact-card strong {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
}
.contact-card span { color: var(--charcoal); font-size: .95rem; font-weight: 500; }

.contact-card__arrow { width: 1rem; color: var(--gray); flex-shrink: 0; }

/* --------------------------------
   Footer
   -------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand .nav__logo { margin-bottom: 0; }
.footer__brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 270px;
}
.footer__heritage {
  color: var(--amber) !important;
  font-size: .84rem !important;
  margin-top: .4rem !important;
}

.footer__nav strong,
.footer__contact strong {
  display: block;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__nav ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.footer__nav a { font-size: .9rem; transition: color var(--ease); }
.footer__nav a:hover { color: var(--amber); }

.footer__contact li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
}
.footer__contact svg { width: .95rem; height: .95rem; flex-shrink: 0; color: var(--brick); }
.footer__contact a { transition: color var(--ease); }
.footer__contact a:hover { color: var(--amber); }

.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* --------------------------------
   Scroll-in animations
   -------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-animate].visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .32s; }
[data-delay="4"] { transition-delay: .44s; }

/* --------------------------------
   Responsive — Tablet ≤ 1024px
   -------------------------------- */
@media (max-width: 1024px) {
  .materials__grid { grid-template-columns: repeat(2, 1fr); }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__visual {
    max-width: 280px;
    margin: 0 auto;
    min-height: 220px;
  }
  .years__num { font-size: 4rem; }
}

/* --------------------------------
   Responsive — Mobile ≤ 768px
   -------------------------------- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Nav móvil */
  .nav__list {
    position: fixed;
    inset: 0;
    background: rgba(28,43,58,.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    z-index: 99;
    transform: translateX(100%);
    transition: transform var(--ease);
  }
  .nav__list.open { transform: none; }
  .nav__link { font-size: 1.25rem; padding: .85rem 2.5rem; }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  /* Contacto */
  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { height: 300px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; padding: 3rem 0 2.5rem; }
  .footer__brand p { max-width: 100%; }
}

/* --------------------------------
   Responsive — Teléfono ≤ 480px
   -------------------------------- */
@media (max-width: 480px) {
  .materials__grid { grid-template-columns: 1fr; }

  .btn--whatsapp span { display: none; }

  .hero__trust { gap: 1rem; }
  .trust-item { font-size: .82rem; }
}
