/* ====================================================================
   SOLMAT PISCINAS — Estilos
   ==================================================================== */

:root {
  --navy: #10192D;
  --aqua: #2FB8C6;
  --sand: #E9E1D3;
  --bone: #FAF8F4;
  --whatsapp: #25D366;
  --text-muted: #3d4664;

  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1180px;
  --header-height: 72px;

  --shadow-sm: 0 2px 10px rgba(16, 25, 45, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 25, 45, 0.12);
  --shadow-lg: 0 20px 50px rgba(16, 25, 45, 0.18);

  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ============================= BOTONES ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--aqua);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--aqua);
  filter: brightness(0.88);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover {
  background: #1fad57;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ============================= HEADER ============================= */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--navy);
  background-image: url('assets/images/logo-bg.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__img { height: 52px; width: 155px; object-fit: contain; display: block; }
.logo__img--footer { height: 62px; width: 184px; }

.nav__list {
  display: flex;
  gap: 30px;
}
.nav__link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--aqua);
  transition: width 0.25s ease;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}
.header__whatsapp:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.06);
}
.header__cta { padding: 11px 22px; font-size: 0.88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,25,45,0.55) 0%, rgba(16,25,45,0.35) 50%, rgba(16,25,45,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero__tag {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--aqua);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #fff;
  opacity: 0.75;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================= SECCIONES GENERALES ============================= */
section { padding: 90px 0; }
.eyebrow {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 10px;
}
.eyebrow--center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-title--center { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ============================= QUIÉNES SOMOS ============================= */
.about { background: var(--bone); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}
.about__media { position: relative; }
.about__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about__badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about__badge-number {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--aqua);
}
.about__badge-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
}
.about__text p { color: var(--text-muted); }
.about__text strong { color: var(--navy); }

/* ============================= POR QUÉ HORMIGÓN ============================= */
.why-concrete { background: var(--sand); }
.why-concrete__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.why-card {
  background: var(--bone);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(47, 184, 198, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* ============================= PROCESO ============================= */
.process { background: var(--bone); }
.process__timeline {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.process__step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
}
.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.process__step h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.process__step p { color: rgba(255,255,255,0.75); margin-bottom: 0; font-size: 0.95rem; }

/* ============================= GALERÍA ============================= */
.gallery { background: var(--bone); }
.gallery__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery__item--pair { display: flex; flex-wrap: wrap; }
.gallery__photo {
  position: relative;
  aspect-ratio: 4/3;
  background: #dfe3ea;
  overflow: hidden;
  flex: 1 1 100%;
}
.gallery__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery__item:hover .gallery__photo img { transform: scale(1.05); }
.gallery__photo--half { flex: 1 1 50%; aspect-ratio: 1/1; }
.gallery__placeholder-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16,25,45,0.85);
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================= FAQ ============================= */
.faq { background: var(--bone); }
.faq__list {
  margin-top: 44px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--aqua);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================= CONTACTO ============================= */
.contact {
  background: linear-gradient(rgba(16,25,45,0.93), rgba(16,25,45,0.96)), url('assets/images/logo-bg.jpg');
  background-size: cover;
  background-position: center;
}
.contact .eyebrow { color: var(--aqua); }
.contact .section-title { color: #fff; }
.contact__cta {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact__lead { color: rgba(255,255,255,0.85); margin-bottom: 30px; }

/* ============================= FOOTER ============================= */
.footer { background: var(--navy); color: rgba(255,255,255,0.85); padding-top: 60px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand p { color: rgba(255,255,255,0.65); margin-top: 14px; font-size: 0.9rem; }
.footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer__contact p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 6px; }
.footer__whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer__whatsapp-link:hover { color: var(--aqua); }
.footer__social-icons { display: flex; gap: 12px; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-icon:hover { background: var(--aqua); color: var(--navy); transform: translateY(-3px); }
.footer__bottom {
  padding: 22px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer__bottom p { margin: 0; }

/* ============================= WHATSAPP FLOTANTE ============================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border-radius: 50%;
}
.whatsapp-float svg { position: relative; z-index: 1; }
.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0.55;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================= RESPONSIVE ============================= */
@media (min-width: 640px) {
  .why-concrete__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .about__grid { grid-template-columns: 1fr 1.1fr; }
  .why-concrete__grid { grid-template-columns: repeat(4, 1fr); }
  .process__timeline { grid-template-columns: repeat(4, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--pair { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { max-height: 400px; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .nav__list li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__link { display: block; padding: 14px 4px; }
  .header__cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  section { padding: 64px 0; }
  .hero { min-height: 100vh; }
  .btn--lg { padding: 14px 24px; }
}
