/* Paleta WeekendAr — definida sobre las referencias visuales que armaron
   Belen y Ale: verde bosque como color de marca (no el azul de la
   referencia de formato, ese solo marcaba la estructura), coral para
   las acciones principales. */
:root {
  --verde: #2d4d41;
  --verde-oscuro: #203a30;
  --verde-claro: #dff0ea;
  --coral: #ea8069;
  --coral-oscuro: #d96b52;
  --texto: #1f1f1f;
  --texto-claro: #ffffff;
  --texto-suave: #6b7280;
  --fondo: #f7f7f5;
  --borde: #e5e2dc;
  --radio: 10px;
  --sombra: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ============================================
   HEADER
   ============================================ */

.sitio-header {
  background: var(--verde);
  color: var(--texto-claro);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sitio-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--texto-claro);
}

.sitio-header .logo .logo-icono {
  font-size: 1.4rem;
}

.sitio-header .logo img {
  height: 64px;
  width: auto;
}

.sitio-header .logo-texto {
  font-size: 1.5rem;
  font-weight: 700;
}

.sitio-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sitio-header nav a {
  color: var(--texto-claro);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.sitio-header nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.sitio-header .sesion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sitio-header .sesion-usuario {
  font-size: 0.9rem;
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primario {
  background: var(--coral);
  color: var(--texto-claro);
}

.btn-primario:hover {
  background: var(--coral-oscuro);
}

.btn-secundario {
  background: transparent;
  color: var(--texto-claro);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ancho-completo {
  display: block;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   CONTENIDO
   ============================================ */

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.25rem;
}

.carrusel-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-flecha:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carrusel-flecha-izq {
  left: 0.75rem;
}

.carrusel-flecha-der {
  right: 0.75rem;
}

/* ============================================
   FORMULARIOS
   ============================================ */

.formulario {
  max-width: 420px;
  margin: 2rem auto;
}

.formulario h2 {
  margin-bottom: 1.25rem;
}

.campo {
  margin-bottom: 1rem;
}

.campo label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: 2px solid var(--verde);
  outline-offset: 1px;
}

.formulario-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--borde);
}

.formulario-tabs button {
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texto-suave);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.formulario-tabs button.activa {
  color: var(--verde);
  border-bottom-color: var(--verde);
}

.mensaje-error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2bd;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.formulario-enlace {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.formulario-enlace a {
  color: var(--verde);
  font-weight: 600;
}

.formulario-ayuda {
  color: var(--texto-suave);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Campo de contraseña con botón para mostrarla (js/mostrar-password.js) */
.campo-password {
  position: relative;
}

.campo .campo-password input {
  padding-right: 2.75rem;
}

.btn-ver-password {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0.25rem;
  background: none;
  border: none;
  border-radius: 4px;
  color: var(--texto-suave);
  cursor: pointer;
}

.btn-ver-password:hover {
  color: var(--verde);
}

.btn-ver-password:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 1px;
}

.mensaje-ok {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  border: 1px solid #b9dcd0;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

[hidden] {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */

.sitio-footer {
  background: var(--verde-oscuro);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.5rem 1.25rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.sitio-footer .footer-columnas {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.sitio-footer small {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0.7;
}

.footer-metodos-pago {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-metodo-pago {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.footer-redes {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-red-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .sitio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding: 1rem;
  }
}

/* ============================================
   VALIDACIONES DE FORMULARIO
   ============================================ */

.campo-con-prefijo {
  display: flex;
  align-items: stretch;
}

.prefijo-telefono {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid var(--borde);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: var(--fondo);
  color: var(--texto-suave);
  font-weight: 600;
}

.campo-con-prefijo input {
  border-radius: 0 6px 6px 0;
}

.campo-invalido {
  border-color: #b3261e !important;
}

.validacion-aviso {
  display: block;
  margin-top: 0.3rem;
  color: #b3261e;
  font-size: 0.8rem;
}

.sugerencias-dominio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.sugerencia-dominio {
  border: 1px solid var(--verde);
  background: #fff;
  color: var(--verde);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.sugerencia-dominio:hover {
  background: var(--verde-claro);
}

/* ============================================
   BOTON SECUNDARIO
   Por defecto con borde verde, para que se vea sobre fondos claros
   (tarjetas, paneles, formularios). El estilo blanco original queda solo
   para el header oscuro.
   ============================================ */
.btn-secundario {
  background: #fff;
  color: var(--verde);
  border: 1px solid var(--verde);
}

.btn-secundario:hover {
  background: var(--verde-claro);
}

.sitio-header .btn-secundario {
  background: transparent;
  color: var(--texto-claro);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.sitio-header .btn-secundario:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Contacto del footer: menú para elegir con qué escribir el mail */
.contacto-mail {
  position: relative;
  display: block;
  width: fit-content;
  margin-top: 0.3rem;
}

.contacto-mail summary {
  cursor: pointer;
  text-decoration: underline;
  list-style: none;
}

.contacto-mail summary::-webkit-details-marker {
  display: none;
}

.contacto-opciones {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  padding: 0.4rem;
}

.contacto-titulo {
  font-size: 0.8rem;
  color: var(--texto-suave);
  padding: 0.3rem 0.6rem;
}

.contacto-opciones a,
.contacto-opciones button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border: none;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--verde);
  text-decoration: none;
  cursor: pointer;
}

.contacto-opciones a:hover,
.contacto-opciones button:hover {
  background: var(--verde-claro);
}

@media (max-width: 640px) {
  .contacto-opciones {
    left: auto;
    right: 0;
  }
}
