/* Techados Acosta - versión mejorada */
:root {
  --ta-dark: #0f172a;
  --ta-dark-2: #1e293b;
  --ta-text: #1f2937;
  --ta-muted: #64748b;
  --ta-soft: #f1f5f9;
  --ta-white: #ffffff;
  --ta-yellow: #fbbf24;
  --ta-orange: #f97316;
  --ta-green: #25d366;
  --ta-border: rgba(15, 23, 42, 0.12);
  --ta-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --ta-radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ta-text);
  background: var(--ta-soft);
  padding-top: 74px;
}

img { max-width: 100%; }

.fw-black { font-weight: 900; }

.text-white-75 { color: rgba(255, 255, 255, 0.78); }

.glass-nav {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ta-yellow), var(--ta-orange));
  color: #111827;
  font-weight: 900;
}

.navbar .nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--ta-yellow);
}

.nav-cta {
  border-radius: 999px;
}

.hero-section {
  min-height: calc(100vh - 74px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.25), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)),
    url("../src/estructura.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.35;
}

.eyebrow,
.section-label {
  color: var(--ta-yellow);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 900;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-pills span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.hero-pills i { color: var(--ta-yellow); }

.hero-card {
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--ta-shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-card-caption {
  padding: 1.25rem;
  background: #fff;
  display: grid;
  gap: 0.25rem;
}

.hero-card-caption span {
  color: var(--ta-muted);
}

.section-soft { background: var(--ta-soft); }

.section-dark {
  background:
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.2), transparent 25%),
    var(--ta-dark);
}

.section-contact {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88)),
    url("../src/techoComercial.jpg");
  background-size: cover;
  background-position: center;
}

.section-title {
  color: #111827;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-subtitle {
  color: var(--ta-muted);
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.content-card,
.service-card,
.material-card,
.process-card,
.form-card,
.quote-info,
.contact-cta {
  background: #fff;
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius);
  box-shadow: var(--ta-shadow);
}

.content-card { padding: 2rem; }

.material-card,
.service-card {
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.material-card:hover,
.service-card:hover,
.gallery-card:hover,
.contact-cta:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}

.material-card .material-icon,
.service-card i {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 1rem;
  background: rgba(251, 191, 36, 0.18);
  color: #92400e;
  font-size: 1.8rem;
}

.material-card h3,
.service-card h3,
.process-card h3 {
  font-size: 1.24rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #111827;
}

.material-card p,
.service-card p,
.process-card p {
  color: var(--ta-muted);
  margin-bottom: 0;
}

.feature-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: #475569;
}

.feature-list i { color: #16a34a; }

.process-card {
  height: 100%;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.process-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ta-yellow);
  color: #111827;
  font-weight: 900;
  margin-bottom: 1rem;
}

.process-card h3 { color: #fff; }

.process-card p { color: rgba(255, 255, 255, 0.74); }

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.filter-btn {
  border: 1px solid var(--ta-border);
  background: #fff;
  color: #334155;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  background: #111827;
  color: #fff;
}

.gallery-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius);
  background: #fff;
  box-shadow: var(--ta-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card:hover img { transform: scale(1.06); }

.gallery-card-body {
  padding: 1.2rem;
}

.gallery-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
  color: #111827;
}

.gallery-card p {
  color: var(--ta-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.badge-soft {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.zone-tags span {
  background: #fff;
  border: 1px solid var(--ta-border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  color: #334155;
}

.quote-info,
.form-card {
  padding: 2rem;
}

.quote-info {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(255, 255, 255, 1));
}

.quote-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #111827;
}

.quote-list {
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.quote-list li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-weight: 700;
  color: #334155;
}

.quote-list i { color: #16a34a; }

.form-control,
.form-select {
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ta-yellow);
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.2);
}

.custom-accordion .accordion-item {
  border: 1px solid var(--ta-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.custom-accordion .accordion-button {
  font-weight: 900;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: #111827;
  color: #fff;
}

.contact-lines p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.8rem;
}

.contact-lines i {
  color: var(--ta-yellow);
  margin-right: 0.5rem;
}

.contact-lines a {
  color: #fff;
  text-decoration: none;
}

.contact-cta {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.whatsapp-float {
  position: fixed;
  width: 62px;
  height: 62px;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ta-green);
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

.modal-img {
  max-height: 70vh;
  object-fit: cover;
}

.footer {
  background: #020617;
  color: rgba(255, 255, 255, 0.72);
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  body { padding-top: 72px; }

  .hero-section {
    text-align: center;
  }

  .hero-pills {
    justify-content: center;
  }

  .hero-card img {
    height: 320px;
  }
}

@media (max-width: 575px) {
  .display-3 {
    font-size: 2.45rem;
  }

  .hero-card img,
  .gallery-card img {
    height: 230px;
  }

  .content-card,
  .material-card,
  .service-card,
  .quote-info,
  .form-card,
  .contact-cta {
    padding: 1.35rem;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}

/* Ilustraciones propias de materiales */
.material-card {
  overflow: hidden;
  padding: 0;
}

.material-visual {
  height: 190px;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.material-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.12));
}

.material-card-body {
  padding: 1.6rem 2rem 2rem;
}

.material-use {
  color: #475569;
  background: rgba(251, 191, 36, 0.12);
  border-left: 4px solid var(--ta-yellow);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.materials-note {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #475569;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.materials-note i {
  color: var(--ta-orange);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

@media (max-width: 575px) {
  .material-visual { height: 160px; }
  .material-card-body { padding: 1.25rem; }
}

/* Ajuste final de tarjetas de materiales: el SVG ya trae el nombre.
   Aquí evitamos duplicados, quitamos iconitos internos y damos aire para que nada se encime. */
.material-card {
  overflow: hidden;
  padding: 0;
}

.material-visual {
  height: 245px;
  padding: 1.25rem 1.25rem 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.material-visual img {
  width: 100%;
  max-width: 360px;
  height: 100%;
  max-height: 215px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.12));
}

.material-card-body {
  padding: 2rem 2rem 2rem;
}

.material-description {
  color: var(--ta-muted);
  margin: 0;
  min-height: 3.4rem;
}

.material-card .material-icon,
.material-card h3 {
  display: none !important;
}

@media (max-width: 575px) {
  .material-visual {
    height: 215px;
    padding: 1rem 1rem 1.25rem;
  }

  .material-visual img {
    max-height: 190px;
  }

  .material-card-body {
    padding: 1.5rem 1.25rem 1.5rem;
  }
}
