/* Estilos específicos para el catálogo de planes de GoTravel */

@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  --amarillo: #fbde64;
  --verde-claro: #97cbc1;
  --verde-oliva: #667452;
  --verde-oscuro: #1c823e;
  --blanco: #ffffff;
  --gris-suave: #f9f9f9;
  --gris-texto: #333;
  --borde-radius: 10px;
  --sombra: 0 4px 16px rgba(28, 130, 62, 0.08);
  --transicion: 0.3s;
}

body {
  font-family: "Libre Baskerville", serif;
  background: var(--gris-suave);
  color: var(--verde-oscuro);
  margin: 0;
  padding: 0;
}

h1,
h2 {
  color: var(--verde-oscuro);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.intro-planes {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  color: var(--gris-texto);
  font-size: 1.08rem;
  text-align: center;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--blanco);
  border-radius: var(--borde-radius);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform var(--transicion), box-shadow var(--transicion);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1.5px solid var(--verde-claro);
  min-height: 370px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}
.card.loaded {
  opacity: 1;
  transform: translateY(0);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid var(--verde-oscuro);
  transition: filter 0.3s;
}
.card h3 {
  color: var(--verde-oscuro);
  margin: 1rem 0 0.5rem 0;
  font-size: 1.2rem;
}
.card p {
  padding: 0 1rem 1.5rem 1rem;
  color: var(--gris-texto);
  font-size: 1rem;
}
.card .btn-principal {
  background: var(--verde-oliva);
  color: var(--blanco);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--borde-radius);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: auto;
  cursor: pointer;
  transition: background var(--transicion), transform var(--transicion);
  box-shadow: var(--sombra);
  outline: none;
  text-decoration: none;
  display: inline-block;
}
.card .btn-principal:focus-visible,
.card .btn-principal:hover {
  background: var(--verde-oscuro);
  outline: 2px solid var(--amarillo);
  transform: scale(1.05);
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(28, 130, 62, 0.18);
  border-color: var(--amarillo);
}
.card:hover img,
.card:focus-within img {
  filter: brightness(1.07) saturate(1.1);
}

/* Etiqueta de destacado */
.card-plan::before {
  content: attr(data-destacado);
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--amarillo);
  color: var(--verde-oscuro);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 0 0 12px 0;
  letter-spacing: 1px;
  z-index: 2;
}
.card-plan.destacado::before {
  display: block;
}

/* Tabs de planes */
.tabs-planes {
  margin: 2.5rem auto 2rem auto;
  max-width: 1100px;
  background: var(--blanco);
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: 2rem 1rem 1.5rem 1rem;
}
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  border: none;
  border-radius: 18px 18px 0 0;
  padding: 0.7rem 1.3rem;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 2px 8px #b2dfdb22;
}
.tab-btn.active,
.tab-btn:focus-visible {
  background: var(--amarillo);
  color: var(--verde-oscuro);
  box-shadow: 0 4px 16px #fbde6444;
  outline: 2px solid var(--verde-oscuro);
}
.tabs-content {
  background: var(--gris-suave);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 8px #b2dfdb22;
  padding: 1.5rem 1rem 1.5rem 1rem;
  min-height: 180px;
}
.tab-panel {
  display: none;
  animation: fadeInTab 0.5s;
}
.tab-panel.active {
  display: block;
}
@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tabs-content h2 {
  color: var(--verde-oscuro);
  margin-top: 0;
  font-size: 1.18rem;
}
.tabs-content ul {
  margin: 0 0 0.5rem 1.2rem;
  padding: 0;
  color: var(--gris-texto);
  font-size: 1.01rem;
  line-height: 1.6;
}
.tabs-content li {
  margin-bottom: 0.3rem;
}

/* Animaciones y estados de carga */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}
.card.loaded {
  opacity: 1;
  transform: translateY(0);
}
.no-planes {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--blanco);
  border-radius: var(--borde-radius);
  box-shadow: var(--sombra);
  margin: 2rem auto;
  max-width: 500px;
}
.no-planes h3 {
  color: var(--verde-oscuro);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.no-planes p {
  color: var(--gris-texto);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.resultados-contador {
  text-align: center;
  color: var(--gris-texto);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gris-suave);
  border-top: 4px solid var(--verde-oscuro);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mejoras para botones deshabilitados */
.btn-principal.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none !important;
}
.btn-principal.disabled:hover {
  background: #ccc;
  transform: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .card {
    min-height: 320px;
  }
  .tabs-planes {
    padding: 1rem 0.2rem 1rem 0.2rem;
  }
  .tabs-content {
    padding: 1rem 0.2rem 1rem 0.2rem;
  }
  .tab-btn {
    font-size: 0.97rem;
    padding: 0.5rem 0.7rem;
  }
}
@media (max-width: 480px) {
  .no-planes {
    margin: 1rem;
    padding: 2rem 1rem;
  }

  .no-planes h3 {
    font-size: 1.3rem;
  }
}

/* Footer adaptado para catálogo */
footer {
  background: var(--verde-oliva);
  color: var(--blanco);
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 2rem;
}
.footer-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 1rem auto;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-footer {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--verde-oscuro);
  background: var(--blanco);
}
.footer-enlaces {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-enlaces a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transicion), background var(--transicion);
  outline: none;
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
}
.footer-enlaces a:focus-visible,
.footer-enlaces a:hover {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  outline: 2px solid var(--amarillo);
}

/* Redes sociales footer - círculo completo con imagen y texto explicativo */
.footer-redes {
  display: flex;
  gap: 2.2rem;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1.2rem;
}
.footer-redes .red-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 56px;
  background: none;
  text-decoration: none;
  outline: none;
  border: none;
  position: relative;
}
.footer-redes .icono-red {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--verde-oscuro);
  border: 0;
  box-shadow: 0 2px 8px rgba(28, 130, 62, 0.15);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  display: block;
}
.footer-redes .red-social:hover .icono-red,
.footer-redes .red-social:focus-visible .icono-red {
  background: var(--amarillo);
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(251, 222, 100, 0.25);
}
.footer-redes .red-social-label {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: var(--amarillo);
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
  user-select: none;
  pointer-events: none;
  transition: color 0.2s;
}
.footer-redes .red-social:hover .red-social-label,
.footer-redes .red-social:focus-visible .red-social-label {
  color: var(--verde-oscuro);
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
}
