.ssn-legal {
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #222;
}

.ssn-legal__text {
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.ssn-legal__text a {
  color: var(--primary-color);
  text-decoration: none;
}

.ssn-legal__text a:hover {
  text-decoration: underline;
}

.ssn-legal__team {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ssn-legal__col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ssn-legal__col p {
  margin: 0.2rem 0;
}


.ssn-bar {

  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ssn-item {
  text-align: center;
}

.ssn-label {
  display: block;
  font-size: 0.85rem;
  color: #333;
}

.ssn-value,
.ssn-link {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.ssn-link:hover {
  text-decoration: underline;
}

.ssn-logo {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.ssn-logo img {
  max-height: 48px;
  width: auto;
}


/* ===========================
   SECCIÓN - FAQS
   =========================== */


.faq__item {
  border-bottom: 1px solid #e5e5e5;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq__question:hover {
  opacity: 0.85;
}

.faq__icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

/* RESPUESTA */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__answer p {
  padding-bottom: 1rem;
  color: #1a237e; /* azul oscuro */
  line-height: 1.6;
}

.faq__answer a {
  color: #1bbfb5;
  text-decoration: none;
}

/* ESTADO ABIERTO */
.faq__answer.open {
  max-height: 300px;
}

.faq__question.active .faq__icon {
  transform: rotate(180deg);
}




/* ===========================
   SECCIÓN - HERO
   =========================== */

.hero,
.hero-aux {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  color: var(--surface-color);
  overflow: hidden;
  border-bottom-left-radius: 3rem;
  border-bottom-right-radius: 3rem;
}

.hero {
  min-height: 90vh;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: -1;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--container-width);
  gap: var(--spacing-lg);
}

.hero__content {
  text-align: center;
  max-width: 600px;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--surface-color);
  margin-bottom: var(--spacing-md);
}

.hero__subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--accent-color);
  margin-bottom: var(--spacing-lg);
}

/* ===========================
   SECCIÓN - BANNER
   =========================== */

.banner {
  background-color: var(--background-color);
  border-radius: 2rem;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.4s ease;
  color: var(--primary-color);
}

.banner-card {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-xl) * 2);
  border-radius: 2rem;
  padding: 2rem;
  overflow: hidden;
}


.banner-card__visual {
  position: relative;
  height: 200px;
}

.banner-bg {
  position: absolute;
  right: 40px;
  top: 0;
  width: 280px;
  z-index: 1;
  transition: transform 0.5s ease;
}

.banner-family {
  position: absolute;
  left: 40px;
  top: 20px;
  width: 220px;
  z-index: 2;
  transition: transform 0.5s ease;
}

.banner-card__content {
  text-align: left;
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
}

/* ===========================
   SECCIÓN - PRODUCTOS
   =========================== */

.products {
  text-align: center;
}

.products__carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 400px;
  margin: var(--spacing-lg) auto;
}

.products__card {
  position: absolute;
  opacity: 0;
  transform: scale(0.8) translateX(100%);
  transition: var(--transition);
  max-width: 100%;
  min-height: 380px;
  background: var(--primary-color);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  color: var(--surface-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.products__card-subtitle {
  font-size: calc(var(--font-size-md) * 1.3);
}


/* === Estados del carrusel === */
.products__card.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 3;
  -webkit-transform: scale(1) translateX(0);
  -moz-transform: scale(1) translateX(0);
  -ms-transform: scale(1) translateX(0);
  -o-transform: scale(1) translateX(0);
}

.products__card.prev {
  opacity: 0.6;
  transform: scale(0.9) translateX(-100%);
  z-index: 2;
}

.products__card.next {
  opacity: 0.6;
  transform: scale(0.9) translateX(100%);
  z-index: 2;
}

.products__card-icon i {
  font-size: 3.5rem;
}

/* ===========================
   SECCIÓN - MEDIA
   =========================== */
.media-section {
  background-color: var(--background-color);
  border-radius: 2rem;
  box-shadow: var(--box-shadow);
  overflow: hidden; /* 🔑 */
  padding: 0;       /* 🔑 elimina marco */
}

/* CONTENEDOR PRINCIPAL */
.media-card {
  position: relative;
  min-height: 420px;
}

/* CAPA DEL VIDEO */
.media-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 🔑 */
  display: block;
}

.media-image--top {
  object-position: 50% 5%;
}

.media-image--center {
  object-position: center;
}


/* OVERLAY OSCURO */
.media-layer::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* CONTENIDO (se mantiene tu clase) */
.media-card__content {
  position: relative;
  z-index: 2;
  padding: 0.5rem;
  background-color: rgba(255,255,255,0.4);
  text-align: center;
}



/* ===========================
   SECCIÓN - NOSOTROS
   =========================== */

.nosotros__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  text-align: justify;
}

.contacto__map {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

.contacto__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* CARDS DE PRUEBA */
.cta-section {
  padding: 2rem 1rem;
}

.cta-grid {
  display: grid;
  gap: 1.5rem;
}

.cta-card {
  border-radius: 1.5rem;
  min-height: 160px;

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

  font-weight: 500;
  overflow: hidden;
}

.faqs-link {
  color: var(--accent-color);
}  

.cta-card-padding {
  padding: 2rem;
}

.cta-card__media {
  display: flex;
  justify-content: center;
  overflow: visible; 
}

.cta-card__media img {
  width: 100%;
  max-width: 220px;
  height: auto;
  transition: transform 0.35s ease;
  transform-origin: center bottom;
}

.cta-card:hover .cta-card__media img {
  transform: scale(1.3);
}

.cta-card__text {
  font-size: 1.1rem;
  line-height: 1.4;
}

.cta-icon {
  justify-content: space-between;
}

.cta-icon__link {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;
  border-radius: 50%;

  background-color: white;
  color: var(--primary-color);

  font-size: 2.2rem;
  transition: transform 0.2s ease;
}

.cta-icon__link:hover {
  transform: scale(1.1);
}


/* RESPONSIVE */
@media (min-width: 768px) {
  .ssn-legal__team {
    flex-direction: row;
    gap: 3rem;
  }

  .ssn-legal__col {
    width: 50%;
  }

  .ssn-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ssn-item {
    text-align: left;
  }

  .ssn-logo {
    margin-top: 0;
    justify-content: flex-end;
  }



  .cta-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 250px);
    grid-template-areas:
      "a b b b"
      "c c d e"
      "f f f g";
  }

  .cta-card:nth-child(1) { grid-area: a; }
  .cta-card:nth-child(2) { grid-area: b; }
  .cta-card:nth-child(3) { grid-area: c; }
  .cta-card:nth-child(4) { grid-area: d; }
  .cta-card:nth-child(5) { grid-area: e; }
  .cta-card:nth-child(6) { grid-area: f; }
  .cta-card:nth-child(7) { grid-area: g; }

  .cta-card--wide,
  .cta-card--wide {
    flex-direction: row;
    align-items: center;
    overflow: visible;
    position: relative;
  }

  .cta-card__media {
    flex: 0 0 40%;
    position: relative;
  }

  .cta-card__media img {
    max-width: 300px;
    transform: translateX(-40px); /* sobresale */
  }

  .cta-card__text {
    flex: 1;
    font-size: 1.25rem;
  }

/* ===========================
   SECCIÓN - HERO
   =========================== */
  .hero {
    padding: 4rem;
  }

  .hero__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    text-align: left;
  }

  .hero__content {
    flex: 1;
    max-width: 80%;
    text-align: left;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .hero__subtitle {
    font-size: 1.4rem;
  }

  .hero__subtitle span {
    font-size: 1.8rem;
    font-weight: bold;
  }

/* ===========================
   SECCIÓN - BANNER
   =========================== */
  .banner-card {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .banner-card__visual {
    flex: 0 0 40%;
    height: 260px;
  }

  .banner-card__content {
    flex: 1;
  }

  /* Hover animation */
  .banner-card:hover .banner-family {
    transform: translateX(12px);
  }

  .banner-card:hover .banner-bg {
    transform: translateX(-12px);
  }



/* ===========================
   SECCIÓN - PRODUCTOS
   =========================== */
  .products__title {
    max-width: 70%;
    margin: 0 auto;
    line-height: 1;
  }
  
  .products__carousel {
    max-width: 80%;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-lg);
    position: relative;
  }
  
  .products__card {
    max-width: 380px;
    min-height: 420px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .products__card.prev,
  .products__card.next {
    cursor: pointer;
    opacity: 0.7;
  }

  .products__card.prev:hover,
  .products__card.next:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }

/* ===========================
   SECCIÓN - PRODUCTOS
   =========================== */
  .contacto__map iframe {
    height: 300px;
  }
/* ===========================
   SECCIÓN - MEDIA
   =========================== */
  .media-card {
    min-height: 420px;
  }

/* ===========================
   SECCIÓN - NOSOTROS
   =========================== */
  .nosotros__text {
    margin-top: var(--spacing-lg);
  }

  .nosotros__text p {
    font-size: calc(var(--font-size-md) * 1.4);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
  }
}