/* ═══════════════════════════════════════════════════════════
   GRUPO LATYN — style.css
   Fuentes: DM Sans (body), Roboto (headings)
   Primario: #F8971D  |  Oscuro: #1a1a1a
═══════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --orange: #F8971D;
  --orange-h: #f38e10;
  --dark: #1a1a1a;
  --dark2: #111111;
  --gray-bg: #f5f5f5;
  --text: #333333;
  --muted: #666666;
  --border: #e8e8e8;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
    scroll-padding-top: 75px;

}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Roboto', sans-serif;
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── UTILITY ─── */
.section-title {
  font-size: clamp(2.2rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.80rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 30px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-orange:hover {
  background: var(--orange-h);
  color: #fff;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#mainNav {
  background: rgba(255, 255, 255, 0.97);
  transition: padding 0.35s ease, box-shadow 0.35s ease;
  padding: 18px 0;
  z-index: 1000;
}

#mainNav.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}


.navbar-nav .nav-link {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #231F20;
  padding: 6px 14px !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--orange) !important;
}


#hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  background-image: none !important;
  background-attachment: scroll !important;
  display: flex;
  align-items: center;
  overflow: hidden;
}


.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}


.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}


.hero-video-section .container {
  position: relative;
  z-index: 2;
}

.hero-video-section .hero-content h1 {
  color: #fff;
}

/* Mobile grande */
@media (max-width: 767px) {
  #hero {
    height: 100svh;
    min-height: 400px;
  }

  .hero-video {
    object-position: center center; /* ajustá si el sujeto del video está a un lado */
  }


}

/* Mobile chico */
@media (max-width: 480px) {
  #hero {
    min-height: 350px;
  }

}
/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero.bg-background-home {
  position: relative;
  height: 100vh;
  min-height: 500px;
  background-image: url('../img/bg-home.jpg') !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

#hero h1 {
  font-size: clamp(2.3rem, 4vw, 2.8rem);
  font-weight: 200;
  color: #fff;
  line-height: 1.2;
}

.hero-logo {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.9;
}

.hero-logo-box {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 28px 36px;
  backdrop-filter: blur(6px);
}

.hero-logo-box span {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.hero-logo-box strong {
  font-family: 'Roboto', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   SOMOS GRUPO LATYN
═══════════════════════════════════════════ */
#somos {
  padding: 120px 0;
  background: #fff;
}

#somos .section-title {
  color: var(--orange);
}

#somos p {
  font-size: 0.90rem;
  line-height: 1.75;
  color: #231F20;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 18px;
  align-items: center;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #444;
  text-align: center;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
}

.brand-item:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.brand-item.orange-text {
  color: var(--orange);
}

.brand-item.transparent-bd {
  border-color: transparent;
}

/* ═══════════════════════════════════════════
   GRIFERÍA — SWIPER
═══════════════════════════════════════════ */
#griferia {
  background: #111;
  position: relative;
}

.swiper-griferia {
  width: 100%;
}

.swiper-griferia .swiper-slide {
  display: flex;
  min-height: 80vh;
}

.slide-img-side {
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.slide-text-side {
  position: absolute;
  right: 0;
  width: 37%;
  background: rgba(163, 151, 138, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 56px;
  height: 80%;
}

.slide-text-side .cat-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.slide-text-side h2 {
  font-size: clamp(2.2rem, 3vw, 2.4rem);
  font-weight: 200;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.slide-text-side p {
  font-size: 0.93rem;
  font-weight: 300;
  color: rgba(255, 255, 255);
  line-height: 1.7;
  margin-bottom: 28px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.5px;
  max-width: 410px;
}

.slide-brands {
  display: flex;
  gap: 16px;
  align-items: center;
}

.slide-brands span {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.slide-brands .divider {
  color: rgba(255, 255, 255, 0.2);
}

.swiper-button-next,
.swiper-button-prev {
  color: #FFFFFF !important;
}

.swiper-pagination-bullet-active {
  background: var(--orange) !important;
}

/* ═══════════════════════════════════════════
   ESTRUCTURA — PARALLAX
═══════════════════════════════════════════ */
#estructura {
  position: relative;
  background-image: url('../img/bg-estructura.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 90px 0;
}

#estructura .rel {
  position: relative;
  z-index: 2;
}

#estructura .section-title {
  font-size: clamp(2.2rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.8rem;
}

#estructura p {
  color: rgba(255, 255, 255);
  font-size: 0.9rem;
  line-height: 1.75;
}

.stat-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 7px solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: background 0.25s;
}

.stat-circle:hover {
  background: rgba(248, 151, 29, 0.12);
}

.stat-circle .stat-num {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: #ffffff;
  line-height: 1.8rem;
  text-align: center;
}

.stat-circle .stat-num small {
  font-size: 0.7rem;
}

.stat-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255);
  text-align: center;
  margin-top: 2px;
}

.stat-col {
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   CONECTA / CAPACITA / ESPERA
═══════════════════════════════════════════ */
#conecta {
  padding: 0;
}

.conecta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.conecta-card {
  position: relative;
  height: 450px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.conecta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 100%);
  transition: background 0.3s;
  z-index: 1;
}

/* Necesario en la card contenedora */
.conecta-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* El overlay arranca fuera del viewport (abajo) */
.conecta-card .card-hover-overlay {
  position: absolute;
  inset: 0;
  background: #1e1d1b;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.bg-hover {
  position: absolute;
  left: 0;
  right: 0;
  background: #F8971D;
  margin-top: 0px;
}

/* Botón + visible solo en mobile */
.card-toggle-btn {
  display: none;
  /* oculto en desktop */
}

@media (hover: none) and (pointer: coarse) {

  /* En touch devices, desactivar el hover CSS */
  .conecta-card:hover .card-hover-overlay {
    transform: translateY(100%);
  }

  .conecta-card:hover .card-label {
    opacity: 1;
  }

  /* Mostrar el botón + */
  .card-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5a623;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s ease, background 0.3s ease;
  }

  /* Cuando la card está abierta: rotar el + a × */
  .conecta-card.is-open .card-toggle-btn {
    transform: rotate(45deg);
    background: #fff;
    color: #1e1d1b;
  }

  /* Activar overlay con clase JS en vez de :hover */
  .conecta-card.is-open .card-hover-overlay {
    transform: translateY(0);
  }

  .conecta-card.is-open .card-label {
    opacity: 0;
  }
}

.overlay-accent img {
  z-index: 9;
  position: relative;
  margin-bottom: -2px;
}

/* Franja naranja con el ícono */
.conecta-card .card-hover-overlay .overlay-accent {
  background: #F8971D;
  padding: 1.25rem 1.5rem 0rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}


/* Texto descriptivo */
.conecta-card .card-hover-overlay .overlay-body {
  padding: 1.25rem 2.2rem 2rem;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1e1e1e;
}

.conecta-card .card-hover-overlay .overlay-body h3 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.conecta-card .card-hover-overlay .overlay-body p {
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 0.9rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

/* Activar el slide-up */
.conecta-card:hover .card-hover-overlay,
.conecta-card:focus-within .card-hover-overlay {
  transform: translateY(0);
}

/* Ocultar el label mientras el overlay está visible */
.conecta-card .card-label {
  transition: opacity 0.3s ease;
  position: absolute;
  z-index: 1;
}

.conecta-card:hover .card-label,
.conecta-card:focus-within .card-label {
  opacity: 0;
}

.conecta-card .card-label {
  position: absolute;
  text-align: center;
  line-height: 1.5rem;
  z-index: 2;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
}

.conecta-card .card-label span {
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════
   CTA — COMERCIALIZAR
═══════════════════════════════════════════ */
#cta {
  background: var(--orange);

}

.bg-grey {
  background-color: #5D5D5D;
}

.cta-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2.5px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.cta-circle i {
  font-size: 3.5rem;
  color: var(--orange);
}

#cta h2 {
  font-size: clamp(2.2rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.8rem;
}

#cta p {
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.75;
  max-width: 500px;
}

/* ═══════════════════════════════════════════
   CONTACTO — SECCIÓN PRINCIPAL
═══════════════════════════════════════════ */
#contacto {
  position: relative;
  background-color: #2d2d2d;
  background-image: url('../img/bg-contacto.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  padding: 110px 0 110px;
}

#contacto>.container {
  position: relative;
  z-index: 1;
}

/* Título contacto */
#contacto .contact-heading {
  font-size: clamp(2.2rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 48px;
}

/* Columna de direcciones */
.contact-address h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.1rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 8px;
  margin-top: 24px;
}

.contact-address h3:first-child {
  margin-top: 0;
}

.contact-address address {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Formulario */
.contact-form .form-label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255);
  margin-bottom: 4px;
}

.contact-form .form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 8px 0;
  box-shadow: none;
  transition: border-color 0.2s;
}

.contact-form .form-control:focus {
  background: transparent;
  border-bottom-color: var(--orange);
  color: #fff;
  box-shadow: none;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.contact-form textarea.form-control {
  resize: none;
  min-height: 90px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .btn-send {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 45px;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.contact-form .btn-send:hover {
  background: var(--orange-h);
  transform: translateY(-1px);
}

.contact-wave-wrap {
  margin-bottom: -2px
}

/* ═══════════════════════════════════════════
   FOOTER INFERIOR
═══════════════════════════════════════════ */
.site-footer {
  background: #333132;
  padding: 28px 0 50px;
}

.site-footer .footer-info {
  font-size: 0.82rem;
  color: rgba(255, 255, 255);
  line-height: 1.8;
}

.site-footer .footer-info a {
  color: rgba(255, 255, 255);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-info a:hover {
  color: var(--orange);
}

.site-footer .footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.site-footer .footer-social a {
  color: rgb(51 49 50);
  font-size: 0.8rem;
  transition: color 0.2s;
  background: aliceblue;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
}

.site-footer .footer-social a:hover {
  color: var(--orange);
}

.footer-social-label {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.footer-brand-logo small {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 2px;
}

.footer-brand-logo .hl {
  color: var(--orange);
}

::selection {
  background-color: var(--orange-h);
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    font-size: 1rem;
    margin-top: 20px;
  }

  .conecta-card .card-hover-overlay .overlay-body h3 {
    font-size: 1.3rem;
  }

  .conecta-card .card-hover-overlay .overlay-body p {
    font-size: 0.8rem;
  }

  #cta {
    padding: 80px 0;
  }

  #cta p {
    max-width: 100%;
  }

  #somos p {
    font-size: 1rem;

  }

  .hero-logo {
    display: none;
  }

  .conecta-card {
    height: 370px;
  }

  .slide-text-side {
    width: 55%;
  }

  #estructura p {
    font-size: 1rem;
  }

  .slide-text-side p {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  #contacto .contact-heading {
    text-align: center;
  }
  .bg-hover {
    display: none;
   }

   .conecta-card .card-hover-overlay .overlay-accent {padding: 1.25rem 1.5rem 1rem;}
  #somos {
    text-align: center;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .swiper-griferia .swiper-slide {
    flex-direction: column;
    min-height: auto;
  }

  .slide-img-side {
    width: 100%;
    height: 70vh;
  }

  .slide-text-side {
    width: 100%;
    padding: 36px 28px;
  }

  .conecta-grid {
    grid-template-columns: 1fr;
  }

  #cta {
    text-align: center;
  }

  .conecta-card {
    height: 280px;
  }

  #estructura {
    background-attachment: scroll;
    text-align: center;
  }

  #hero {
    background-attachment: scroll;
  }

  #contacto {
    background-attachment: scroll;
  }

  .slide-text-side {
    top: 0 !important;
    transform: none !important;
    height: auto;
    text-align: center;
  }

  .slide-text-side p {
    max-width: 90%;
    margin: 0 auto;
  }

  .slide-text-side h2 {
    margin-bottom: 30px;
  }

  .slide-brands {
    position: absolute;
    bottom: 20px;
    transform: translateX(-50%);
    left: 50%;
    width: 90%;
  }

  .footer-brand-logo {
    align-items: flex-start;
    margin-top: 14px;
  }

}

@media (max-width: 576px) {
      .conecta-card {
        height: 330px;
    }
  .stat-circle {
    width: 110px;
    height: 110px;
  }

  .stat-circle .stat-num {
    font-size: 1.5rem;
    line-height: 1.5rem;

  }

  #hero .hero-content {

    max-width: 400px;
    margin: 0 auto;
  }

  #contacto .contact-heading {
    font-size: 2rem;
  }

  #cta h2 {
    font-size: 2rem;
  }

  #hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  #estructura .section-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  #somos {
    padding: 80px 0;
  }

  .slide-text-side p {
    font-size: 0.9rem;
    width: 100%;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 29px !important;
  }

  .site-footer {
    text-align: center;
    padding-top: 60px;
  }

  .slide-text-side h2 {
    margin-bottom: 20px;
  }

  .slide-text-side {
    width: 100%;
    padding: 26px 18px;
  }
}