/* =========================================
   SERMASTECH — ESTILOS PRINCIPALES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');


/* =========================================
   VARIABLES
   ========================================= */

:root {
  --navy: #060516;
  --navy-light: #0d0c22;

  --orange: #ea8e02;
  --orange-hover: #d77f00;

  --cyan: #1ac2fc;
  --red: #df0614;

  --white: #ffffff;
  --soft-white: #f8f9fb;

  --gray: #6b7280;
  --gray-light: #e9edf2;

  --container: 1240px;
  --radius: 18px;

  --transition: 0.25s ease;
}


/* =========================================
   RESET
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
}


a {
  color: inherit;
  text-decoration: none;
}


img {
  max-width: 100%;
  display: block;
}


button,
input,
textarea {
  font: inherit;
}


/* =========================================
   UTILIDADES
   ========================================= */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}


.section {
  padding: 120px 0;
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;

  color: var(--orange);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}


.eyebrow::before {
  content: "";

  width: 30px;
  height: 2px;

  background: var(--orange);
}


h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
}


h2 {
  font-size: clamp(2.3rem, 4vw, 4.5rem);
}


p {
  color: var(--gray);
}


/* =========================================
   BOTONES
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 0 24px;

  border-radius: 10px;

  font-weight: 700;

  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border var(--transition);
}


.btn:hover {
  transform: translateY(-3px);
}


.btn-primary {
  background: var(--orange);
  color: var(--white);
}


.btn-primary:hover {
  background: var(--orange-hover);
}


.btn-secondary {
  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.3);

  color: var(--white);
}


.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}


.btn-large {
  min-height: 58px;
  padding-inline: 30px;
}


.btn-outline {
  border: 1px solid var(--navy);
  color: var(--navy);
}


.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}


.btn-white {
  background: var(--white);
  color: var(--navy);
}


/* =========================================
   HEADER
   ========================================= */

.header {
  position: absolute;

  z-index: 100;

  width: 100%;

  top: 0;
  left: 0;

  color: var(--white);
}


.nav-container {
  min-height: 88px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* LOGO */

.logo-image {
  display: flex;
  align-items: center;

  width: 190px;
}


.logo-image img {
  width: 100%;
  height: auto;

  max-height: 52px;

  object-fit: contain;
  object-position: left center;
}


/* NAVEGACIÓN */

.nav {
  display: flex;
  align-items: center;

  gap: 26px;
}


.nav a {
  font-size: 0.9rem;
  font-weight: 600;

  opacity: 0.8;

  transition: opacity var(--transition);
}


.nav a:hover {
  opacity: 1;
}


.nav-actions {
  display: flex;
  align-items: center;
}


.nav-actions .btn {
  min-height: 46px;

  padding-inline: 18px;

  font-size: 0.86rem;
}


/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;

  min-height: 860px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background: var(--navy);
  color: var(--white);
}


/* IMAGEN DE FONDO DEL HERO */

.hero-background {
  position: absolute;

  inset: 0;

  z-index: 0;
}


.hero-background img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center right;
}


/* OVERLAY */

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    radial-gradient(
      circle at 80% 35%,
      rgba(234, 142, 2, 0.14),
      transparent 25%
    ),
    linear-gradient(
      90deg,
      #060516 0%,
      #060516 42%,
      rgba(6, 5, 22, 0.92) 56%,
      rgba(6, 5, 22, 0.58) 76%,
      rgba(6, 5, 22, 0.25) 100%
    );
}


.hero-content {
  position: relative;

  z-index: 2;

  width: 100%;

  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  align-items: center;

  gap: 50px;

  padding-top: 100px;
}


.hero-text {
  max-width: 750px;
}


.hero .eyebrow {
  color: var(--cyan);
}


.hero .eyebrow::before {
  background: var(--cyan);
}


.hero h1 {
  max-width: 760px;

  margin-bottom: 28px;

  font-size: clamp(3.2rem, 6vw, 6.5rem);
  font-weight: 900;
}


.hero h1 span {
  color: var(--orange);
}


.hero-description {
  max-width: 560px;

  margin-bottom: 36px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 1.12rem;
}


.hero-features {
  display: flex;
  flex-wrap: wrap;

  gap: 28px;

  margin-bottom: 42px;
}


.hero-feature {
  display: flex;
  align-items: center;

  gap: 10px;

  font-size: 0.78rem;
  line-height: 1.35;

  color: rgba(255, 255, 255, 0.76);
}


.feature-icon {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  color: var(--orange);
}


.hero-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;
}


/* =========================================
   PROBLEMA / NOSOTROS
   ========================================= */

.problem {
  background: var(--white);
}


.problem-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 90px;

  align-items: center;
}


.problem-image {
  position: relative;

  min-height: 600px;

  display: flex;
  align-items: flex-end;

  padding: 42px;

  overflow: hidden;

  border-radius: var(--radius);

  background:
    linear-gradient(
      135deg,
      var(--navy),
      var(--navy-light)
    );
}


.problem-image::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(234, 142, 2, 0.22),
      transparent 30%
    );
}


.problem-image-content {
  position: relative;

  z-index: 2;

  max-width: 440px;

  color: var(--white);
}


.image-eyebrow {
  display: block;

  margin-bottom: 16px;

  color: var(--orange);

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.16em;
}


.problem-image-content strong {
  font-family: "Montserrat", sans-serif;

  font-size: clamp(1.8rem, 3vw, 3rem);

  line-height: 1.15;
}


.problem-content > p:not(.eyebrow) {
  max-width: 560px;

  margin-top: 26px;

  font-size: 1.08rem;
}


.problem-items {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;

  margin-top: 40px;
}


.problem-items div {
  padding: 22px;

  border-radius: 14px;

  background: var(--soft-white);
}


.problem-items strong,
.problem-items span {
  display: block;
}


.problem-items strong {
  margin-bottom: 7px;

  font-family: "Montserrat", sans-serif;
}


.problem-items span {
  color: var(--gray);

  font-size: 0.85rem;
}


/* =========================================
   ENCABEZADOS DE SECCIÓN
   ========================================= */

.section-heading {
  max-width: 700px;

  margin-bottom: 55px;
}


.section-heading h2 {
  margin-bottom: 18px;
}


.section-heading > p:last-child {
  max-width: 620px;

  font-size: 1.05rem;
}


/* =========================================
   SERVICIOS
   ========================================= */

.services {
  background: var(--soft-white);
}


.services-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}


.service-card {
  overflow: hidden;

  padding: 14px;

  background: var(--white);

  border: 1px solid var(--gray-light);

  border-radius: var(--radius);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}


.service-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 18px 50px rgba(6, 5, 22, 0.09);
}


.service-image {
  height: 220px;

  overflow: hidden;

  margin-bottom: 22px;

  border-radius: 12px;

  background: #eef1f5;
}


.service-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}


.service-card:hover .service-image img {
  transform: scale(1.05);
}


.service-card h3 {
  margin: 0 10px 10px;

  font-size: 1.15rem;
}


.service-card p {
  margin: 0 10px 18px;

  font-size: 0.9rem;
}


.service-card-highlight {
  background: var(--navy);

  border-color: var(--navy);

  color: var(--white);
}


.service-card-highlight p {
  color: rgba(255, 255, 255, 0.6);
}


.service-cta-image {
  display: grid;
  place-items: center;

  background:
    linear-gradient(
      135deg,
      rgba(234, 142, 2, 0.95),
      #df0614
    );

  color: var(--white);
}


.service-cta-image span {
  font-family: "Montserrat", sans-serif;

  font-size: 1.1rem;
  font-weight: 900;

  letter-spacing: 0.08em;
}


.service-link {
  display: inline-block;

  margin: 0 10px 10px;

  color: var(--orange);

  font-size: 0.88rem;
  font-weight: 800;
}


/* =========================================
   MARCAS
   ========================================= */

.brands {
  padding: 80px 0;

  background: var(--navy);

  color: var(--white);
}


.brands-title {
  margin-bottom: 38px;

  text-align: center;

  color: rgba(255, 255, 255, 0.6);

  font-weight: 600;
}


.brands-list {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 38px;
}


.brand-item {
  width: 145px;
  height: 75px;

  display: flex;
  align-items: center;
  justify-content: center;
}


.brand-item img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  filter: brightness(0) invert(1);

  opacity: 0.8;

  transition:
    opacity var(--transition),
    transform var(--transition);
}


.brand-item:hover img {
  opacity: 1;

  transform: translateY(-3px);
}


/* =========================================
   ESTADÍSTICAS
   ========================================= */

.stats {
  padding-block: 85px;
}


.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;
}


.stat {
  padding: 20px;
}


.stat strong {
  display: block;

  margin-bottom: 8px;

  color: var(--orange);

  font-family: "Montserrat", sans-serif;

  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
}


.stat span {
  color: var(--gray);

  font-size: 0.9rem;
}


/* =========================================
   PORTAFOLIO
   ========================================= */

.works {
  background: var(--soft-white);
}


.works-grid {
  display: grid;

  grid-template-columns: repeat(12, 1fr);

  gap: 16px;
}


.work-item {
  min-height: 260px;

  overflow: hidden;

  border-radius: var(--radius);

  background: #e9edf2;
}


.work-item:nth-child(1),
.work-item:nth-child(2) {
  grid-column: span 6;
}


.work-item:nth-child(3),
.work-item:nth-child(4),
.work-item:nth-child(5) {
  grid-column: span 4;
}


.work-item img {
  width: 100%;
  height: 100%;

  min-height: 260px;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}


.work-item:hover img {
  transform: scale(1.05);
}


.center-button {
  display: flex;
  justify-content: center;

  margin-top: 42px;
}


/* =========================================
   COBERTURA
   ========================================= */

.coverage {
  background: var(--white);
}


.coverage-grid {
  display: grid;

  grid-template-columns: 0.85fr 1.15fr;

  align-items: center;

  gap: 90px;
}


.coverage-grid > div:first-child > p:not(.eyebrow) {
  max-width: 540px;

  margin-top: 24px;

  font-size: 1.05rem;
}


.cities {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 32px;
}


.cities span {
  padding: 10px 15px;

  border: 1px solid var(--gray-light);
  border-radius: 100px;

  color: var(--navy);

  font-size: 0.85rem;

  transition:
    border var(--transition),
    background var(--transition),
    color var(--transition);
}


.cities span:hover {
  border-color: var(--orange);

  background: var(--orange);

  color: var(--white);
}


/* CONTENEDOR DEL MAPA */

.map-container {
  min-height: 540px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  overflow: hidden;

  border-radius: var(--radius);

  background:
    radial-gradient(
      circle at center,
      rgba(26, 194, 252, 0.13),
      transparent 60%
    ),
    var(--soft-white);
}


/* MAPA REAL */

.coverage-map {
  width: 100%;
  height: auto;

  max-height: 520px;

  object-fit: contain;

  transition:
    transform 0.5s ease;
}


.map-container:hover .coverage-map {
  transform: scale(1.02);
}


/* =========================================
   CTA FINAL
   ========================================= */

.final-cta {
  padding: 95px 0;

  background:
    linear-gradient(
      115deg,
      #df0614 0%,
      #ea8e02 55%,
      #f2aa2b 100%
    );

  color: var(--white);
}


.final-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 50px;
}


.final-cta h2 {
  max-width: 760px;

  font-size: clamp(2.4rem, 4.5vw, 5rem);
}


.final-cta p {
  margin-top: 16px;

  color: rgba(255, 255, 255, 0.8);

  font-size: 1.05rem;
}


.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 14px;

  flex-shrink: 0;
}


.cta-note {
  color: rgba(255, 255, 255, 0.75);

  font-size: 0.8rem;
  font-weight: 700;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
  padding: 80px 0 30px;

  background: var(--navy);

  color: var(--white);
}


.footer-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr;

  gap: 70px;
}


.footer-logo {
  display: block;

  width: 190px;

  margin-bottom: 18px;
}


.footer-logo img {
  width: 100%;
  height: auto;

  filter: none;
}


.footer p {
  max-width: 350px;

  color: rgba(255, 255, 255, 0.5);
}


.footer h4 {
  margin-bottom: 18px;

  font-size: 0.9rem;
}


.footer a:not(.footer-logo) {
  display: block;

  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 0.9rem;

  transition: color var(--transition);
}


.footer a:not(.footer-logo):hover {
  color: var(--white);
}


.footer-bottom {
  margin-top: 60px;

  padding-top: 24px;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);

  color:
    rgba(255, 255, 255, 0.35);

  font-size: 0.78rem;
}


/* =========================================
   WHATSAPP FLOTANTE
   ========================================= */

.whatsapp-floating {
  position: fixed;

  right: 24px;
  bottom: 24px;

  z-index: 99;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 62px;
  height: 62px;

  padding: 0 16px;

  border-radius: 50px;

  background: var(--orange);

  color: var(--white);

  font-size: 0.75rem;
  font-weight: 800;

  box-shadow:
    0 12px 35px rgba(234, 142, 2, 0.35);

  transition:
    transform var(--transition),
    background var(--transition);
}


.whatsapp-floating:hover {
  transform: translateY(-4px);

  background: var(--orange-hover);
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {

  .nav {
    display: none;
  }


  .hero {
    min-height: auto;

    padding: 130px 0 100px;
  }


  .hero-content,
  .problem-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }


  .hero-content {
    min-height: 650px;
  }


  .hero-background img {
    object-position: 65% center;
  }


  .problem-grid,
  .coverage-grid {
    gap: 50px;
  }


  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .final-cta-content {
    flex-direction: column;

    align-items: flex-start;
  }


  .footer-grid {
    gap: 40px;
  }

}


@media (max-width: 720px) {

  .container {
    width: min(100% - 32px, var(--container));
  }


  .section {
    padding: 80px 0;
  }


  .nav-container {
    min-height: 72px;
  }


  .logo-image {
    width: 145px;
  }


  .nav-actions .btn {
    display: none;
  }


  .hero {
    padding: 120px 0 80px;
  }


  .hero-content {
    min-height: auto;

    padding-top: 60px;
  }


  .hero-background img {
    object-position: 72% center;
  }


  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(6, 5, 22, 0.96),
        rgba(6, 5, 22, 0.75)
      );
  }


  .hero h1 {
    font-size:
      clamp(2.8rem, 13vw, 4.5rem);
  }


  .hero-features {
    gap: 18px;
  }


  .hero-buttons {
    flex-direction: column;

    align-items: stretch;
  }


  .problem-items,
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }


  .problem-image {
    min-height: 420px;

    padding: 30px;
  }


  .stats-grid {
    gap: 8px;
  }


  .work-item:nth-child(n) {
    grid-column: span 12;
  }


  .work-item,
  .work-item img {
    min-height: 230px;
  }


  .map-container {
    min-height: 400px;

    padding: 18px;
  }


  .coverage-map {
    max-height: 380px;
  }


  .final-cta {
    padding: 75px 0;
  }


  .footer-grid {
    grid-template-columns: 1fr;
  }


  .brands-list {
    gap: 20px;
  }


  .brand-item {
    width: 110px;
    height: 60px;
  }


  .whatsapp-floating {
    right: 16px;
    bottom: 16px;

    min-width: 54px;
    height: 54px;
  }

}
