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

:root {
      --verde: #009b3a;
      --verde-oscuro: #006f2a;
      --gris-texto: #354047;
      --gris-claro: #eef7f8;
      --footer: #2d3b39;
      --blanco: #ffffff;
      --ancho: 1180px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Montserrat', Arial, Helvetica, sans-serif;
      color: var(--gris-texto);
      background: #ffffff;
      overflow-x: hidden;
    }

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

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

    /* =========================
       HEADER / MENÚ STICKY
    ========================== */
    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background: rgba(27, 45, 42, 0.18);
      border-top: 3px solid rgba(0, 0, 0, 0.22);
      transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
    }

    .site-header.is-scrolled {
      background: rgba(39, 54, 52, 0.96);
      box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
      backdrop-filter: blur(8px);
    }

    .nav-wrap {
      width: min(var(--ancho), calc(100% - 40px));
      margin: 0 auto;
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .menu {
      display: flex;
      align-items: stretch;
      justify-content: center;
      list-style: none;
      gap: 0;
    }

    .menu a {
      display: flex;
      align-items: center;
      min-height: 64px;
      padding: 0 26px;
      color: #ffffff;
      font-family: 'Days One', Arial, Helvetica, sans-serif;
      font-size: 14px;
      line-height: 1;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: .4px;
      text-shadow: 0 1px 4px rgba(0, 0, 0, .28);
      transition: background .2s ease, color .2s ease;
    }

    .menu a:hover,
    .menu a.active {
      background: var(--verde);
      color: #ffffff;
    }


    .mobile-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border: 0;
      background: var(--verde);
      color: #fff;
      font-size: 24px;
      font-weight: 900;
      cursor: pointer;
    }

    /* =========================
       HERO CON FUNDIDO + ZOOM
    ========================== */
    .hero {
      position: relative;
      min-height: 900px;
      height: 100vh;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      isolation: isolate;
      background: #173b32;
    }

    .hero-slider {
      position: absolute;
      inset: 0;
      z-index: -3;
    }

    .hero-slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transform: scale(1);
      animation: heroFadeZoom 35s infinite;
    }

    .hero-slide:nth-child(1) {
      background-image: url('../imagenes/hero-1.jpg');
      animation-delay: 0s;
    }

    .hero-slide:nth-child(2) {
      background-image: url('../imagenes/hero-2.jpg');
      animation-delay: 7s;
    }

    .hero-slide:nth-child(3) {
      background-image: url('../imagenes/hero-3.jpg');
      animation-delay: 14s;
    }

    .hero-slide:nth-child(4) {
      background-image: url('../imagenes/hero-4.jpg');
      animation-delay: 21s;
    }

    .hero-slide:nth-child(5) {
      background-image: url('../imagenes/hero-5.jpg');
      animation-delay: 28s;
    }

    @keyframes heroFadeZoom {
      0% {
        opacity: 0;
        transform: scale(1);
      }
      6% {
        opacity: 1;
      }
      20% {
        opacity: 1;
      }
      30% {
        opacity: 0;
        transform: scale(1.13);
      }
      100% {
        opacity: 0;
        transform: scale(1.13);
      }
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background:
        linear-gradient(90deg, rgba(0, 136, 50, .42), rgba(0, 65, 58, .52)),
        rgba(0, 0, 0, .18);
    }

    .hero::after {
      content: "";
      position: absolute;
      left: -7%;
      bottom: -92px;
      width: 114%;
      height: 190px;
      background: #ffffff;
      border-radius: 50% 50% 0 0 / 100% 100% 0 0;
      z-index: 3;
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 5;
      width: min(var(--ancho), calc(100% - 40px));
      margin: 0 auto;
      text-align: center;
      padding-top: 86px;
      transform: translateY(-52px);
    }

    .hero-logo {
      width: min(477px, 52vw);
      margin: 0 auto 105px auto;
      filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .25));
    }

    .hero-title {
      font-family: 'Days One', Arial, Helvetica, sans-serif;
      color: #ffffff;
      font-size: clamp(34px, 4.8vw, 76px);
      line-height: 1;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 14px;
      text-shadow: 0 10px 18px rgba(0, 0, 0, .33);
      margin-left: 18px;
    }

    /* =========================
       SECCIONES
    ========================== */
    .section {
      position: relative;
      padding: 110px 0;
    }

    .section-inner {
      width: min(var(--ancho), calc(100% - 48px));
      margin: 0 auto;
    }

    .section-title {
      font-family: 'Days One', Arial, Helvetica, sans-serif;
      text-align: center;
      color: var(--gris-texto);
      font-size: clamp(28px, 3vw, 42px);
      line-height: 1.05;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    .green-line {
      width: 310px;
      height: 4px;
      margin: 36px auto 0 auto;
      background: var(--verde);
    }

    /* =========================
       SERVICIOS
    ========================== */
    .services-section {
      padding-top: 100px;
      padding-bottom: 160px;
      background: #ffffff;
    }

    .services-grid {
      margin-top: 74px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 58px 66px;
    }

    .service-card {
      position: relative;
      overflow: hidden;
      min-height: 270px;
      background: #111;
      cursor: pointer;
      box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    }

    .service-card:nth-child(5) {
      grid-column: 1 / -1;
      width: calc(50% - 33px);
      justify-self: center;
    }

    .service-card img {
      width: 100%;
      height: 100%;
      min-height: 270px;
      object-fit: cover;
      transition: transform .45s ease, filter .45s ease;
    }

    .service-card::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(90deg, rgba(0, 137, 43, .45), rgba(194, 139, 0, .34));
      opacity: .15;
      transition: opacity .35s ease;
    }

    .service-hover {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 36px;
      color: #fff;
      background: linear-gradient(135deg, rgba(0, 132, 48, .92), rgba(0, 52, 42, .9));
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .3s ease, transform .3s ease;
    }

    .service-hover h3 {
      font-family: 'Days One', Arial, Helvetica, sans-serif;
      font-size: clamp(26px, 3vw, 43px);
      line-height: .9;
      font-weight: 400;
      font-style: normal;
      text-transform: none;
      letter-spacing: -1px;
      margin-bottom: 18px;
      color: #ffffff;
    }

    .service-hover p {
      max-width: 92%;
      font-size: 15px;
      line-height: 1.55;
      font-weight: 600;
      color: rgba(255, 255, 255, .92);
    }

    .service-card:hover img {
      transform: scale(1.08);
      filter: saturate(1.08) contrast(1.04);
    }

    .service-card:hover::before {
      opacity: 0;
    }

    .service-card:hover .service-hover {
      opacity: 1;
      transform: translateY(0);
    }

    /* =========================
       NUESTRA EMPRESA
    ========================== */
    .company-section {
      position: relative;
      padding: 125px 0 135px;
      background: var(--gris-claro);
      overflow: hidden;
    }

    .company-section::before {
      content: "";
      position: absolute;
      left: -7%;
      top: -86px;
      width: 114%;
      height: 170px;
      background: #ffffff;
      border-radius: 0 0 50% 50% / 0 0 100% 100%;
      box-shadow: 0 20px 35px rgba(0, 0, 0, .08);
    }

    .company-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 115px;
      align-items: center;
    }

    .company-phone img {
      width: 300px;
      margin: 0 auto;
      filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .16));
    }

    .company-copy h2 {
      font-family: 'Days One', Arial, Helvetica, sans-serif;
      font-size: clamp(27px, 2.7vw, 36px);
      line-height: 1.1;
      font-weight: 400;
      text-transform: uppercase;
      color: var(--gris-texto);
      margin-bottom: 44px;
    }

    .company-copy p,
    .company-copy li {
      font-size: 16px;
      line-height: 23px;
      font-weight: 500;
      color: #3f4b51;
    }

    .company-copy ul {
      list-style: none;
      margin: 28px 0;
    }

    .company-copy li::before {
      content: "- ";
    }

    /* =========================
       CLIENTES
    ========================== */
    .clients-section {
      position: relative;
      padding: 130px 0 120px;
      background: #ffffff;
      overflow: hidden;
    }

    .clients-section::before {
      content: "";
      position: absolute;
      left: -7%;
      top: -76px;
      width: 114%;
      height: 150px;
      background: var(--gris-claro);
      border-radius: 0 0 50% 50% / 0 0 100% 100%;
    }

    .clients-intro {
      max-width: 860px;
      margin: 34px auto 66px;
      text-align: center;
      font-size: 16px;
      line-height: 1.8;
      font-weight: 500;
      color: #596268;
    }

    .clients-carousel {
      position: relative;
      width: 100%;
      overflow: hidden;
      padding: 16px 0;
      mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    }

    .clients-track {
      display: flex;
      align-items: center;
      gap: 40px;
      width: max-content;
      animation: clientsLoop 44s linear infinite;
    }

    .clients-carousel:hover .clients-track {
      animation-play-state: paused;
    }

    @keyframes clientsLoop {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    .cliente {
      flex: 0 0 170px;
      min-height: 82px;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: .72;
      filter: grayscale(1);
      transition: opacity .2s ease, filter .2s ease, transform .2s ease;
    }

    .cliente img {
      max-height: 120px;
      max-width: 170px;
      object-fit: contain;
    }

    .cliente:hover {
      opacity: 1;
      filter: grayscale(0);
      transform: scale(1.04);
    }

    /* =========================
       BARRA CONTACTO CON IMAGEN
    ========================== */
    .contact-strip {
      position: relative;
      min-height: 430px;
      margin: 80px 0 110px;
      display: flex;
      align-items: center;
      background-image: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)), url('../imagenes/fondo-contacto.jpg');
      background-position: center;
      background-size: cover;
      clip-path: polygon(0 11%, 100% 0, 100% 89%, 0 100%);
      overflow: hidden;
    }

    .contact-strip-inner {
      width: min(var(--ancho), calc(100% - 48px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      align-items: center;
      gap: 42px;
      padding: 92px 0;
    }

    .contact-info-item {
      text-align: center;
      color: #ffffff;
      text-shadow: 0 4px 10px rgba(0, 0, 0, .45);
      font-weight: 900;
    }

    .contact-info-icon {
      display: block;
      font-size: 44px;
      line-height: 1;
      margin-bottom: 24px;
      color: #ffffff;
    }

    .contact-info-item p {
      font-size: clamp(24px, 2.3vw, 34px);
      line-height: 1.08;
      letter-spacing: 2px;
      font-family: 'Days One', Arial, Helvetica, sans-serif;
    }

    .contact-info-item .small-lines {
      font-size: clamp(20px, 2vw, 29px);
      font-family: 'Days One', Arial, Helvetica, sans-serif;
    }

    /* =========================
       CONTACTO / FORMULARIO
    ========================== */
    .contact-section {
      padding: 0 0 150px;
      background: var(--blanco);
    }

    .contact-title {
      font-family: 'Days One', Arial, Helvetica, sans-serif;
      text-align: center;
      font-size: clamp(27px, 2.6vw, 36px);
      line-height: 1;
      font-weight: 400;
      text-transform: uppercase;
      color: var(--gris-texto);
    }

    .blue-line {
      width: 72px;
      height: 3px;
      background: #2ccfe5;
      margin: 32px auto 58px;
    }

    .contact-grid {
      width: min(var(--ancho), calc(100% - 48px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 500px 1fr;
      gap: 32px;
      align-items: start;
    }

    .map-box {
      height: 380px;
      background: #ffffff;
      overflow: hidden;
    }

    .map-box iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }

    .contact-form {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 17px 18px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      width: 100%;
      border: 1px solid #dce6e8;
      background: #ffffff;
      min-height: 46px;
      padding: 0 15px;
      font-family: inherit;
      font-size: 12px;
      font-weight: 500;
      color: #6d777b;
      outline: none;
    }

    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
      border-color: var(--verde);
    }

    .contact-form .full {
      grid-column: 1 / -1;
    }

    .contact-form textarea {
      min-height: 132px;
      resize: vertical;
      padding-top: 14px;
    }

    .contact-form button {
      grid-column: 1 / -1;
      height: 44px;
      border: 0;
      background: var(--verde);
      color: #ffffff;
      font-family: inherit;
      font-size: 12px;
      line-height: 1;
      font-weight: 800;
      text-transform: uppercase;
      cursor: pointer;
      transition: background .2s ease, transform .2s ease;
    }

    .contact-form button:hover {
      background: var(--verde-oscuro);
      transform: translateY(-1px);
    }

    /* =========================
       FOOTER
    ========================== */
    .footer {
      min-height: 225px;
      background: var(--footer);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 48px 20px;
    }

    .footer-logo {
      width: 170px;
      margin: 0 auto 28px;
      opacity: .96;
    }

    .footer p {
      font-size: 12px;
      font-weight: 500;
      color: rgba(255, 255, 255, .9);
    }

    /* =========================
       RESPONSIVE
    ========================== */
    @media (max-width: 1100px) {
      .hero {
        min-height: 780px;
      }

      .hero-logo {
        margin-bottom: 90px;
      }

      .hero-title {
        letter-spacing: 10px;
      }

      .services-grid {
        gap: 36px;
      }

      .contact-grid {
        grid-template-columns: 300px 1fr;
      }
    }

    @media (max-width: 860px) {
      .site-header {
        background: rgba(39, 54, 52, 0.96);
      }

      .nav-wrap {
        justify-content: space-between;
      }

      .mobile-toggle {
        display: block;
      }

      .menu {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        background: rgba(39, 54, 52, .98);
      }

      .menu.is-open {
        display: flex;
      }

      .menu a {
        min-height: 54px;
        padding: 0 24px;
      }

      .hero {
        min-height: 680px;
        height: 92vh;
      }

      .hero-logo {
        width: min(333px, 70vw);
        margin-bottom: 72px;
      }

      .hero-title {
        font-size: clamp(29px, 7.8vw, 54px);
        letter-spacing: 5px;
        margin-left: 6px;
      }

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

      .service-card:nth-child(5) {
        grid-column: auto;
        width: 100%;
      }

      .company-grid {
        grid-template-columns: 1fr;
        gap: 55px;
        text-align: center;
      }

      .company-copy ul {
        display: inline-block;
        text-align: left;
      }

      .contact-strip-inner {
        grid-template-columns: 1fr;
        gap: 54px;
      }

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

      .map-box {
        height: 320px;
      }

      .contact-form {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 520px) {
      .nav-wrap,
      .section-inner,
      .contact-grid,
      .contact-strip-inner {
        width: calc(100% - 28px);
      }

      .hero {
        min-height: 600px;
      }

      .hero::after {
        bottom: -112px;
      }

      .section {
        padding: 82px 0;
      }

      .services-section {
        padding-bottom: 115px;
      }

      .green-line {
        width: 185px;
      }

      .service-card,
      .service-card img {
        min-height: 220px;
      }

      .service-hover {
        padding: 26px;
      }

      .contact-strip {
        min-height: 560px;
        margin: 50px 0 80px;
      }

      .footer-logo {
        width: 140px;
      }
    }

/* Mensajes de estado del formulario de contacto */
.form-status {
  margin: 6px 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status.ok {
  color: #1a7f37;
  font-weight: 600;
}
.form-status.error {
  color: #c0392b;
  font-weight: 600;
}
