@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Inter:wght@300;400;500&display=swap');

#inicio {
  display: none;
}

:root {
  --bg-main: #F7F4EF;
  --bg-soft: #F1ECE4;
  --bg-accent: #E8DED1;
  --text-main: #5A5854;
  --text-soft: #7A7772;
  --highlight: #D6C3AE;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* evita scroll horizontal */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ================= HEADER ================= */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.logo-text{
  font-family: 'Playfair Display', serif;
  font-weight: 600; /* más gordita */
  font-size: 1.7rem; /* apenas más grande */
  letter-spacing: 0.02em; /* elegancia sin perder cuerpo */
  color: var(--text-main);
}

.header {
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--bg-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  width: 100%;
  padding: 1.8rem 2rem; /* separa apenas del borde */
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* ocultamos hamburguesa en desktop */
.menu-toggle {
  display: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: 0.6rem;
}

.menu a {
  text-align: right;
  text-decoration: none;
  color: var(--text-soft);
  border-radius: 20px;
  padding: 0.3rem 0.5rem; /* un poco más aire */
  font-size: 15px; /* antes 0.85 */
  align-items: right;
}

.menu a:hover {
  background-color: var(--bg-accent);
  color: var(--text-main);
}

/* ================= SECCIONES ================= */

.section {
  padding: 2.5rem 1.5rem;
}

.soft-bg {
  background-color: var(--bg-soft);
}

.container {
  max-width: 1100px;
  margin: auto;
}

/* ================= GRID ================= */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ================= TIPOGRAFÍA ================= */

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

p {
  max-width: 580px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ================= IMÁGENES ================= */

.image-placeholder {
  width: 100%;
  max-width: 600px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--bg-accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#imagenInicio {
  display: none;
}

#imagenCelu {
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
}

.zoom-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.zoom-hover:hover {
  transform: scale(1.05);
}

/* ================= INICIO ================= */

#inicio {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.inicio-columns {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: flex-start;
}

.inicio-left,
.inicio-right {
  display: flex;
  flex-direction: column;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-main);
}

/* ================= CUANDO CONSULTAR ================= */

.when-box {
  grid-column: 1 / -1;
  margin-top: 0rem;
  text-align: center;
}

.list-intro {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.when-box ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.when-box li {
  background-color: white;
  border-radius: 16px;
  padding: 1.1rem 1.3rem 1.1rem 2.8rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  position: relative;
  text-align: left;
}

.when-box li::before {
  content: "•";
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  font-size: 1.5rem;
  color: var(--highlight);
}

/* ================= FRASE ================= */

.frase-full {
  padding: 2rem 0;
}

#frase {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  color: var(--text-main);
  font-size: 0.8rem;
}

/* ================= WHATSAPP ================= */

.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 80px;
  height: 80px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-btn i {
  color: white;
  font-size: 46px;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.5rem;
  padding: 0.5rem;
  width: 100%;
  align-items: center;
}

.procesoimagen {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ZIGZAG */
.reverse {
  direction: rtl;
}
.reverse > * {
  direction: ltr;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {
  .nav {
    padding: 1rem 2rem;
    flex-wrap: wrap; /* permite que los elementos del nav se acomoden en varias líneas */
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.7rem;
    white-space: nowrap; /* evita que el texto se rompa */
  }

  .nav-right {
    margin-left: auto;
    display: flex;
    align-items: left;
    gap: 0.6rem;
    flex-wrap: wrap; /* permite que el menú y el toggle se acomoden */
  }

  .menu {
    display: flex;
    flex-wrap: wrap; /* que los links puedan ir a la segunda línea */
    gap: 0.4rem 0.6rem; /* gap más ajustado horizontal y vertical */
    align-items: left; /* alinea a la izquierda */
  }

  .menu a {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap; /* que cada link se mantenga en una sola línea */
    /* Estilo general de los links del menú */
    color: var(--text-soft);
    text-align: left;  /* centra el texto */
    white-space: nowrap; /* evita que se corte en varias líneas */
    display: inline-block; /* fundamental para que el hover funcione */
    border-radius: 12px; /* redondeo sutil */
    transition: background-color 0.3s ease, color 0.3s ease;
}

  /* Hover real al pasar el mouse */
  .menu a:hover {
    background-color: rgba(90, 88, 84, 0.15); /* gris semi-transparente */
    color: var(--text-main);
  }



  /* resto de tu CSS */
  .grid, .inicio-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-placeholder, #imagenCelu, .big-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .when-box ul {
    grid-template-columns: 1fr;
  }

  #frase {
    font-size: 0.78rem;
    max-width: 90%;
    padding: 0 1rem;
  }

  .whatsapp-btn {
    width: 64px;
    height: 64px;
  }

  .whatsapp-btn i {
    font-size: 36px;
  }


}


/* MÓVIL */
@media (max-width: 768px) {

.menu-toggle {
    display: block;
    font-size: 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    z-index: 1001;
  }

  .menu {
    display: none;
    position: fixed; /* FIXED para que siempre esté visible */
    top: 70px;       /* debajo del header */
    right: 16px;     /* separada del borde */
    flex-direction: column;
    background-color: var(--bg-main);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    width: 220px;
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    font-size: 1rem;
    padding: 0.5rem 0;
    text-align: left;
    color: var(--text-soft);
  }

  .menu a:hover {
    background-color: var(--bg-accent);
    color: var(--text-main);
  }

  .grid, .inicio-columns { 
  grid-template-columns: 1fr; gap: 1.8rem; 
  }
  .inicio-left, .inicio-right { align-items: center; text-align: center; }
  .image-placeholder, #imagenCelu, .big-image img { width: 100%; height: auto; max-width: 100%; }
  .procesoimagen img { width: 100%; height: auto; max-width: 100%; }
  .when-box ul { grid-template-columns: 1fr; }
  p, .hero-lead, .cuandoConsultar { font-size: 0.88rem; line-height: 1.6; }
  h2 { font-size: 1.4rem; }
  #frase { font-size: 0.7rem; max-width: 95%; padding: 0 1rem; }
  .whatsapp-btn { width: 56px; height: 56px; bottom: 16px; right: 16px; }
  .whatsapp-btn i { font-size: 30px; }
  #contacto .container.grid { grid-template-columns: 1fr; gap: 2rem; }
  .map-container iframe { width: 100%; height: 250px; }

  .logo-img {
    width: 50px;  /* achicamos el logo */
    height: 50px;
  }

  .logo-text {
    font-size: 1rem; /* achicamos el título */
    white-space: nowrap; /* evita que se rompa en dos líneas */
    overflow: hidden;   /* corta si no entra */
    text-overflow: ellipsis; /* agrega "..." si es necesario */
  }

  .nav {
    padding: 0.5rem 0.8rem; /* reducimos padding para que entre todo */
  }

  .nav-right {
    gap: 1rem; /* menos espacio entre iconos */
  }

  .menu-toggle {
    font-size: 1.1rem; /* un poquito más pequeño */
  }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 480px) {
  .logo-img { width: 50px; height: 50px; }
  .logo-text { font-size: 1.2rem; }
  .menu a { font-size: 0.95rem; }
  h2 { font-size: 1.25rem; }
  p, .hero-lead, .cuandoConsultar { font-size: 0.8rem; }
  #frase { font-size: 0.65rem; }
  .whatsapp-btn { width: 50px; height: 50px; }
  .whatsapp-btn i { font-size: 28px; }
}
