/* Fuentes (alojadas en static/vendor/fuentes, licencia OFL) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../vendor/fuentes/lora-latin-wght-normal.9577af3ccda5.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../vendor/fuentes/source-sans-3-latin-wght-normal.9ef356ea553a.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Definición de Variables y Temas
   - theme-color-1/2/3: fondos (barra de navegación, franjas, pie, botones flotantes), con letra blanca
   - theme-texto: textos, títulos y enlaces sobre fondo blanco (contraste 5:1, legible)
   - theme-boton: fondo de los botones con letra blanca (contraste 4,7:1) */
:root {
  --theme-color-1: #D9650F;
  --theme-color-2: #E77620;
  --theme-color-3: #EF8418;
  --theme-texto: #B85000;
  --theme-texto-hover: #9A4108;
  --theme-boton: #C05400;
  --theme-pie-1: #A84A0C;
  --theme-pie-2: #C05400;
  --theme-hover: #ff6600;
  --theme-glow: rgba(255, 255, 255, 0.5);
  --theme-color-enlace: rgb(143 41 0);

  --fuente-titulos: 'Lora', Georgia, 'Times New Roman', serif;
  --fuente-texto: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Tema Azul */
body.theme-blue {
  --theme-color-1: rgba(0, 82, 204, 1);
  --theme-color-2: rgba(0, 102, 255, 1);
  --theme-color-3: rgba(51, 153, 255, 1);
  --theme-texto: #0052CC;
  --theme-texto-hover: #003D99;
  --theme-boton: #0052CC;
  --theme-pie-1: #003D99;
  --theme-pie-2: #0052CC;
  --theme-hover: #0044CC;
  --theme-glow: rgba(255, 255, 255, 0.5);
  --theme-color-enlace: rgb(2 19 108);
}

/* Tema Oscuro */
body.theme-dark {
  --theme-color-1: rgba(33, 37, 41, 1);
  --theme-color-2: rgba(52, 58, 64, 1);
  --theme-color-3: rgba(73, 80, 87, 1);
  --theme-texto: #343A40;
  --theme-texto-hover: #212529;
  --theme-boton: #343A40;
  --theme-pie-1: #212529;
  --theme-pie-2: #343A40;
  --theme-hover: #6c757d; /* Gris más oscuro para hover */
  --theme-glow: rgba(255, 255, 255, 0.5);
  --theme-color-enlace: rgb(7 5 5);
}

/* Tipografía */
body {
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  color: #2b2b2b;
}
h1, h2, h3, h4, h5, h6,
.tituloPost,
.navbar-brand,
.bg-naranja > p {
  font-family: var(--fuente-titulos);
}

/* Títulos de sección: texto grande con una línea naranja corta debajo */
.titulo-seccion {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 2rem;
  color: #2b2b2b;
  margin: 2.5rem 0 1.25rem;
}
.titulo-seccion::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: .6rem;
  border-radius: 2px;
  background: var(--theme-color-1);
}
main .titulo-seccion:first-child,
main .sr-only:first-child + .titulo-seccion {
  margin-top: 1rem;
}
@media (max-width: 575.98px) {
  .titulo-seccion {
    font-size: 1.6rem;
    margin-top: 2rem;
  }
}

/* Tarjetas: sin borde gris, con sombra suave y esquinas redondeadas */
.card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.card-body {
  padding: 1.75rem;
}
@media (max-width: 575.98px) {
  .card-body {
    padding: 1.25rem;
  }
}

.bg-naranja{
  background: var(--theme-color-1);
  background: linear-gradient(85deg, var(--theme-color-1) 0%, var(--theme-color-2) 46%, var(--theme-color-3) 83%);
}

.bg-naranja3{
  background-color: var(--theme-color-2) !important;
}
/* Menú desplegable de la barra ("Quiénes somos")
   - Celular (menú ☰ abierto): ítems blancos sobre el naranja de la barra
   - PC: tarjeta blanca debajo de la barra (antes quedaba encimada y con otro naranja) */
.navbar .dropdown-menu {
  border: 0;
  background: transparent;
  padding: 0 0 .25rem;
  margin: 0;
}
.navbar .dropdown-item {
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: 6px;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background-color: rgba(255, 255, 255, .15);
}
.navbar .dropdown-item.active {
  font-weight: 600;
}
@media (min-width: 768px) {
  /* PC y tablet: tarjeta con el mismo degradé de la barra, separada de ella y con sombra */
  .navbar .dropdown-menu {
    top: 100%;
    background: var(--theme-color-2);
    background: linear-gradient(85deg, var(--theme-color-1) 0%, var(--theme-color-2) 46%, var(--theme-color-3) 83%);
    margin-top: 20px;
    padding: .4rem;
    min-width: 13rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  }
  .navbar .dropdown-item {
    font-weight: 600;
  }
  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus {
    background-color: rgba(0, 0, 0, .14);
  }
  .navbar .dropdown-item.active,
  .navbar .dropdown-item:active {
    background-color: rgba(255, 255, 255, .22);
  }
}

.enlace{
  text-decoration: none;
  color: var(--theme-texto);
}
.enlace:hover{
  text-decoration: none;
  color: var(--theme-texto-hover);
}
@media (max-width:500px) and (min-width:100px) {
  .py-min{
    padding-top: 5.5rem !important;
  }
}

/* Carrusel: botón "Ver en YouTube" siempre visible (antes el enlace solo aparecía al pasar el mouse,
   y en celular no se veía) */
.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}
/* Abajo a la derecha: no tapa los títulos de las imágenes (a la izquierda) ni los indicadores (al centro) */
.carousel-boton {
  left: auto;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0;
  text-align: right;
}
.carousel-boton .btn.btn-default {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
@media (max-width: 575.98px) {
  /* En celular arriba a la derecha: abajo no entra junto a los indicadores */
  .carousel-boton {
    right: .6rem;
    top: .6rem;
    bottom: auto;
  }
  .carousel-boton .btn.btn-default {
    padding: 4px 10px;
    min-height: 32px;
    font-size: 13px;
  }
}

/* Pie de página: naranja más profundo que el resto para que el texto chico se lea (contraste 4,7-5,8:1) */
.footer {
  padding: 48px 0 20px;
  background: var(--theme-pie-1);
  background: linear-gradient(85deg, var(--theme-pie-1) 0%, var(--theme-pie-2) 100%);
  color: #fff;
}
.footer a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 3px;
}
.footer a:hover,
.footer a:focus {
  color: #fff;
  text-decoration-color: #fff;
}
.footer-marca {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--fuente-titulos);
  font-size: 1.35rem;
  font-weight: 600;
}
.footer-titulo {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.footer-texto {
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.footer-lista li {
  margin-bottom: 8px;
}
.footer-etiqueta {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer .social-icon {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  gap: 10px;
}
.footer .social-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: background-color .15s ease-in-out, color .15s ease-in-out;
}
.footer .social-icon a:hover,
.footer .social-icon a:focus {
  background: #fff;
  color: var(--theme-pie-2);
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding-top: 16px;
  font-size: .9rem;
}
/* En celular y tablet, que el botón flotante de WhatsApp no tape el final del pie */
@media (max-width: 991.98px) {
  .footer {
    padding-bottom: 88px;
  }
}
.btn.btn-default {
  background-color: var(--theme-boton);
  color: #fff;
  border-radius: 6px;
  border: none;
  padding: 12px 26px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn.btn-default:hover,
.btn.btn-default:focus {
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.btn.btn-default:hover {
  background-color: var(--theme-texto-hover);
}

.tituloPost{
  text-decoration: none;
  color: var(--theme-texto);
}

.service-card {
  overflow: hidden;
}

.service-card .card-body {
  text-align: left;
}

.service-card-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 1rem auto;
}

@media (max-width: 991.98px) {
  .service-card .card-body {
    text-align: center;
  }

  .service-card-img {
    max-width: 100%;
    margin: 0;
  }
}

/* Reset */
header {
  position: relative;
  background-color: black;
  height: 75vh;
  min-height: 25rem;
  width: 100%;
  overflow: hidden;
}

header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

header .container img {
  /* Brillo naranja-amarillo que sigue la forma del logo */
  filter: drop-shadow(0 0 15px var(--theme-glow));
}

.hero-logo {
  max-height: calc(75vh - 90px);
  width: auto;
  max-width: 100%;
  padding-top: 70px;
  padding-bottom: 30px;
}

@media (min-width: 992px) and (max-height: 760px) {
  .hero-logo {
    max-height: calc(75vh - 70px);
    padding-top: 55px;
    padding-bottom: 15px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .hero-logo {
    max-height: calc(75vh - 80px);
  }
}

header .container {
  position: relative;
  z-index: 2;
}

/* Media Query for devices withi coarse pointers and no hover functionality */

/* This will use a fallback image instead of a video for devices that commonly do not support the HTML5 video element */

  .contact3 h1,
  .contact3 h2,
  .contact3 h3,
  .contact3 h4,
  .contact3 h5,
  .contact3 h6 {
    color: #3e4555;
  }

/* Botón de WhatsApp */
.btn-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  line-height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
}
.btn-whatsapp:hover {
  text-decoration: none;
  color: #FFF;
  background-color: #128c7e;
}

/* Floating Social Media Buttons */
.floating-social-buttons {
  position: fixed;
  top: 50%;
  left: 0; /* Adjusted from 0 to 10px */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 9999; /* Increased z-index to ensure visibility */
}

.social-float-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align content to start */
  width: 70px; /* Increased width to accommodate icon + padding */
  height: 60px; /* Square size */
  margin-bottom: 0; /* No space between buttons */
  background-color: var(--theme-color-1); /* Use theme color for background */
  color: #fff; /* Default color for icon and text for contrast */
  text-decoration: none !important; /* Ensure no underline */
  overflow: hidden; /* Hide overflowing text */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  padding-left: 10px; /* Add padding to the left of the button content */
}

.social-float-btn:hover {
  width: 180px; /* Expand width on hover */
  background-color: var(--theme-hover); /* Change background to theme hover color */
  justify-content: flex-start; /* Align content to start on hover */
  padding-left: 15px; /* Add some padding when expanded */
  text-decoration: none !important; /* Ensure no underline on hover */
}

.social-float-btn i {
  font-size: 24px;
  padding-right: 10px; /* Space between icon and text */
  margin-right: 0; /* Remove margin-right as padding-right is used */
  color: #fff !important; /* Ensure icon color is white with high specificity */
  font-family: "Font Awesome 6 Brands" !important; /* Ensure Font Awesome font is used */
  position: relative; /* Ensure z-index works */
  z-index: 1; /* Ensure icon is above other elements within the button */
}

.social-float-btn .social-name {
  white-space: nowrap; /* Prevent text wrapping */
  opacity: 0; /* Hide text initially */
  transition: opacity 0.3s ease; /* Smooth transition for text opacity */
  color: #fff !important; /* Ensure text color is white by default with high specificity */
  text-decoration: none !important; /* Ensure no underline */
}

.social-float-btn:hover .social-name {
  opacity: 1; /* Show text on hover */
  color: var(--theme-color-enlace) !important; /* Set text color to theme-color-enlace on hover with high specificity */
  text-decoration: none !important; /* Ensure no underline on hover */
}

/* Celular y tablet: sin los botones de redes del costado; queda solo el de WhatsApp, más compacto.
   Mismo corte que d-lg-none / d-lg-block (992px) para que no quede ningún hueco */
@media (max-width: 991.98px) {
  .floating-social-buttons {
    display: none;
  }
  .btn-whatsapp {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 32px;
    bottom: 16px;
    right: 16px;
  }
}

/* Portada en celular y tablet: imagen fija del trigo con el logo */
.hero-movil {
  position: relative;
  overflow: hidden;
}
.hero-movil-fondo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}
.hero-movil-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94%;
  max-width: 760px;
  height: auto;
  filter: drop-shadow(0 0 10px var(--theme-glow));
}

@media (max-width: 1200px) {
  body {
    padding-top: 60px; /* Ajusta este valor si tu navbar es más alto en móvil */
  }
}

/* Menú: los enlaces no activos se veían blanco transparente y casi no se leían sobre el naranja */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
}
.navbar-dark .navbar-nav .active > .nav-link {
  color: #fff;
  font-weight: 600;
}

/* Contacto: el email es una sola "palabra" larga y en celular se salía de la tarjeta.
   <wbr> permite cortarlo antes de la @; si aun así no entra, se corta donde haga falta */
.email-contacto {
  overflow-wrap: anywhere;
}
/* Íconos de Contacto (dirección, teléfono, email) */
.icono-contacto {
  width: 66px;
  font-size: 54px;
  text-align: center;
  color: var(--theme-color-1);
}
@media (max-width: 575.98px) {
  .icono-contacto {
    width: 44px;
    font-size: 36px;
  }
}

/* Fotos de tarjeta con ancho y alto declarados: que conserven su proporción al achicarse */
img.card-img-top {
  height: auto;
}

/* Pie de página: datos legales y enlaces a Información institucional y Política de privacidad */
.footer-datos-legales,
.footer-enlaces {
  margin-top: 8px;
}
.footer-enlaces a {
  margin-right: 18px;
}
