/* =========================================================
   VARIABLES GENERALES
========================================================= */
:root {
  --beige: #f5f0e6;
  --black: #111;
  --white: #fff;
  --accent: #c7a97c; /* beige elegante para detalles */
  --font-main: 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

/* Contenedor principal */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Separador elegante */
hr {
  border: none;
  height: 3px;
  width: 60%;
  margin: 3rem auto;
  background: var(--accent);
  border-radius: 2rem;
  opacity: 0.8;
}


/* =========================================================
   HEADER Y NAVEGACIÓN
========================================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-img {
  height: 1em;
  width: auto;
  display: inline-block;
}

nav a {
  margin-left: 1.5rem;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Variantes tipográficas para títulos */
.momento,
.espacio, .barra {
  font-family: 'Times New Roman', Times, serif;
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000;
}

.nombre {
  font-family: 'Times New Roman', Times, serif;
  font-size: large;
  font-weight: bold;
}

.slider {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ICONO HAMBURGUESA */
.hamburger {
  display: none; /* por defecto no se ve en escritorio */
  cursor: pointer;
  font-size: 1.8rem;
  background: none;
  border: none;
}


/* =========================================================
   HERO (Sección principal destacada)
========================================================= */
.hero {
  background: var(--beige);
  padding: 6rem 1rem;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
}

.btn {
  background: var(--black);
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--black);
  transform: scale(1.1);
}


/* =========================================================
   CLASES (Layout de imágenes y artículos)
========================================================= */
.clases-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.clases-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.clases-fotos img {
  width: 100%;
  border-radius: .5rem;
  object-fit: cover;
}

.clases-textos {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}

.clases-textos p {
  text-align: left;
  text-align: justify;
}

.clases-textos article {
  background: var(--beige);
  padding: 1.5rem;
  border-radius: .5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Foto especial con overlay */
.foto-especial {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.foto-especial img {
  width: 100%;
  border-radius: .5rem;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.foto-especial .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96.4%;
  border-radius: .5rem;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
  gap: 0.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.foto-especial:hover img {
  transform: scale(1.1);
}

.foto-especial:hover .overlay {
  background: var(--accent);
  color: var(--black);
  transform: scale(1.1);
}


/* =========================================================
   POPUP GALERÍA
========================================================= */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: var(--white);
  padding: 2rem;
  border-radius: .5rem;
  max-width: 1000px;
  text-align: center;
  position: relative;
  z-index: 10000;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.galeria-popup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.galeria-popup img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-popup img:hover {
  transform: scale(1.05);
}


/* =========================================================
   SOBRE MÍ
========================================================= */
.sobre-mi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.sobre-mi img {
  width: 100%;
  border-radius: .5rem;
  object-fit: cover;
}

.sobre-mi h3 {
  margin-bottom: 1rem;
}


/* =========================================================
   CONTACTO
========================================================= */
.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* Formulario */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.contact-form label {
  text-align: left;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: .5rem;
  font-size: 1rem;
  font-family: var(--font-main);
}

.contact-form button {
  align-self: flex-start;
}

.mensaje {
  resize: none;
}

/* Contador caracteres */
.contador {
  font-size: 0.8rem;
  text-align: right;
  margin-top: 0.25rem;
  color: #555;
}

.contador.naranja {
  color: orange;
}

.contador.rojo {
  color: red;
}

/* Extra info */
.extra-info {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* Mapa */
.map-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  align-content: end;
  margin-bottom: 3%;
}

.map-container iframe {
  border-radius: 1rem;
}

/* Horarios */
.horarios {
  background: var(--beige);
  border-radius: .5rem;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  font-weight: 500;
}

.horarios h3 {
  margin-bottom: 0.5rem;
  color: var(--black);
}

.horarios ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.horarios li {
  margin-bottom: 0.25rem;
  color: var(--black);
}


/* =========================================================
   BARRA LATERAL CONTACTO
========================================================= */
.barra-lateral {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10000;
  background-color: var(--white);
  padding: 0.5rem;
  border-radius: 0.5rem 0 0 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Iconos visibles siempre en escritorio */
.item-red {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.item-red img {
  width: 24px;
}

.item-red:hover {
  transform: translateX(-5px);
}

/* Icono hamburguesa del header */
.hamburger {
  display: none; /* nunca visible en escritorio */
  cursor: pointer;
  font-size: 1.8rem;
  background: none;
  border: none;
}

/* Botón toggle de la barra lateral */
.red-toggle {
  display: none; /* nunca visible en escritorio */
}


/* =========================================================
   CONTACTO - Botón Instagram y WhatsApp
========================================================= */
.cta-instagram, .cta-whatsapp {
  text-align: center;
  margin: 1.5rem 0;
}

.btn-ig, .btn-wh {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
  font-family: var(--font-main);
}

.btn-ig {
  background: #000;
  color: #fff;
}

.btn-wh {
  background: #25d366;
  color: #fff;
}

.btn-ig img, .btn-wh img {
  width: 20px;
  height: 20px;
}

.btn-ig:hover, .btn-wh:hover {
  transform: translateY(-2px);
  opacity: .9;
}

/* Formulario secundario (plegable) */
.formulario-toggle summary {
  cursor: pointer;
  font-weight: 500;
  margin-top: 1rem;
  list-style: none;
}

.formulario-toggle summary::-webkit-details-marker {
  display: none; /* quita el triángulo feo */
}

.aqui {
  color: blue;
}

.botones {
  display: flex;
  gap: 20px;
}



/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  /* Header */
  .logo {
    font-size: 1.2rem;
  }

  .barra {
    display: none; /* nunca visible en escritorio */
    cursor: pointer;
  }

  nav {
    display: none; /* ocultamos menú normal */
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 60px; /* debajo del header */
    right: 10px;
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  nav.active {
    display: flex; /* lo mostramos al activar */
  }

  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    background: none;
    border: none;
  }

  /* Hero */
  .hero h2 {
    font-size: 1rem; /* más pequeño para móvil */
    display: flex;
    flex-direction: row; /* horizontal */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* si no cabe, hace wrap */
    gap: 0.5rem; /* espacio entre spans */
  }

  .momento {
    display: inline-block; /* mantener inline dentro del flex */
    font-size: 3.5rem; /* tamaño ajustable */
    font-weight: bold;
  }

  .espacio {
    display: inline-block; /* mantener inline dentro del flex */
    font-size: 3rem; /* tamaño ajustable */
    font-weight: bold;
    margin-top: -7%;
  }

  /* Beneficios */
  .beneficios {
    text-align: center;
  }

  /* Clases */
  .clases-layout {
    grid-template-columns: 1fr; /* una columna */
  }

  .clases-textos {
    order: 1; /* primero los textos */
  }

  .clases-textos p {
    text-align: left;
  }

  .clases-fotos {
    order: 2; /* después las fotos */
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    gap: 1rem;
  }

  /* Popup galería */
  .galeria-popup {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    grid-template-rows: repeat(3, auto);   /* 3 filas automáticas según contenido */
    gap: 1rem;
    margin-top: 1rem;
  }

  .galeria-popup img {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
  }

  .galeria-popup img:hover {
    transform: scale(1.05);
  }


  /* Contacto */
  .intro-contacto {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Botones principales */
  .botones {
    flex-direction: column; /* en columna para móvil */
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  .botones a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .btn-ig,
  .btn-wh {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--black);
    color: var(--white);
    padding: 0.9rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: 100%;
  }

  .btn-ig img,
  .btn-wh img {
    width: 22px;
    height: 22px;
  }

  .btn-ig:hover,
  .btn-wh:hover {
    background: var(--accent);
    color: var(--black);
    transform: scale(1.05);
  }

  /* Formulario dentro del details */
  .formulario-toggle {
    margin-top: 2rem;
    width: 100%;
  }

  .formulario-toggle summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
  }

  .contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: .5rem;
    font-size: 1rem;
    font-family: var(--font-main);
  }

  .contact-form .botones {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .contact-form .btn {
    flex: 1;
    text-align: center;
  }

  /* Sobre mí */
  .sobre-mi {
    grid-template-columns: 1fr; /* una columna */
    text-align: justify;
  }
  .sobre-mi img {
    margin-top: 1rem;
    width: 100%; /* ocupa todo el ancho disponible */
  }

  /* Redes sociales: botón flotante */
  .barra-lateral {
    top: auto;
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .barra-lateral .item-red {
    display: none;
  }

  .barra-lateral.active .item-red {
    display: flex;
  }

  .hamburger {
    display: block; /* solo en móvil */
  }

  .red-toggle {
    display: block; /* solo en móvil */
    background: var(--white);
    color: var(--black);
    border-radius: 50%;
    padding: .8rem;
    font-size: 1.5rem;
    cursor: pointer;
    width: 115%;
  }

}
