/* ==========================================================================
   BEMIT Architecture Base - Stop Hurricane
   ========================================================================== */

/* --- 1. SETTINGS --- */
:root {
  /* Brand Colors */
  --c-primary: #414042;
  --c-secondary: #CE181E;

  /* Derived Colors */
  --c-primary-light: #5a595c;
  --c-primary-dark: #2a292a;

  --c-secondary-light: #e6282e;
  --c-secondary-dark: #a11116;

  /* Neutral & Text Colors */
  --c-white: #ffffff;
  --c-light-gray: #f4f4f4;
  --c-border: #e0e0e0;
  --c-text-main: #333333;
  --c-text-muted: #666666;

  /* Typography */
  --f-heading: 'Outfit', sans-serif;
  --f-body: 'DM Sans', sans-serif;

  /* Transitions */
  --t-base: 0.3s ease-in-out;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* --- 2. TOOLS --- */
/* (Vanilla CSS - variables y funciones custom aquí) */

/* --- 3. GENERIC --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  color: var(--c-text-main);
  background-color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--t-base);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* --- 4. ELEMENTS --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-heading);
  color: var(--c-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* --- 5. OBJECTS --- */
.o-container {
  width: 85%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- 6. COMPONENTS --- */

/* Header */
.c-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--c-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.c-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-header__logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.c-header__phone {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-primary);
}

.c-header__phone-icon {
  margin-right: 0.5rem;
  color: var(--c-secondary);
}

/* Button */
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--t-base), transform var(--t-base);
}

.c-button:active {
  transform: scale(0.98);
}

.c-button--primary {
  background-color: var(--c-secondary);
  color: var(--c-white);
  box-shadow: var(--shadow-md);
}

.c-button--primary:hover {
  background-color: var(--c-secondary-dark);
}

.c-button__icon {
  margin-right: 0.5rem;
}

.c-button--large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero */
.c-hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--c-light-gray);
  background-image: repeating-linear-gradient(0deg,
      transparent,
      transparent 39px,
      rgba(65, 64, 66, 0.04) 39px,
      rgba(65, 64, 66, 0.04) 40px);
  overflow: hidden;
}

.c-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.c-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.c-hero__content {
  max-width: 600px;
}

.c-hero__title {
  font-size: 3rem;
  color: var(--c-primary);
  margin-bottom: 2rem;
  line-height: 1.15;
}

.c-hero__title .u-text-secondary {
  color: var(--c-secondary);
}

.c-hero__subhead {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-white);
  background-color: var(--c-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.c-hero__subhead svg {
  margin-right: 0.5rem;
}

.c-hero__list {
  margin-bottom: 2.5rem;
}

.c-hero__list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--c-text-main);
  font-family: var(--f-body);
}

.c-hero__list li strong {
  font-weight: 700;
  color: var(--c-primary);
}

.c-hero__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--c-primary);
  color: var(--c-white);
  margin-right: 1rem;
  margin-top: 0.125rem;
}

.c-hero__icon {
  width: 16px;
  height: 16px;
}

.c-hero__actions .c-button {
  width: 100%;
}

.c-hero__image-wrapper {
  position: relative;
  z-index: 1;
}

.c-hero__image-decoration {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 100%;
  height: 100%;
  border: 3px solid var(--c-secondary);
  border-radius: var(--radius-lg);
  z-index: -1;
  border-top-right-radius: 80px;
  border-bottom-left-radius: 80px;
}

.c-hero__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top-right-radius: 80px;
  border-bottom-left-radius: 80px;
}

@media (max-width: 991px) {
  .c-hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .c-hero__title {
    font-size: 2.25rem;
  }

  .c-hero__image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .c-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .c-hero__title {
    font-size: 1.875rem;
  }

  .c-hero__subhead {
    font-size: 0.75rem;
  }

  .c-hero__image-decoration {
    top: -1rem;
    right: -1rem;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 40px;
  }

  .c-hero__image {
    border-top-right-radius: 40px;
    border-bottom-left-radius: 40px;
  }
}

/* Clients */
.c-clients {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.c-clients__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.c-clients__title {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 1.25rem;
}

.c-clients__title .u-text-secondary {
  color: var(--c-secondary);
}

.c-clients__desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.c-clients__carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft gradient fade on the edges for a polished look */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.c-clients__carousel {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.c-clients__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.c-clients__set {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  /* maintains uniform gap between sets */
  flex-shrink: 0;
}

.c-clients__logo {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform var(--t-base);
  flex-shrink: 0;
}

.c-clients__logo:hover {
  transform: scale(1.08);
}



@media (max-width: 767px) {
  .c-clients {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .c-clients__title {
    font-size: 2rem;
  }

  .c-clients__desc {
    font-size: 1rem;
  }

  .c-clients__logo {
    height: 130px;
  }

  .c-clients__set {
    gap: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Products */
.c-products {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--c-light-gray);
}

.c-products__header {
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.c-products__title {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 1.25rem;
}

.c-products__desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.c-products__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .c-products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.c-product-card {
  background-color: var(--c-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}

.c-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.c-product-card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.c-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.c-product-card:hover .c-product-card__img {
  transform: scale(1.05);
}

.c-product-card__content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.c-product-card__title {
  font-size: 1.5rem;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}

.c-product-card__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-secondary);
  margin-bottom: 1rem;
}

.c-product-card__desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.c-product-card__list {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.c-product-card__list li {
  display: flex;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--c-text-main);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.c-product-card__list li strong {
  font-weight: 700;
  color: var(--c-primary);
}

.c-product-card__icon {
  color: var(--c-secondary);
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-top: 0.125rem;
}

.c-product-card .c-button {
  align-self: flex-start;
  width: 100%;
  text-align: center;
}

@media (max-width: 767px) {
  .c-products {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .c-products__title {
    font-size: 2rem;
  }

  .c-product-card__content {
    padding: 2rem 1.5rem;
  }
}

/* Benefits / Diferenciadores */
.c-benefits {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--c-primary);
}

.c-benefits__header {
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.c-benefits__title {
  font-size: 2.5rem;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}

.c-benefits__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.c-benefits__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .c-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .c-benefits__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.c-benefit-card {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--t-base), background-color var(--t-base), border-color var(--t-base);
  height: 100%;
}

.c-benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(206, 24, 30, 0.5);
}

.c-benefit-card__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: rgba(206, 24, 30, 0.15);
  color: var(--c-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color var(--t-base), color var(--t-base);
}

.c-benefit-card:hover .c-benefit-card__icon-wrap {
  background-color: var(--c-secondary);
  color: var(--c-white);
}

.c-benefit-card__icon {
  width: 32px;
  height: 32px;
}

.c-benefit-card__title {
  font-size: 1.25rem;
  color: var(--c-white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.c-benefit-card__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.c-benefit-card__desc strong {
  color: var(--c-white);
  font-weight: 700;
}

@media (max-width: 767px) {
  .c-benefits {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .c-benefits__title {
    font-size: 2rem;
  }

  .c-benefit-card {
    padding: 2rem 1.5rem;
  }
}

/* Portfolio / Galería */
.c-portfolio {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--c-light-gray);
}

.c-portfolio__header {
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.c-portfolio__title {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 1.25rem;
}

.c-portfolio__desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.c-portfolio__grid {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.c-portfolio__grid::-webkit-scrollbar {
  display: none;
}

@media (min-width: 600px) {
  .c-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    padding-bottom: 0;
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  .c-portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.c-portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background-color: var(--c-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex: 0 0 85%;
  scroll-snap-align: center;
}

@media (min-width: 600px) {
  .c-portfolio__item {
    flex: auto;
    scroll-snap-align: none;
  }
}

.c-portfolio__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: brightness(0.85);
}

.c-portfolio__item:hover .c-portfolio__img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

@media (max-width: 767px) {
  .c-portfolio {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .c-portfolio__title {
    font-size: 2rem;
  }
}

/* FAQ / Preguntas Frecuentes */
.c-faq {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--c-white);
}

.c-faq__header {
  margin-bottom: 4rem;
}

.c-faq__title {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.c-faq__desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
}

.c-faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-base);
  background-color: var(--c-white);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.c-faq__item.is-active {
  border-color: var(--c-secondary);
  box-shadow: 0 8px 20px rgba(206, 24, 30, 0.08);
}

.c-faq__question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-primary);
  cursor: pointer;
  transition: color var(--t-base);
}

.c-faq__question:hover {
  color: var(--c-secondary);
}

.c-faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  color: var(--c-secondary);
}

.c-faq__item.is-active .c-faq__icon {
  transform: rotate(180deg);
}

.c-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.c-faq__answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.c-faq__answer-inner strong {
  color: var(--c-primary);
}

@media (max-width: 767px) {
  .c-faq {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .c-faq__title {
    font-size: 2rem;
  }

  .c-faq__question {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .c-faq__answer-inner {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
}

/* Contacto / Formulario */
.c-contact {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--c-light-gray);
}

.c-contact__title {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 3.5rem;
}

.c-contact__title strong {
  color: var(--c-primary);
  font-weight: 800;
}

.c-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .c-contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

/* Lado Izquierdo - Agente */
.c-contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.c-contact__agent {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: -40px;
  /* Superpone la caja oscura */
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-base);
}

.c-contact__agent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--c-white);
}

.c-contact__box {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding: 3.5rem 2rem 2rem 2rem;
  text-align: center;
  border-radius: var(--radius-base);
  width: 100%;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
}

.c-contact__phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color var(--t-base);
}

.c-contact__phone:hover {
  color: var(--c-secondary);
}

.c-contact__phone svg {
  width: 28px;
  height: 28px;
  color: #0b5c9c;
  /* Tono azul para dar confianza */
}

/* Botón Whatsapp */
.c-button--whatsapp {
  background-color: #25D366;
  color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.c-button--whatsapp:hover {
  background-color: #24bf5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.c-button--whatsapp svg {
  width: 20px;
  height: 20px;
}

/* Lado Derecho - Formulario */
.c-contact__form-title {
  font-size: 1.5rem;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}

.c-contact__form-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.c-form__label {
  font-size: 0.875rem;
  color: var(--c-text-main);
  font-weight: 600;
}

.c-form__input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background-color: var(--c-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-text-main);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.c-form__input:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(206, 24, 30, 0.1);
}

.c-form__input::placeholder {
  color: #a0aec0;
}

.c-form__input--textarea {
  min-height: 80px;
  resize: vertical;
}

.c-form__select-wrap {
  position: relative;
}

.c-form__select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  /* Espacio para flecha */
}

.c-form__select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--c-text-muted);
  pointer-events: none;
}

.c-button--full {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .c-contact {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .c-contact__title {
    font-size: 2rem;
  }

  .c-contact__grid {
    gap: 3rem;
  }
}

/* --- 7. UTILITIES --- */
.u-text-center {
  text-align: center;
}

.u-text-primary {
  color: var(--c-primary);
}

.u-text-secondary {
  color: var(--c-secondary);
}

.u-margin-bottom-sm {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .u-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .u-hide-desktop {
    display: none !important;
  }
}

.u-margin-bottom-md {
  margin-bottom: 2rem;
}

/* --- 8. FOOTER --- */
.c-footer {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding: 4rem 0 2rem 0;
  text-align: center;
}

.c-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.c-footer__logo {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.c-footer__links {
  margin: 0.5rem 0;
}

.c-footer__link {
  color: var(--c-white);
  text-decoration: underline;
  font-size: 0.875rem;
  transition: color var(--t-base);
}

.c-footer__link:hover {
  color: var(--c-secondary);
}

.c-footer__copy {
  width: 100%;
  font-size: 0.875rem;
  color: #a0aec0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.c-footer__dev {
  font-size: 0.7rem;
}

@media (min-width: 500px) {
  .c-footer__copy {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

/* --- 9. PÁGINA DE GRACIAS --- */
.c-thanks {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  background-color: var(--c-light-gray);
}

.c-thanks__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.c-thanks__title {
  font-size: 2rem;
  color: var(--c-text-main);
  font-weight: 400;
  margin-bottom: 4rem;
  line-height: 1.3;
}

.c-thanks__title strong {
  font-size: 2.5rem;
  color: var(--c-primary);
  font-weight: 800;
  display: block;
}

.c-thanks__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.c-thanks__agent {
  width: 180px;
  height: 180px;
  margin-bottom: -50px;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.c-thanks__box {
  padding: 4rem 2rem 3rem 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .c-thanks__title {
    font-size: 1.5rem;
  }

  .c-thanks__title strong {
    font-size: 2rem;
  }

  .c-thanks__agent {
    width: 140px;
    height: 140px;
    margin-bottom: -40px;
  }
}

/* --- 10. PÁGINAS LEGALES (PRIVACIDAD) --- */
.c-header-simple {
  padding: 2rem 0;
  background-color: var(--c-light-gray);
  border-bottom: 1px solid var(--c-border);
}

.c-header-simple__logo {
  height: 50px;
  width: auto;
}

.c-legal {
  padding: 5rem 0;
  background-color: var(--c-white);
}

.c-legal__title {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 2.5rem;
  text-align: center;
}

.c-legal__content {
  color: var(--c-text-muted);
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
  max-width: 800px;
  margin: 0 auto;
}

.c-legal__content p {
  margin-bottom: 1.5rem;
}

.c-legal__content h2 {
  font-size: 1.5rem;
  color: var(--c-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.u-margin-top-md {
  margin-top: 2rem;
}

.u-margin-bottom-lg {
  margin-bottom: 3rem;
}

/* Responsive Visibility */
@media (max-width: 767px) {
  .u-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .u-hide-tablet-up {
    display: none !important;
  }
}