:root {
  --blue-900: #112c63;
  --blue-700: #1b4d9a;
  --blue-500: #2b78cb;
  --sky-200: #e6f4ff;
  --yellow: #f0cd2e;
  --green: #5bc25b;
  --cyan: #59bde0;
  --text: #1d2855;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #efefef;
  color: var(--text);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.brand-header {
  text-align: center;
  margin-bottom: 1.7rem;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.brand-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.8rem;
}

.brand-header h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.home-division-grid {
  grid-template-columns: repeat(2, 1fr);
}

.child-division-grid {
  padding: 1rem 1.5rem 0;
  grid-template-columns: repeat(2, 1fr);
}

.division-card {
  min-height: 280px;
  border-radius: 14px;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.division-card h2 {
  margin: 0;
  font-size: 2rem;
}

.division-card p {
  margin: 0.5rem 0 1rem;
  font-weight: 500;
}

.solar {
  background: linear-gradient(155deg, #87d4ff 0%, #2674c8 57%, #17377f 100%);
}

.salud {
  background: linear-gradient(155deg, #d7f4ff 0%, #9fdcf4 45%, #6fa8db 100%);
  color: var(--blue-900);
}

.equipamiento {
  background: linear-gradient(155deg, #2f78c8 0%, #1f3f8c 57%, #142857 100%);
}

.btn {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  width: fit-content;
  border: 0;
}

.btn-green { background: var(--green); color: #fff; }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--blue-900); }

.site-frame {
  background: #fff;
  border-radius: 6px;
  overflow: visible;
  box-shadow: 0 10px 28px rgba(23, 49, 92, 0.25);
}

.top-nav {
  border-top: 8px solid #4f76b4;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 14px rgba(17, 44, 99, 0.12);
}

.nav-logo {
  margin: 0;
  font-weight: 800;
  color: var(--blue-700);
}

.nav-logo span { font-weight: 600; }

.top-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.2rem 0;
}

.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 3rem 1.7rem;
  color: #fff;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1; /* encima de la imagen */
  max-width: 500px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-copy p {
  font-size: 1.15rem;
  line-height: 1.5;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

.about-copy p { line-height: 1.6; }

.about-highlights {
  display: grid;
  gap: 1rem;
}

.about-highlights article {
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--sky-200);
}

.projects {
  padding: 0 1.5rem 2rem;
}

.projects h3 {
  text-align: center;
  font-size: 2rem;
}

.carousel {
  position: relative;
  overflow: visible;
  border-radius: 14px;
  background: #dfefff;
}

.carousel-track {
  position: relative;
  min-height: 360px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.carousel-slide p {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(17, 44, 99, 0.82);
  color: #fff;
  font-weight: 600;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(17, 44, 99, 0.75);
  color: #fff;
}

.carousel-btn.prev { left: 0.7rem; }
.carousel-btn.next { right: 0.7rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #99b4db;
  padding: 0;
}

.carousel-dot.active {
  background: #1b4d9a;
}

.site-footer {
  background: linear-gradient(130deg, #143978 0%, #1b5c8f 52%, #6b8e2f 100%);
  color: #fff;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.footer-columns h4,
.quote-form h4 { margin-top: 0; }

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-columns a {
  color: #fff;
  text-decoration: none;
}

.quote-form {
  scroll-margin-top: 110px;
  background: #f5f8ff;
  color: var(--blue-900);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.quote-form label {
  font-size: 0.88rem;
  font-weight: 600;
  display: grid;
  gap: 0.25rem;
}

.quote-form input {
  border: 1px solid #c3d5ee;
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: #4f6c96;
}

.form-feedback {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-feedback.error {
  color: #b52727;
}

.form-feedback.ok {
  color: #18753d;
}

.quote-form button {
  cursor: pointer;
  justify-self: end;
}

@media (max-width: 900px) {
  .division-grid,
  .home-division-grid,
  .child-division-grid,
  .about,
  .site-footer,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .carousel-track,
  .carousel-slide img {
    min-height: 240px;
    height: 240px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}

.top-nav a[aria-current='page'] {
  color: var(--blue-900);
  border-bottom: 2px solid var(--yellow);
}

.services-page main {
  max-width: 1200px;
}

.services-hero {
  padding: 2rem 1.5rem 1rem;
}

.services-hero h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.services-hero p {
  margin: 0;
  max-width: 70ch;
  line-height: 1.6;
}

.services-stairs {
  padding: 1rem 1.5rem 2.2rem;
  display: grid;
  gap: 1.2rem;
}

.service-step {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.service-step.reverse .service-copy {
  order: 2;
}

.service-step.reverse .service-media {
  order: 1;
}

.service-copy {
  background: #f4f8ff;
  border-left: 6px solid var(--blue-500);
  border-radius: 10px;
  padding: 1.3rem;
}

.service-copy h3 {
  margin: 0 0 0.7rem;
  color: var(--blue-900);
}

.service-copy p {
  margin: 0;
  line-height: 1.6;
}

.service-copy p + p {
  margin-top: 0.6rem;
}

.service-media {
  position: relative;
  width: 100%;
  height: 320px; /* ajusta si quieres más alto */
  overflow: hidden;
  border-radius: 12px; /* opcional si tu diseño usa bordes redondeados */
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .service-step {
    grid-template-columns: 1fr;
  }

  .service-step.reverse .service-copy,
  .service-step.reverse .service-media {
    order: initial;
  }
}

.division-page main {
  max-width: 1200px;
}

.division-hero {
  padding: 2rem 1.5rem;
  color: #fff;
  background: linear-gradient(145deg, #2f7ecc 0%, #1d4f9f 60%, #18336e 100%);
}

.division-hero-salud {
  background: linear-gradient(145deg, #71c8e7 0%, #3d92c9 60%, #265e93 100%);
}

.division-hero h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.division-hero p {
  margin: 0;
  max-width: 76ch;
  line-height: 1.6;
}

.division-blocks {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.division-blocks article {
  background: #f3f8ff;
  border-left: 6px solid var(--blue-500);
  border-radius: 10px;
  padding: 1rem;
}

.division-blocks h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .division-blocks {
    grid-template-columns: 1fr;
  }
}

.division-banner {
  min-height: 340px;
  padding: 2rem 1.5rem;
  color: #fff;
  display: grid;
  align-items: end;
  background-size: cover;
  background-position: center;
}

.division-banner > div {
  max-width: 660px;
  background: rgba(9, 26, 61, 0.55);
  border-radius: 14px;
  padding: 1.2rem;
}

.division-banner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.division-banner p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.division-banner-salud {
  background-image: linear-gradient(135deg, rgba(52, 144, 198, 0.75), rgba(28, 70, 122, 0.8)),
                    url('../imagenes/banner-medico.png');
  background-size: cover;
  background-position: center 20%;  /* ajusta el valor según lo que quieras mostrar */
  background-repeat: no-repeat;
  min-height: 340px;
  padding: 2rem 1.5rem;
  color: #fff;
  display: grid;
  align-items: end;
}

.division-banner-equipamiento {
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.55)
    ),
    url("../imagenes/banner-equi.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 45vh;
  display: flex;
  align-items: center;
}

.product-collage {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 0.9rem;
}

.collage-item {
  min-height: 190px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
}

.collage-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-item.large {
  grid-row: span 2;
  min-height: 390px;
}

.collage-item.wide {
  grid-column: span 2;
}

.collage-item span {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 34, 0.78));
}

.value-cards {
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value-cards article {
  background: #f4f8ff;
  border-top: 6px solid var(--blue-500);
  border-radius: 10px;
  padding: 1rem;
}

.value-cards h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .product-collage,
  .value-cards {
    grid-template-columns: 1fr;
  }

  .collage-item.large,
  .collage-item.wide {
    grid-row: auto;
    grid-column: auto;
    min-height: 220px;
  }
  .service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
}
.sales-section {
  background: #f8f9fb;
  padding: 80px 0;
}

.sales-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.sales-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1c2b4a;
}

.sales-intro {
  max-width: 750px;
  margin: 0 auto 50px auto;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  text-align: left;
}

/* CAMBIO IMPORTANTE */
.sales-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid #e3e6ed;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.sales-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.sales-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1c2b4a;
}

.sales-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.sales-cta {
  margin-top: 20px;
}

.sales-cta p {
  margin-bottom: 20px;
  font-weight: 500;
  color: #1c2b4a;
}
.contact-box{
  scroll-margin-top:110px;
  background:#f5f8ff;
  color:var(--blue-900);
  border-radius:14px;
  padding:1.4rem;
  display:grid;
  gap:0.7rem;
}

.contact-text{
  margin:0;
  font-size:0.9rem;
  color:#4f6c96;
}

.contact-buttons{
  display:flex;
  gap:0.8rem;
  flex-wrap:wrap;
  margin-top:0.3rem;
}

.btn-whatsapp{
  background:#25D366;
  color:white;
  text-decoration:none;
  font-weight:700;
  padding:0.65rem 1.3rem;
  border-radius:999px;
  display:inline-block;
}

.btn-facebook{
  background:#1877F2;
  color:white;
  text-decoration:none;
  font-weight:700;
  padding:0.65rem 1.3rem;
  border-radius:999px;
  display:inline-block;
}

.contact-note{
  font-size:0.8rem;
  color:#4f6c96;
  margin-top:0.3rem;
}