:root {
      --navy: #0f2f4a;
      --navy-2: #123b5d;
      --yellow: #f6c21f;
      --orange: #d65a24;
      --cream: #f6f1e8;
      --text: #1c2530;
      --muted: #65707a;
      --white: #ffffff;
      --border: #e5e7eb;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background: #fafafa;
      line-height: 1.55;
    }

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

    .container {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
    }

    .topbar {
      background: var(--navy);
      color: var(--white);
      padding: 12px 0;
      font-size: 14px;
    }

    .topbar .container {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    header {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    nav {
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      font-weight: 800;
      letter-spacing: .02em;
    }

    .brand img {
      width: 58px;
      height: 58px;
      object-fit: contain;
    }

    .brand span {
      font-size: 18px;
      line-height: 1.15;
    }

    .nav-links {
      display: flex;
      gap: 26px;
      font-size: 15px;
      font-weight: 700;
    }

    .nav-links a:hover {
      color: var(--orange);
    }

    .hero {
      /*background:
        linear-gradient(100deg, rgba(15,47,74,.98) 0%, rgba(15,47,74,.95) 56%, rgba(15,47,74,.82) 100%);*/
      background: var(--navy);
      color: var(--white);
      padding: 82px 0 72px;
      overflow: hidden;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 56px;
      align-items: center;
    }

    .eyebrow {
      display: inline-block;
      color: var(--yellow);
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    h1 {
      font-size: clamp(42px, 6vw, 76px);
      line-height: .98;
      margin-bottom: 22px;
      letter-spacing: -.03em;
    }

    h1 span {
      color: var(--yellow);
    }

    .hero p {
      max-width: 720px;
      font-size: 21px;
      color: #e8eef4;
      margin-bottom: 30px;
    }

    .cta-row {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 22px;
      border-radius: 10px;
      font-weight: 800;
      transition: transform .15s ease, opacity .15s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
      opacity: .95;
    }

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

    .btn-secondary {
      border: 2px solid rgba(255,255,255,.6);
      color: var(--white);
    }

    .hero-card {
      background: var(--white);
      color: var(--text);
      border-radius: 24px;
      padding: 30px;
      box-shadow: 0 24px 50px rgba(0,0,0,.22);
      transform: rotate(1.5deg);
    }

    .hero-card img {
      width: 150px;
      display: block;
      margin: 0 auto 18px;
    }

    .hero-card h3 {
      color: var(--navy);
      font-size: 24px;
      text-align: center;
      margin-bottom: 12px;
    }

    .hero-card p {
      color: var(--muted);
      text-align: center;
      font-size: 16px;
      margin-bottom: 0;
    }

    section {
      padding: 72px 0;
    }

    .section-head {
      max-width: 760px;
      margin-bottom: 34px;
    }

    .section-head h2 {
      font-size: 38px;
      color: var(--navy);
      margin-bottom: 10px;
    }

    .section-head p {
      color: var(--muted);
      font-size: 18px;
    }

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

    .service-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .service-card {
      overflow: hidden;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 10px 28px rgba(15, 47, 74, .07);
      transition:
        transform .2s ease,
        box-shadow .2s ease;
    }

    .service-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 36px rgba(15, 47, 74, .12);
    }

    .service-image {
      width: 100%;
      height: 185px;
      overflow: hidden;
      background: var(--cream);
    }

    .service-image img {
      display: block;
      width: 100%;
      height: 100%;
      max-width: none;
      object-fit: cover;
      transition: transform .35s ease;
    }

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

    .service-content {
      padding: 22px 22px 24px;
    }

    .service-content h3 {
      color: var(--navy);
      font-size: 21px;
      line-height: 1.2;
      margin-bottom: 9px;
    }

    .service-content p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.55;
    }

    .why {
      background: var(--cream);
    }

    .why-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 20px;
    }

    .why-item {
      background: var(--white);
      padding: 24px;
      border-radius: 16px;
      border-left: 5px solid var(--yellow);
    }

    .why-item h3 {
      color: var(--navy);
      margin-bottom: 8px;
    }

    .why-item p {
      color: var(--muted);
    }

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

    .process-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 20px;
    }

    .step {
      position: relative;
      padding: 26px;
      border: 1px solid var(--border);
      border-radius: 16px;
    }

    .step-number {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--orange);
      color: var(--white);
      font-weight: 800;
      margin-bottom: 14px;
    }

    .cta {
      background: var(--navy);
      color: var(--white);
      padding: 64px 0;
    }

    .cta-box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 28px;
      flex-wrap: wrap;
    }

    .cta h2 {
      font-size: 38px;
      margin-bottom: 8px;
    }

    .cta p {
      color: #d9e3eb;
      max-width: 680px;
    }

    .contact-card {
      min-width: 290px;
      background: var(--white);
      color: var(--text);
      border-radius: 16px;
      padding: 22px;
    }

    .contact-card strong {
      display: block;
      color: var(--navy);
      font-size: 24px;
      margin-bottom: 4px;
    }

    .contact-card span {
      color: var(--muted);
      font-size: 14px;
    }

    .site-footer {
      background: #0b263a;
      color: rgba(255, 255, 255, 0.65);
      padding: 22px 20px;
    }

    .site-footer .footer-content {
      display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 2px;
        text-align: center;
        font-size: 14px;
        line-height: 1.45;
    }

    .site-footer .footer-content p {
      margin: 0;
    }

    /* Ubicación */
    .footer-location {
      color: rgba(255, 255, 255, 0.82);
      font-size: 14px;
    }

    /* Servicios */
    .footer-services {
      color: rgba(255, 255, 255, 0.58);
    }

    /* Redes */
    .footer-socials {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 5px 0 0;
    }

    .footer-socials a {
      color: rgba(255, 255, 255, 0.72);
      font-size: 14px;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .footer-socials a:hover {
      color: var(--yellow);
    }

    .footer-socials span {
      color: rgba(255, 255, 255, 0.3);
    }

    /* Copyright */
    .footer-copy {
      margin-top: 3px !important;
      color: rgba(255, 255, 255, 0.42);
      font-size: 13px;
    }

@media (max-width: 900px) {
      .hero-grid,
      .service-grid,
      .why-grid,
      .process-grid {
        grid-template-columns: 1fr 1fr;
      }

      .service-grid {
        gap: 20px;
      }

      .service-image {
        height: 190px;
      }

      .hero-card {
        transform: none;
      }
    }

    @media (max-width: 700px) {
      .nav-links {
        display: none;
      }

      .hero {
        padding: 58px 0;
      }

      .hero-grid,
      .service-grid,
      .why-grid,
      .process-grid {
        grid-template-columns: 1fr;
      }

      .service-grid {
        gap: 18px;
      }

      .service-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
      }

      .service-image {
        height: 210px;
      }

      .hero-card {
        max-width: 420px;
      }

      .section-head h2,
      .cta h2 {
        font-size: 31px;
      }
    }
  
    /* ===== Responsive navigation ===== */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--white);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
    }

    .menu-toggle span {
      width: 22px;
      height: 2px;
      background: var(--navy);
      border-radius: 2px;
      transition: .2s ease;
    }

    .mobile-menu {
      display: none;
      border-top: 1px solid var(--border);
      background: var(--white);
    }

    .mobile-menu.open {
      display: block;
    }

    .mobile-menu .container {
      display: grid;
      padding-top: 10px;
      padding-bottom: 14px;
    }

    .mobile-menu a {
      padding: 12px 4px;
      font-weight: 700;
      border-bottom: 1px solid #f0f2f4;
    }

    .mobile-menu a:last-child {
      border-bottom: 0;
    }

    /* ===== Social networks ===== */
    .socials {
      background: var(--cream);
      padding: 52px 0;
    }

    .social-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      padding: 30px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 8px 24px rgba(15,47,74,.05);
    }

    .social-copy h2 {
      color: var(--navy);
      font-size: 30px;
      margin-bottom: 7px;
    }

    .social-copy p {
      color: var(--muted);
      max-width: 600px;
    }

    .social-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
    }

    .social-link {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 44px;
      padding: 11px 15px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      color: var(--navy);
      font-weight: 800;
      transition: transform .15s ease, border-color .15s ease, color .15s ease;
    }

    .social-link:hover {
      transform: translateY(-1px);
      border-color: var(--orange);
      color: var(--orange);
    }

    .social-icon {
      width: 24px;
      height: 24px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      background: var(--navy);
      color: var(--white);
      font-size: 12px;
      font-weight: 900;
    }

    /* ===== Better small-screen behavior ===== */
    img {
      max-width: 100%;
    }

    @media (max-width: 900px) {
      .nav-links {
        gap: 16px;
      }

      .hero-grid {
        gap: 34px;
      }

      .social-box {
        align-items: flex-start;
        flex-direction: column;
      }

      .social-links {
        justify-content: flex-start;
      }
    }

    @media (max-width: 700px) {
      .container {
        width: min(100% - 24px, 1120px);
      }

      .topbar {
        padding: 8px 0;
      }

      .topbar .container {
        justify-content: center;
        text-align: center;
        gap: 4px;
      }

      nav {
        min-height: 66px;
      }

      .brand {
        gap: 9px;
      }

      .brand img {
        width: 46px;
        height: 46px;
      }

      .brand span {
        font-size: 14px;
      }

      .nav-links {
        display: none;
      }

      .menu-toggle {
        display: inline-flex;
      }

      .hero {
        padding: 50px 0 44px;
      }

      .hero-grid {
        gap: 30px;
      }

      h1 {
        font-size: clamp(38px, 12vw, 58px);
      }

      .hero p {
        font-size: 18px;
      }

      .cta-row {
        display: grid;
        grid-template-columns: 1fr;
      }

      .btn {
        width: 100%;
      }

      .hero-card {
        width: 100%;
        padding: 24px 20px;
      }

      section {
        padding: 52px 0;
      }

      .section-head {
        margin-bottom: 25px;
      }

      .section-head h2,
      .cta h2 {
        font-size: 30px;
        line-height: 1.1;
      }

      .section-head p {
        font-size: 16px;
      }

      .cta {
        padding: 52px 0;
      }

      .cta-box {
        display: grid;
        grid-template-columns: 1fr;
      }

      .contact-card {
        min-width: 0;
        width: 100%;
      }

      .contact-card strong {
        font-size: 20px;
        overflow-wrap: anywhere;
      }

      .socials {
        padding: 42px 0;
      }

      .social-box {
        padding: 22px;
      }

      .social-copy h2 {
        font-size: 27px;
      }

      .social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
      }

      .social-link {
        justify-content: center;
      }
}

    @media (max-width: 420px) {
      .social-links {
        grid-template-columns: 1fr;
      }

      .brand span {
        max-width: 150px;
      }
    }


    /* ===== Hero carousel ===== */

.hero-carousel-card {
  position: relative;

  width: 100%;
  max-width: 460px;
  height: 390px;

  margin-left: auto;

  padding: 0;

  overflow: hidden;

  border-radius: 24px;

  transform: rotate(1.5deg);

  background: rgba(255,255,255,.08);

  box-shadow: 0 24px 50px rgba(0,0,0,.22);
}

.hero-carousel-card img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: none;

  margin: 0;

  object-fit: cover;

  opacity: 1;

  transition:
    opacity .55s ease,
    transform .8s ease;
}

.hero-carousel-card img.fade-out {
  opacity: 0;
  transform: scale(1.03);
}

/* ===== Footer responsive ===== */
@media (max-width: 600px) {

    .site-footer {
        padding: 20px 16px;
    }

    .site-footer .footer-content {
        gap: 3px;

        font-size: 13px;
    }

    .footer-location,
    .footer-services,
    .footer-socials a {
        font-size: 13px;
    }

    .footer-services {
        max-width: 380px;
    }

    .footer-socials {
        flex-wrap: wrap;
    }

    .footer-copy {
        font-size: 12px;
    }
}

