:root {
  --max: 1200px;
  --gap: 1.25rem;
  --brand: #0a5;
}

/* ====== ESTILOS BASE ====== */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: #111;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Contenedor flexible */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px;
  flex-wrap: wrap;
  /* Esto permite que los elementos se acomoden sin superponerse */
  max-width: 100%;
  width: 100%;
}

header .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 10px 5px;
  /* reduce el espacio lateral */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 45px;
  /* ajusta según el tamaño que quieras */
  width: auto;
  display: block;
  object-fit: contain;
}

.brand {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

#nav {
  flex: 1;
  text-align: right;
  /* display: block; */
}

#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  /* espacio entre enlaces */
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

#nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s;
}

.resaltado {
  font-weight: bold !important;
  border: 1px solid #333;
  border-radius: 3px !important;
  text-decoration: none;
  /* Quitar subrayado */
  color: #333;
  transition: background 0.3s, color 0.3s;
  padding: 7px 10px;
}

/* Hover o enlace activo */
#nav a:hover,
#nav a.active {
  color: #40435a
    /* naranja de acento */
}

/* Línea inferior en hover o activo */
#nav a.active::after,
#nav a:hover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #40435a;
}

/* Botón menú móvil */
#nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  header .container {
    justify-content: space-between;
  }

  #nav-toggle {
    display: block;
  }

  #nav {
    display: none;
    width: 100%;
  }

  /* Cuando se active (ej. con JS) */
  #nav.active {
    display: block;
  }

  #nav ul {
    background: rgba(255, 255, 255, 0.295);
    /* deja ver el contenido detrás */
    height: auto;
    /* solo ocupa lo que necesita */
  }

  #nav a {
    display: block;
    padding: 0.5rem 0;
  }

  #nav.open {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

}

.pagina-ficticia {
  background-color: #fadd5d;
  padding: 5px;
  text-align: center;
}

/* ===== HERO BLOG ===== */


/* === HERO === */
#hero-blog {
  width: 100%;
  height: 480px;
  background: #F2C94C;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Contenedor de letras */
#falling-letters-container {
  font-family: "Rockwell", "Slab Serif", serif;
  font-weight: 900;
  font-size: clamp(40px, 8vw, 90px); /* min 40px, max 90px, se adapta */
  color: black;
  position: relative;
  width: 90%;       /* ancho relativo al contenedor principal */
  height: 300px;
  margin: 0 auto;
  overflow: hidden;
}

.letter {
  position: absolute;
  opacity: 0;
  transform: translateY(-200px);
  transition: transform 0.6s ease-out, opacity 0.4s ease-in;
}

.letter.show {
  opacity: 1;
  transform: translateY(0);
}

#manolo-text {
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4vw, 28px);
  color: rgba(5, 5, 5, 0.788);
  opacity: 0;
  transition: opacity 1s ease-in;
  position: absolute;
  top: 360px;
  left: 50%;
  transform: translateX(-50%);
}

#manolo-text.show {
  opacity: 1;
}




/* .hero-video {
  position: relative;
  width: 100%;
 
  height: 70vh;
 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}


.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  z-index: 0;
} */

/* Responsive */
@media (max-width: 768px) {
  .blog-hero {
    height: 50vh;
    background-attachment: scroll;
  }

  .blog-hero-content h1 {
    font-size: 2rem;
  }

  .blog-hero-content p {

    font-size: 14px;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    font-weight: 400;
    color: #222;
    line-height: 1.8;
    /* mejora la legibilidad */

  }
}

.intro-blog {
  padding: 60px 20px;
  text-align: center;
  background: #ffffffbd;
  /* fondo suave para separar visualmente */
  margin-top: 10px;
  /* corrige el salto si lo deseas */
}

.intro-blog h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.intro-blog p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-top: 50px;
  padding-bottom: 80px;
}

.blog-entry {

  border-radius: 7px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  padding-top: 160px;
  /* altura visible del fondo */

  min-height: 450px;
  /* aumenta o reduce a tu gusto */
}

.blog-entry:nth-child(1) {
  background-image: url('salon.webp');
}

.blog-entry:nth-child(2) {
  background-image: url('iluminacion.webp');
}

.blog-entry:nth-child(3) {
  background-image: url('blog-3.webp');
}

.blog-entry:nth-child(4) {
  background-image: url('blog-4.jpg');
}

.blog-entry:nth-child(5) {
  background-image: url('blog-5.jpg');
}

.blog-entry:nth-child(6) {
  background-image: url('blog-6.jpg');
}

.blog-entry:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.blog-entry h2 {
  margin-top: 0;
  color: rgb(0, 71, 36);
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.596);
  border-radius: 0.25em;
}

.read-more {
  align-self: flex-start;
  background-color: rgb(0, 121, 60);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #077a4c;
}


@media (max-width: 768px) {
  .bloques-texto {
    grid-template-columns: 1fr;
  }
}


footer {
  background-color: #f7f7f7;
  /* fondo claro elegante */
  color: #333;
  /* texto gris oscuro */
  font-family: "Poppins", sans-serif;
  padding: 40px 20px 20px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  color: #222;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.footer-links,
.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #222;
}

.footer-links a,
.footer-contact p {
  color: #555;
  text-decoration: none;
  margin-bottom: 6px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0a5;
  /* color sutil para hover */
}

.footer-social a {
  font-size: 1.2rem;
  color: #555;
  margin-right: 10px;
  transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
  color: #0a5;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #777;
}

/* Responsive: adapta columnas en móviles */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-links,
  .footer-contact,
  .footer-social {
    align-items: center;
    text-align: center;
  }

  .footer-social a {
    margin: 0 8px;
  }
}

/* Responsive */
@media (max-width: 800px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links,
  .footer-contact,
  .footer-social {
    align-items: center;
  }

  .footer-social a {
    margin: 0 10px;
  }
}

@media (max-width: 800px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav a {
    display: inline-block;
    margin: 0 10px;
  }

  .footer-social a {
    margin: 0 8px;
  }
}