/* =========================
   RESET BÁSICO
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f0f9ff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =========================
   HERO
========================= */
/* =========================
   HERO
========================= */
.container{
    margin:0 !important;
}
.container,
.container-fluid {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}


.hero {
  position: relative;
  height: 100vh;
  background: url('../img/fondo.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.65), rgba(0, 85, 170, 0.75));
  width: 100%;
  height: 100%;
  display: flex;
}
.hero,
.hero-overlay {
  max-width: 100vw;
  overflow-x: hidden;
}


.hero-subtitle {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #d0f0ff;
}

/* Hero logo */
.hero-logo {
  max-width: 340px;
  margin-bottom: 25px;
  animation: float 4s ease-in-out infinite;
}

/* Botón destacado */
.hero-btn {
  font-size: 1.3rem;
  padding: 16px 36px;
  margin-top: 40px;
  border-radius: 60px;
  background: linear-gradient(135deg, #00e0ff, #0077ff);
  border: none;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: linear-gradient(135deg, #00bfff, #0055aa);
  transform: scale(1.08);
  text-decoration: none;
}

/* Efecto flotante */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Hero logo con fondo tipo "corbata" */
.hero-logo-container {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-logo-container img {
  position: relative;
  z-index: 2;
}

/* Fondo detrás del logo centrado */
.hero-logo-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;                 /* centra horizontal */
    transform: translateX(-50%); /* ajusta para que el centro del polígono quede sobre el logo */
    width: 100%;
    height: 160%;
    background: #fff;
    z-index: 0;
    clip-path: polygon(48% 1%, 58% 0%, 88% 20%, 89% 86%, 49% 69%, 14% 77%, 11% 15%, 26% 2%);
    border-radius: 15px;
}


/* Ajuste del pseudo-elemento del logo para móviles */
@media (max-width: 768px) {
  .hero-logo-container::before {
    width: 120%;  /* reducir tamaño relativo */
    height: 140%;
  }
}

@media (max-width: 576px) {
  .hero-btn:hover {
    transform: none;
  }
}



/* =========================
   SECCIÓN PRODUCTOS
========================= */
.section-water-bg {
  background: url('../img/wave-bg.png') center/cover repeat, linear-gradient(180deg, #e0f7ff 0%, #f8f9fa 100%);
  padding: 60px 0;
}


/* Igualar altura de las cards */
.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dar altura fija a carruseles */
.price-card .carousel-inner {
  height: 250px; /* ajusta según lo que necesites */
}

.price-card .carousel-inner img {
  height: 100%;
  width: 100%;
  object-fit: contain; /* recorta la imagen sin deformarla */
  border-radius: 8px;
}


.price-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 10px 25px rgba(0,0,0,0.15);
}
.price-card img {
  max-height: 220px;
  object-fit: cover;
}

.price-card h4 {
  font-weight: 700;
  margin-top: 15px;
}

.price-card p {
  margin-bottom: 10px;
}

/* Carruseles */
.carousel-inner img {
  border-radius: 10px;
  object-fit: cover;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
}

/* =========================
   BENEFICIOS
========================= */
.benefits-box {
  margin-top: 40px;
  padding: 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}
.benefit-item {
  margin-bottom: 20px;
}
.benefit-title {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: #0055aa;
}
.benefit-subtext {
  font-size: 0.95rem;
  color: #666;
}

.section-benefits {
  background: #f8f9fa; /* gris claro */
}

.benefits-box {
  max-width: 700px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
}

.benefit-title {
  font-size: 1.25rem;
  display: block;
  margin-top: 0.5rem;
}

.benefit-subtext {
  font-size: 0.95rem;
  color: #6c757d;
}

.benefits-box .card {
  border: none;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.benefits-box .card:hover {
  transform: translateY(-5px);
}

/* Beneficios - imagen responsiva */
.section-benefits img {
  max-width: 100%;   /* nunca supera el ancho del contenedor */
  height: auto;      /* mantiene proporción */
  display: block;    /* evita espacios indeseados */
  margin: 20px auto; /* centrado horizontal y separación vertical */
  border-radius: 12px; /* mantiene bordes redondeados */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* sombra */
  width: 60vw;
}

/* Opcional: limitar el ancho máximo en pantallas grandes */
@media (min-width: 992px) {
  .section-benefits img {
    max-width: 600px;
  }
}
@media (max-width: 576px) {
  .contact-section .contact-card,
  .contact-section .link-card {
    padding: 15px 10px;  /* menos padding */
    min-height: auto;
    width: 100%;         /* asegurar que no sobresalga */
  }
}


#imageModal .modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#imageModal .modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* =========================
   Tarjetas tipo calendario para precios
========================= */
.calendar-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.calendar-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* Tarjeta pequeña cantidad + precio */
.price-card-small {
  border: 1px solid #ccc; /* borde de 1px */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px; /* separación entre tarjetas */
  border-radius: 6px; /* esquinas redondeadas */
  overflow: hidden;
}

.price-card-small .price-item,
.price-card-small .price-value {
  padding: 6px 12px;
  width: 100%;
  text-align: center;
}

.price-card-small .price-item {
  font-weight: 600;
}

.price-card-small .price-value {
  font-weight: 700;
  color: #222;
}

/* Ajuste de colores (ya se usan clases de Bootstrap) */



/* =========================
   MAPA
========================= */
#map {
  width: 100%;
  max-width: 900px; /* ajusta según el ancho visual que prefieras */
  height: 320px;
  border-radius: 10px;
  box-shadow: 0px 6px 15px rgba(0,0,0,0.15);
  margin-bottom: 30px;
}

/* =========================
   CONTACTO Y REDES
========================= */
/* ========================
   Sección de Contacto y Redes
======================== */

/* Título homologado */
.contact-section .section-title {
  font-weight: 800;
  color: #0055aa;
  font-size: 2rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}

/* Tarjetas de contacto */
.contact-section .contact-card {
  background: #e0f3ff; /* fondo claro */
  color: #0055aa;
  padding: 30px 20px;
  border-radius: 15px;
  border: 2px solid #00aaff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact-section .contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Iconos */
.contact-section .contact-card i {
  display: block;
  margin: 0 auto 15px auto;
  font-size: 3rem;
  color: #0077cc;
}

/* Títulos y texto */
.contact-section .contact-card h5 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.contact-section .contact-card p,
.contact-section .contact-card p a {
  font-size: 1rem;
  color: #0055aa;
  margin-bottom: 0.5rem;
}

.contact-section .contact-card p a {
  color: #0077ff !important;
  text-decoration: none;
  font-weight: 600;
}

.contact-section .contact-card p a:hover {
  text-decoration: underline;
}

/* Redes sociales - tarjetas con color propio */
.contact-section .social-card.facebook-card {
  background: #3b5998 !important;
  color: #fff !important;
  border: none !important;
}

.contact-section .social-card.facebook-card i {
  color: #fff !important;
}

.contact-section .social-card.facebook-card a {
      text-decoration: none !important;
  color: #fff !important;
  font-weight: bold;
}
.contact-section .facebook-card,
.contact-section .facebook-card * {
  color: #fff !important;
}

.contact-section .social-card.instagram-card {
  background: #c13584 !important;
  color: #fff !important;
  border: none !important;
}

.contact-section .social-card.instagram-card i {
  color: #fff !important;
}

.contact-section .social-card.instagram-card a {
  color: #fff !important;
  font-weight: bold;
}

.contact-section .instagram-card,
.contact-section .instagram-card * {
  color: #fff !important;
}



/* Forzar que los enlaces se comporten como tarjetas (Facebook con <a> completo) */
.link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  padding: 30px 20px;
  border-radius: 15px;
  border: 2px solid #00aaff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
  text-align: center;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  text-decoration: none;
}

.link-card i {
  display: block;
  margin: 0 auto 15px auto;
  font-size: 3rem;
  color: #fff; /* hereda color de la tarjeta */
}

.link-card h5,
.link-card p {
  color: #fff; /* texto blanco */
}

/* Layout columnas */
.contact-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem; /* espacio entre tarjetas */
}

/* Responsivo */
@media (max-width: 992px) {
  .contact-section .contact-card,
  .contact-section .link-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .contact-section .section-title {
    font-size: 1.6rem;
  }
  .contact-section .contact-card,
  .contact-section .link-card {
    padding: 25px 15px;
    min-height: auto;
  }
}


/*===================
=== FOOTER ==========
====================*/

/* Footer */
.site-footer {
  background: #0055aa;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
}

.site-footer a {
  color: #ffd700; /* amarillo para resaltar el enlace */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer p {
  margin-bottom: 5px;
}

.site-footer .credits {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #e0e0e0;
}

/* Footer Box (cuadro destacado a la izquierda) */
.site-footer .footer-box {
  background: #e0f3ff;
  color: #0055aa;
  font-size: 1.2rem; /* ligeramente más grande */
  font-weight: 600;
  display: inline-block;
  padding: 15px 20px; /* más espacio para la imagen */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 10px;
}

/* Imagen dentro del footer-box */
.site-footer .footer-box .footer-logo {
  max-height: 70px; /* aumentado desde 50px */
  width: auto;
  display: block;
  margin: 0 auto; /* centrado horizontal */
}

/* Ajustes responsivos */


.site-footer .row {
  flex-wrap: wrap;
  max-width: 100vw;
  overflow-x: hidden;
}
.site-footer .col-md-4,
.site-footer .col-md-8 {
  max-width: 100%;
}


/* Ajustes responsivos */
@media (min-width: 768px) {
  .site-footer .col-md-4 {
    text-align: left;
  }
  .site-footer .col-md-8 {
    text-align: right;
  }
}

/* Ajustes responsivos */
@media (max-width: 576px) {
  .site-footer .footer-box {
    padding: 12px 15px;
  }
  .site-footer .footer-box .footer-logo {
    max-height: 60px; /* un poco más grande que antes */
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}



/* =========================
   RESPONSIVIDAD
========================= */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero-logo {
    max-width: 220px;
  }
  .price-card img {
    max-height: 180px;
  }
}
@media (max-width: 576px) {
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}


/* =========================
   FIJAR DESFACE HORIZONTAL
========================= */

/* Forzar que pseudo-elementos y contenedores no excedan la pantalla */
.hero-logo-container::before {
  max-width: 100vw; /* nunca más ancho que la pantalla */
  box-sizing: border-box; /* incluye borde/padding en ancho */
}

.container, .container-fluid, .section-water-bg, .contact-section .row, .site-footer .row {
  max-width: 100vw; /* prevenir overflow horizontal */
  box-sizing: border-box;
}

/* Asegurar que las tarjetas de contacto y redes no sobresalgan */
.contact-section .contact-card,
.contact-section .link-card,
.contact-section .social-card {
  max-width: 100%;
  box-sizing: border-box;
}

/* Footer box */
.site-footer .footer-box {
  max-width: 100%;
  box-sizing: border-box;
}

/* Para móviles, el pseudo-elemento también se ajusta */
@media (max-width: 768px) {
  .hero-logo-container::before {
    max-width: 100vw; 
  }
}
