/* ==========================================================================
   FOOTER GLOBAL — Reconstruido en HTML/CSS puro
   Archivo: /wp-content/themes/escuela/css/eee-footer.css
   ========================================================================== */

.eee-footer {
  font-family: 'Lato', sans-serif;
  overflow: hidden; /* Contención global de fondos desplegados */
  width: 100%;
  max-width: 100vw;
}

.eee-footer-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px;
  box-sizing: border-box;
}

.eee-footer-section--alt {
  position: relative;
}

.eee-footer-section--alt::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  background: rgba(223, 223, 229, 0.54);
  z-index: -1;
}

.eee-footer-section--links {
  position: relative;
}

.eee-footer-section--links::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  background: #DFDFE5;
  z-index: -1;
}

.eee-footer-hidden-title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   RESEÑAS DE GOOGLE (Carrusel contenido)
   ========================================================================== */

.google-reviews {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  font-family: Arial, sans-serif;
  max-width: 100%;
  box-sizing: border-box;
}

.reviews-summary {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reviews-summary h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.reviews-summary .stars {
  color: #fbbc05;
  font-size: 24px;
  margin: 8px 0;
}

.reviews-summary p {
  margin: 8px 0;
  color: #444;
}

.google-logo {
  width: 100px;
  height: 34px;
  aspect-ratio: 272 / 92;
  margin-top: 10px;
}

.google-reviews-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #4285f4;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}

.google-reviews-btn:hover {
  background: #3367d6;
}

.reviews-carousel {
  flex: 3;
  min-width: 0;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.review-card {
  flex: 0 0 320px;
  max-width: 85vw; /* Evita que la tarjeta supere la pantalla en móviles muy pequeños */
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.review-header .avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.g-icon {
  width: 18px;
  height: 18px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
}

.review-card .stars {
  color: #fbbc05;
  margin-bottom: 8px;
  font-size: 16px;
}

.review-card p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

.review-text-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px !important;
}

.read-more-link {
  font-size: 13px;
  color: #4285f4;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  cursor: pointer;
}

@media (max-width: 900px) {
  .google-reviews { flex-direction: column; }
  .reviews-carousel {
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .reviews-carousel::-webkit-scrollbar { display: none; }
  .reviews-summary { order: 1; }
  .reviews-carousel { order: 2; }
}

/* ==========================================================================
   FORMULARIO + AVISO LEGAL + REDES
   ========================================================================== */

.eee-footer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.eee-footer-form .titulo-footer {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #283474;
  margin: 0 0 16px;
}

.eee-footer-form .wpcf7-form-control,
.eee-footer-form input[type="text"],
.eee-footer-form input[type="email"],
.eee-footer-form input[type="tel"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.eee-footer-form form {
  max-width: 100%;
  overflow: hidden;
}

.eee-footer-legal p {
  font-size: 16px;
  line-height: 1.6em;
  color: #585860;
  margin: 0 0 16px;
}

.eee-footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.eee-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.eee-footer-social a:hover {
  transform: translateY(-3px);
}

.eee-footer-social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .eee-footer-split {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LOGOS + COLUMNAS DE ENLACES
   ========================================================================== */

.eee-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.eee-footer-col--logos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.eee-footer-logo {
  max-width: 160px;
  height: auto;
}

.eee-footer-logo--small {
  max-width: 64px;
}

.eee-footer-col .titulo-footer {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #585860;
  margin: 0 0 14px;
}

.eee-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eee-footer-col li {
  margin-bottom: 10px;
}

.eee-footer-col a {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6em;
  color: #585860;
  text-decoration: none;
}

.eee-footer-col a:hover {
  color: #283474;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .eee-footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .eee-footer-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COPYRIGHT
   ========================================================================== */

.eee-footer-bottom {
  background: #585860;
  padding: 20px 24px;
}

.eee-footer-bottom p {
  max-width: 1180px;
  margin: 0 auto;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6em;
  color: #ffffff;
}

.eee-footer-bottom a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.eee-footer-bottom a:hover {
  color: #C1E5FF;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */

.whatsapp-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999999 !important;
}

.whatsapp-button {
  background-color: #25D366;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite ease-in-out;
}

.whatsapp-button:hover {
  background-color: #1ebe57;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon-official {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

@keyframes whatsappPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .whatsapp-button {
    width: 60px;
    height: 60px;
  }
  .whatsapp-icon-official {
    width: 34px;
    height: 34px;
  }
  .whatsapp-container {
    bottom: 115px;
    right: 25px;
  }
}

/* ==========================================================================
   SEGUIR COMPRANDO (WooCommerce)
   ========================================================================== */

.entry-content .seguir-comprando-carrito {
  margin-bottom: 20px;
}

.entry-content .seguir-comprando-carrito a.boton-carrito {
  display: inline-block;
  background-color: #243474 !important;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
}