 /* =====================================================
       RESET GENERAL
    ===================================================== */
    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --color-bg: rgb(244, 241, 237);
      --color-dark: #111111;
      --color-light: #ffffff;
      --color-muted: #666666;
      --color-border: rgba(0, 0, 0, 0.10);
      --color-overlay: rgba(0, 0, 0, 0.45);
      --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
      --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.16);
      --radius-xl: 28px;
      --radius-md: 16px;
      --max-width: 1200px;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      color: var(--color-dark);
      background: var(--color-bg);
      overflow-x: hidden;
      line-height: 1.6;
      
    }

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

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

    button,
    input,
    textarea {
      font: inherit;
    }

    /* =====================================================
       COMPONENTES BASE
    ===================================================== */
    .container {
      width: min(100% - 32px, var(--max-width));
      margin-inline: auto;
    }

    .section {
      padding: clamp(64px, 9vw, 110px) 0;
    }

    .section-header {
      max-width: 760px;
      margin: 0 auto 42px;
      text-align: center;
    }

    .section-kicker {
      display: inline-block;
      margin-bottom: 10px;
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--color-muted);
      border: 5px rgb(231, 231, 224) solid;
      border-radius: 30px;
      padding: 1rem;
      
      transition: 0.4s;
      
    }
    .section-kicker:hover{
      transform: translateY(-7px);
      transition: 0.4s;
      color: white;
      background: #050505;
    }

    .section-title {
      font-family: "Ms Madi", cursive;
      font-weight: 400;
      font-size: clamp(6rem, 5vw, 4rem);
      line-height: 1.01;
      letter-spacing: 0.050rem;
      margin-bottom: 16px;
    }

    .section-text {
      color: var(--color-muted);
      font-size: clamp(1rem, 2vw, 1.15rem);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 12px 22px;
      border-radius: 999px;
      border: 1px solid transparent;
      cursor: pointer;
      transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

    .btn-primary {
      color: var(--color-light);
      background: var(--color-dark);
    }

    .btn-primary:hover {
      transform: translateY(-7px);
      background: #2a2a2a;
    }

    /* =====================================================
       HEADER / NAVBAR
    ===================================================== */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.86);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--color-border);
    }

    .navbar {
  width: min(100% - 32px, var(--max-width));
  min-height: 76px;
  margin-inline:  auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

    .brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-dark);
  position: relative;
  z-index: 2;
}

.brand {
  font-size: clamp(1.5rem, 6vw, 2rem);
  letter-spacing: 0.1em;
  font-family: "Ms Madi", cursive;
  font-weight: 400;
  font-style: normal;
}

.foto {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  display: block;
}

    .nav-toggle {
      display: none;
    }

    .nav-icon {
      display: none;
      position: relative;
      z-index: 2;
      width: 42px;
      height: 42px;
      border: 1px solid var(--color-border);
      border-radius: 12px;
      cursor: pointer;
      place-items: center;
      background: var(--color-light);
    }

    .nav-icon span {
      display: block;
      width: 22px;
      height: 2px;
      margin: 4px 0;
      background: var(--color-dark);
      border-radius: 99px;
      transition: 0.3s ease;
    }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      list-style: none;  
    }

    .nav-links a {
      display: inline-flex;
      padding: 10px 14px;
      border-radius: 999px;
      color: #333333;
      font-family: "Ms Madi", cursive;
      font-weight: 600;
      font-style: normal;
      letter-spacing: 0.1em;
      font-size:clamp(1.7rem, 4vw, 1.2rem) ;
      transition: background 0.25s ease, color 0.25s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
      color: var(--color-dark);
      background: rgba(0, 0, 0, 0.3);
      outline: none;
    }

    /* =====================================================
       HERO / CARRUSEL
    ===================================================== */
    .hero {
      min-height: calc(100vh - 76px);
      display: grid;
      align-items: center;
      padding: 42px 0 72px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 0.85fr 1.15fr;
      gap: clamp(28px, 5vw, 70px);
      align-items: center;
    }

    .hero-content {
      max-width: 560px;
    }

    .hero-title {
      font-family: "Ms Madi", cursive;
       font-weight: 600;
      font-style: normal;
      font-size: clamp(2.8rem, 7vw, 6rem);
      line-height: 0.78;
      letter-spacing:  0.6rem;
      margin-bottom: 22px;
    }

    .hero-text {
      color: var(--color-muted);
      font-size: clamp(1rem, 2vw, 1.22rem);
      margin-bottom: 28px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .hero-note {
      display: inline-flex;
      align-items: center;
      min-height: 46px;
      color: var(--color-muted);
      font-size: 0.95rem;
      border-radius: 20px;
      padding: 1rem;
      transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
      border-radius: 50px;
      border: 5px solid white;
    }
    .hero-note:hover{
      border: 5px solid white;
      transform: translateY(-7px);
    }

    .carousel {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .carousel-column {
      position: relative;
      height: min(62vh, 560px);
      min-height: 410px;
      overflow: hidden;
      border-radius: var(--radius-xl);
      background: #dddddd;
      box-shadow: var(--shadow-soft);
    }

    .carousel-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      animation: fadeSlide 12s infinite;
    }

    .carousel-column:nth-child(1) .carousel-slide:nth-child(1) { animation-delay: 0s; }
    .carousel-column:nth-child(1) .carousel-slide:nth-child(2) { animation-delay: 4s; }
    .carousel-column:nth-child(1) .carousel-slide:nth-child(3) { animation-delay: 8s; }

    .carousel-column:nth-child(2) .carousel-slide:nth-child(1) { animation-delay: 1s; }
    .carousel-column:nth-child(2) .carousel-slide:nth-child(2) { animation-delay: 5s; }
    .carousel-column:nth-child(2) .carousel-slide:nth-child(3) { animation-delay: 9s; }

    .carousel-column:nth-child(3) .carousel-slide:nth-child(1) { animation-delay: 2s; }
    .carousel-column:nth-child(3) .carousel-slide:nth-child(2) { animation-delay: 6s; }
    .carousel-column:nth-child(3) .carousel-slide:nth-child(3) { animation-delay: 10s; }

    .carousel-slide::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.08));
    }

    .carousel-caption {
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 18px;
      z-index: 1;
      color: var(--color-light);
    }

    .carousel-caption h3 {
      font-size: clamp(1.15rem, 2vw, 1.75rem);
      line-height: 1.05;
      margin-bottom: 6px;
    }

    .carousel-caption p {
      color: rgba(255, 255, 255, 0.84);
      font-size: 0.95rem;
    }

    @keyframes fadeSlide {
      0% { opacity: 0; transform: scale(1); }
      8% { opacity: 1; }
      30% { opacity: 1; }
      38% { opacity: 0; transform: scale(1.05); }
      100% { opacity: 0; transform: scale(1.05); }
    }

    /* =====================================================
       NOSOTROS
    ===================================================== */
    .about {
      position: relative;
      color: var(--color-light);
      background: linear-gradient(var(--color-overlay), var(--color-overlay)), url("../images/bodas/b3.jpg") center/cover fixed;
    }

    .about .section-text,
    .about .section-kicker {
      color: rgba(255, 255, 255, 0.78);
      
    }

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

    .feature-card {
      min-height: 230px;
      padding: 28px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.88);
      color: var(--color-dark);
      box-shadow: var(--shadow-card);
      transition: transform 0.25s ease, background 0.25s ease;
    }

    .feature-card:hover {
      transform: translateY(-6px);
      background: var(--color-light);
    }
    

    .feature-icon {
      display: grid;
      place-items: center;
      width: 54px;
      height: 54px;
      margin-bottom: 18px;
      border-radius: 16px;
      background: var(--color-dark);
      color: var(--color-light);
      font-size: 1.45rem;
    }

    .feature-card h3 {
      font-family: "Ms Madi", cursive;
      font-weight: 400px;
       font-size: clamp(1rem, 5vw, 2rem);
      line-height: 1.01;
      letter-spacing: 0.145rem;
      margin-bottom: 10px;
    }

    .feature-card p {
      color: var(--color-muted);
    }

    /* =====================================================
       GALERÍA
    ===================================================== */
    .gallery-block {
      padding: 70px 0;
    }

    .gallery-block.dark {
      color: var(--color-light);
      background: var(--color-dark);
    }

    .gallery-block.dark .section-text,
    .gallery-block.dark .gallery-subtitle {
      color: rgba(255, 255, 255, 0.72);
    }

    .gallery-title {
      font-family: "Ms Madi", cursive;
      margin-bottom: 10px;
      text-align: center;
      font-size: clamp(1.9rem, 5vw, 3.4rem);
      line-height: 1;
      letter-spacing: 0.500rem;
      text-transform: uppercase;
    }

    .gallery-subtitle {
      max-width: 720px;
      margin: 0 auto 34px;
      text-align: center;
      color: var(--color-muted);
    }

    .gallery-grid {
        display: flex;
        gap: 25px;
        animation: animate 10s linear infinite;
        
    }
    @keyframes animate{
    to{
        transform: translateX(calc(-5 * (12rem + 2rem)));
    }
}
    .gallery-item {
      position: relative;
      min-width: 300px;
      min-height: 320px;
      overflow: hidden;
      border-radius: 22px;
      background: #dddddd;
      box-shadow: var(--shadow-card);
      isolation: isolate;
    }

    .gallery-item.square {
      min-height: 280px;
    }

    .gallery-item img {
      transition: transform 0.45s ease, filter 0.45s ease;
      
    }

    .gallery-item::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 55%);
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 1;
    }

    .gallery-item:hover img {
      transform: scale(1.08);
      filter: contrast(1.05);
    }

    .gallery-item:hover::after {
      opacity: 1;
    }

    /* =====================================================
       TESTIMONIOS
    ===================================================== */
    .testimonials {
      background: #ffffff;
    }

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

    .testimonial-card {
      padding: 28px;
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      background: #fafafa;
    }

    .testimonial-card p {
      color: #444444;
      margin-bottom: 18px;
    }

    .testimonial-card strong {
      display: block;
    }

    .testimonial-card span {
      color: var(--color-muted);
      font-size: 0.9rem;
    }

    /* =====================================================
       CONTACTO / UBICACIÓN
    ===================================================== */
    .contact {
      background: var(--color-bg);
    }

    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      overflow: hidden;
      border-radius: var(--radius-xl);
      background: var(--color-light);
      box-shadow: var(--shadow-soft);
    }

    .contact-form {
      padding: clamp(28px, 5vw, 48px);
    }

    .contact-form h3 {
      font-family: "Ms Madi", cursive;
      font-size: clamp(1.6rem, 3vw, 2.35rem);
      line-height: 1.08;
      margin-bottom: 22px;
      letter-spacing: 0.090em;
    }

    .form-group {
      display: grid;
      gap: 8px;
      margin-bottom: 18px;
    }

    .form-group label {
      font-size: 0.9rem;
      font-weight: 700;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      border: 1px solid var(--color-border);
      border-radius: 14px;
      padding: 14px 16px;
      background: #f8f8f8;
      outline: none;
      transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    }

    .form-group textarea {
      min-height: 140px;
      resize: vertical;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      border-color: #111111;
      background: #ffffff;
      box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
    }

    .contact-visual {
      min-height: 560px;
      background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.12)), url("../images/bodas/b3.jpg") center/cover;
      display: flex;
      align-items: flex-end;
      padding: 36px;
      color: var(--color-light);
    }

    .contact-visual h3 {
      max-width: 380px;
      font-size: clamp(1.7rem, 3vw, 2.6rem);
      line-height: 1.05;
      letter-spacing: -0.05em;
    }

    .location-card {
      margin-top: 26px;
      padding: 24px;
      border-radius: var(--radius-md);
      background: var(--color-dark);
      color: var(--color-light);
      text-align: center;
    }

    .location-card p {
      color: rgba(255, 255, 255, 0.72);
    }

    /* =====================================================
       FOOTER
===================================================== */
.site-footer {
  background: linear-gradient(135deg, #050505, #111111);
  color: #ffffff;
  padding: 70px 20px 25px;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.footer-info {
  text-align: left;
}

.footer-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5c15c;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
}

.footer-text {
  max-width: 560px;
  margin-bottom: 26px;
  color: #d6d6d6;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-address {
  margin-bottom: 28px;
  padding: 20px;
  border-left: 4px solid white;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.footer-address strong,
.footer-address span,
.footer-address a {
  display: block;
}

.footer-address strong {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-address span {
  margin-bottom: 10px;
  color: #cfcfcf;
}

.footer-address a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.footer-address a:hover {
  text-decoration: underline;
}

.footer-schedule {
  margin-bottom: 28px;
  box-shadow: 5px 5px 20px white;
  border-radius: 20px;
  padding: 1rem;
}

.footer-schedule h3,
.footer-social h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 1.25rem;
}

.footer-schedule ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #dcdcdc;
}

.footer-schedule li span {
  color: #ffffff;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 1.3rem;
  transition: 0.25s ease;
}

.social-links a:hover {
  background: white;
  color: #111111;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(245, 193, 92, 0.25);
}

.footer-map {
  width: 100%;
}

.maps {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.footer-bottom {
  max-width: 1200px;
  margin: 45px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #a9a9a9;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-info {
    text-align: center;
  }

  .footer-text {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-address {
    text-align: center;
    border-left: none;
    border-top: 4px solid #f5c15c;
  }

  .footer-schedule li {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

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

  .maps {
    height: 330px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 50px 15px 20px;
  }

  .social-links a {
    width: 100%;
  }

  .maps {
    height: 280px;
    border-radius: 18px;
  }
}

    /* =====================================================
       RESPONSIVE
    ===================================================== */
    @media (max-width: 1024px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }

      .hero-content {
        max-width: 760px;
        text-align: center;
        margin-inline: auto;
      }

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

      .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 860px) {
      .nav-icon {
        display: grid;
      }

      .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        display: grid;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0 24px;
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 20px 30px rgba(0,0,0,0.08);
        transition: max-height 0.35s ease, padding 0.35s ease;
      }

      .nav-links a {
        justify-content: center;
        width: 100%;
        padding: 16px;
        border-radius: 14px;
      }

      .nav-toggle:checked ~ .nav-links {
        max-height: 520px;
        padding: 18px 24px 24px;
      }

      .nav-toggle:checked + .nav-icon span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
      }

      .nav-toggle:checked + .nav-icon span:nth-child(2) {
        opacity: 0;
      }

      .nav-toggle:checked + .nav-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
      }

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

      .carousel-column {
        height: 420px;
        min-height: 360px;
      }

      .features-grid,
      .testimonial-grid,
      .contact-layout {
        grid-template-columns: 1fr;
      }

      .contact-visual {
        min-height: 360px;
      }
    }

    @media (max-width: 640px) {
      .navbar {
        min-height: 68px;
      }

      .nav-links {
        top: 68px;
      }

      .hero {
        min-height: auto;
        padding: 34px 0 56px;
      }

      .carousel-column {
        height: 330px;
        min-height: 330px;
        border-radius: 20px;
      }

      .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }

      .gallery-item,
      .gallery-item.square {
        min-height: 230px;
        border-radius: 16px;
      }

      .contact-form {
        padding: 26px 20px;
      }
    }

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

      .gallery-item,
      .gallery-item.square {
        min-height: 300px;
      }

      .hero-actions {
        align-items: stretch;
        flex-direction: column;
      }

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

/* =====================================================
   AJUSTES CORREGIDOS - RESPONSIVE Y ESCALA
   Pega este bloque al final si no quieres reemplazar todo el CSS.
===================================================== */

.navbar {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.brand {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.nav-links {
  flex-wrap: nowrap;
  gap: clamp(4px, 0.7vw, 10px);
}

.nav-links a {
  padding: 8px 10px;
  font-size: clamp(1.2rem, 1.55vw, 1.65rem);
  line-height: 1.05;
}

.section-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.hero {
  min-height: auto;
  padding: clamp(56px, 8vw, 95px) 0 clamp(60px, 8vw, 100px);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.hero-title {
  font-size: clamp(3.6rem, 6vw, 6rem);
  line-height: 0.85;
  letter-spacing: clamp(0.08rem, 0.45vw, 0.35rem);
}

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

.carousel-column {
  height: clamp(390px, 47vw, 520px);
  min-height: 390px;
}

.gallery-block {
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  animation: none;
}

.gallery-item,
.gallery-item.square {
  min-width: 0;
  height: 320px;
  min-height: 0;
}

@media (max-width: 1100px) {
  .navbar {
    width: min(100% - 24px, var(--max-width));
    gap: 12px;
  }

  .nav-links a {
    font-size: 1.25rem;
    padding: 8px 7px;
    letter-spacing: 0.06em;
  }

  .brand {
    font-size: 1.9rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 760px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-text {
    margin-inline: auto;
  }

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

  .carousel {
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .navbar {
    min-height: 68px;
  }

  .foto {
    width: 3.4rem;
    height: 3.4rem;
  }

  .brand {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .nav-links {
    top: 68px;
  }

  .nav-links a {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }

  .hero-title {
    font-size: clamp(3.3rem, 16vw, 5.4rem);
    letter-spacing: 0.08rem;
  }

  .section-title {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

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

  .carousel-column {
    height: 360px;
    min-height: 320px;
  }

  .features-grid,
  .testimonial-grid,
  .contact-layout,
  .footer-container {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    padding: 42px 0 56px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-note,
  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .gallery-item,
  .gallery-item.square {
    height: 300px;
  }

  .contact-form {
    padding: 26px 20px;
  }
}
