﻿/* ===========================
   VARIABLES DE COLOR
=========================== */
:root {
  --negro: #050608;
  --gris-oscuro: #1b1d21;
  --plata: #c0c4cc;
  --verde-pastel: #9ad3b5;
  --madera: #8b6b4a;
  --blanco: #ffffff;
  --radius: 12px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f242c 0, #050608 60%);
  color: var(--blanco);
  line-height: 1.5;
}

/* ===========================
   HEADER
=========================== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.9);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.logo-texts h1 {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.tagline {
  color: var(--plata);
  font-size: 0.75rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
}

.main-nav a {
  color: var(--plata);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--verde-pastel);
}

.admin-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
}

.cta-header .btn-outline {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--verde-pastel);
  border-radius: 999px;
  text-decoration: none;
  color: var(--verde-pastel);
  transition: 0.2s ease;
}

.cta-header .btn-outline:hover {
  background: var(--verde-pastel);
  color: var(--negro);
}

/* ===========================
   BOTONES
=========================== */
.btn-primary,
.btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--verde-pastel), #b5f1d1);
  color: var(--negro);
  font-weight: 600;
}

.btn-secondary {
  background: transparent;
  color: var(--verde-pastel);
  border: 1px solid rgba(154, 211, 181, 0.6);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary:hover {
  background: rgba(154, 211, 181, 0.08);
}

.full-width {
  width: 100%;
}

/* ===========================
   HERO
=========================== */
.hero {
  padding: 0;
}

.hero-with-media {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ELIMINACIÓN DEFINITIVA DEL PLAY BUTTON */
.hero-media video {
  pointer-events: none !important;
  /* Bloquea mouse */
}

.hero-media video::-webkit-media-controls {
  display: none !important;
  /* Oculta controles Chrome */
}

.hero-media video::-webkit-media-controls-start-playback-button {
  display: none !important;
  /* Oculta botón play gigante */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.3), rgba(5, 6, 8, 0.96));
  z-index: 2;
  pointer-events: none;
  /* Permitir clicks a través del overlay si es necesario, o bloquear si se quiere */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verde-pastel);
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-content h2 {
    white-space: normal;
  }
}

.hero-text {
  font-size: 1.15rem;
  color: #f5f5f5;
  margin-bottom: 2rem;
  max-width: 600px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-badge {
  color: var(--verde-pastel);
  font-size: 1.1rem;
  margin-top: 2rem;
}

/* ===========================
   Estilos Destacados (IMÁGENES)
=========================== */
.estilos {
  background: radial-gradient(circle at center, #1f242c 0, #050608 80%);
  text-align: center;
}

.estilos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.estilo-card {
  flex: 0 1 300px;
  max-width: 320px;
  background: rgba(18, 20, 25, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(192, 196, 204, 0.16);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.estilo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: var(--verde-pastel);
}

.estilo-imagen-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
}

.estilo-imagen-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.estilo-overlay-icon {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.estilo-card:hover .estilo-overlay-icon {
  opacity: 1;
}

.estilo-overlay-icon span {
  font-size: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.estilo-info {
  padding: 1rem;
  text-align: center;
  background: #0e1116;
}

.estilo-info h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--verde-pastel);
}

/* ===========================
   SECCIONES GENERALES
=========================== */
section {
  padding: 2.8rem 1.5rem;
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--plata);
  margin-bottom: 1.4rem;
}

/* ===========================
   EXPERIENCIA (MODIFICADO - SIMETRÍA)
=========================== */
.experiencia {
  background: radial-gradient(circle at top right, #262a32 0, #050608 70%);
}

.experiencia-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Simetría 50/50 */
  gap: 2rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .experiencia-layout {
    grid-template-columns: 1fr;
  }
}

.experiencia-col-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experiencia-texto p {
  color: var(--plata);
  margin-bottom: 1rem;
}

.experiencia-lista {
  list-style: none;
  color: var(--plata);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experiencia-lista li::before {
  content: "• ";
  color: var(--verde-pastel);
}

.experiencia-img-small img {
  width: 100%;
  height: 250px;
  /* Controlar altura */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.video-feature:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--verde-pastel);
  color: #000;
}

/* ===========================
   MEMBRESÍAS
=========================== */
.membresias {
  background: #050608;
}

.membresias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.membresia-card {
  background: rgba(19, 22, 28, 0.96);
  border: 1px solid rgba(154, 211, 181, 0.2);
  padding: 1rem;
  border-radius: var(--radius);
}

.membresia-card h3 {
  margin-bottom: 0.6rem;
}

.membresia-card ul {
  color: var(--plata);
  list-style: none;
  font-size: 0.9rem;
}

.membresia-card li::before {
  content: "• ";
  color: var(--verde-pastel);
}

/* ===========================
   EQUIPO
=========================== */
.equipo {
  background: radial-gradient(circle at bottom, #1f242c 0, #050608 70%);
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.equipo-card {
  background: rgba(18, 20, 25, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(192, 196, 204, 0.16);
  padding: 1rem;
  text-align: center;
}

.equipo-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.equipo-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipo-rol {
  color: var(--verde-pastel);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.equipo-desc {
  color: var(--plata);
  font-size: 0.9rem;
}

/* ===========================
   RESERVAS
=========================== */
.reservas {
  background: #07090c;
}

.reserva-form {
  max-width: 540px;
  margin: auto;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(192, 196, 204, 0.15);
  background: rgba(14, 17, 22, 0.95);
}

.date-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.date-wrapper input[type="date"] {
  width: 100%;
  padding-right: 2.5rem;
}

.date-trigger {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.date-trigger::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 2px;
  border: 1px solid #1674ff;
  background: #ffffff;
  position: relative;
}

.date-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: #1674ff;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #050608;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--blanco);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 1px solid var(--verde-pastel);
}

.mensaje-reserva {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

/* ===========================
   CALENDARIO
=========================== */
.calendario {
  background: #050608;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calendario-layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1rem;
  margin-top: 1rem;
}

.calendario-panel {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(14, 17, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.calendario-controles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-btn {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blanco);
  cursor: pointer;
}

.cal-btn:hover {
  background: rgba(154, 211, 181, 0.1);
}

#mesActual {
  font-weight: 600;
  text-transform: capitalize;
}

.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.dia {
  background: rgba(5, 6, 8, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem;
  min-height: 60px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.dia.header {
  background: transparent;
  border: none;
  text-align: center;
  cursor: default;
  font-weight: bold;
  color: var(--plata);
}

.dia.empty {
  visibility: hidden;
}

.dia .numero {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.dia .badge-reservas {
  color: var(--verde-pastel);
  font-size: 0.7rem;
}

.dia .badge-barberos {
  color: var(--plata);
  font-size: 0.7rem;
}

.dia.hoy {
  border-color: var(--verde-pastel);
}

/* MEJORA VISUAL CALENDARIO */
.calendario-grid .dia {
  background: rgba(10, 12, 16, 0.85);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem;
  min-height: 75px;
  color: var(--blanco);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .2s ease;
}

.calendario-grid .dia:hover:not(.header):not(.empty) {
  background: rgba(154, 211, 181, .12);
  transform: scale(1.05);
  border-color: var(--verde-pastel);
}

.calendario-grid .dia.hoy {
  border-color: var(--verde-pastel);
  box-shadow: 0 0 10px rgba(154, 211, 181, .35);
}

.calendario-grid .dia.selected {
  background: rgba(154, 211, 181, .22);
  border-color: var(--verde-pastel);
  transform: scale(1.07);
}

.calendario-grid .dia .numero {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

/* LATERAL DEL CALENDARIO */
.calendario-lateral {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detalle-dia,
.panel-disponibilidad {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(14, 17, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lista-simple {
  list-style: none;
  color: var(--plata);
}

.lista-simple li {
  margin-bottom: 0.3rem;
}

/* ===========================
   GALERÍA
=========================== */
.galeria {
  background: radial-gradient(circle at center, #1b222a 0, #050608 70%);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.galeria-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   CONTACTO (SIMETRÍA PERFECTA)
=========================== */
.contacto {
  background: #050608;
}

.contacto-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  margin: 2rem auto 0;
  /* Altura fija para forzar simetría exacta */
  height: 400px;
}

@media (max-width: 768px) {
  .contacto-grid-new {
    grid-template-columns: 1fr;
    height: auto;
    /* En móvil altura libre */
    gap: 1.5rem;
  }
}

.mapa-moderno {
  width: 100%;
  height: 100%;
  /* Llenar los 400px */
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.mapa-moderno iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: none;
}

.video-llegada-card {
  width: 100%;
  height: 100%;
  /* Llenar los 400px */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Centrado total */
  background: #0e1116;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-llegada-card h3 {
  margin-bottom: 2rem;
  color: var(--plata);
  text-align: center;
}

.mini-video-trigger {
  width: 100%;
  max-height: 450px;
  aspect-ratio: 16/9;
  cursor: pointer;
}

/* ===========================
   REDES SOCIALES (ESPACIADO EXTRA)
=========================== */
.redes-sociales {
  margin-top: 6rem;
  /* MÁS ESPACIO para evitar encimado */
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  z-index: 10;
  clear: both;
  /* Asegurar limpieza */
}

.redes-sociales h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--plata);
}

.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.iconos-redes a {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: 0.3s;
  color: var(--plata);
}

.iconos-redes a svg {
  width: 32px;
  height: 32px;
}

/* Colores Hover con !important */
.iconos-redes a.ig:hover {
  background: #fff;
  color: #E1306C !important;
  transform: translateY(-8px);
}

.iconos-redes a.fb:hover {
  background: #1877F2;
  color: #fff !important;
  transform: translateY(-8px);
}

.iconos-redes a.tk:hover {
  background: #000;
  color: #00f2ea !important;
  transform: translateY(-8px);
  border: 1px solid #00f2ea;
}

/* ===========================
   FOOTER
=========================== */
.main-footer {
  text-align: center;
  padding: 1rem;
  color: var(--plata);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: whatsapp-glow 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #22bf5b;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@keyframes whatsapp-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 95vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ===========================
   LOGIN / ADMIN
=========================== */
.login-main {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  max-width: 420px;
  width: 100%;
  background: rgba(14, 17, 22, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.8rem 1.5rem;
}

.login-card h2 {
  margin-bottom: 0.3rem;
}

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

.login-volver a {
  color: var(--verde-pastel);
  text-decoration: none;
}

.login-volver a:hover {
  text-decoration: underline;
}

.admin-main {
  padding: 2rem 1.5rem;
}

.admin-resumen {
  margin-bottom: 2rem;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.admin-card {
  background: rgba(14, 17, 22, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
}

/* Spam prevention */
.hp-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

.form-privacy-note {
  font-size: 0.75rem;
  color: #888;
  opacity: 0.7;
  margin-top: 1rem;
  text-align: center;
  line-height: 1.4;
}

.admin-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}