: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;
}
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;
}


/* 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%;
}

/* 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;
}

/* Navegación */
#nav {
  display: flex;
  justify-content: flex-end; /* alinea los enlaces a la derecha */
  flex: 1; /* ocupa el espacio restante */
  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;
  color: #000;
}

/* ====== 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;
  }
}
.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-overlay h1 {
    font-size: 4rem;
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 12px 28px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s;
}

.btn-cta:hover {
    background: #eaeaea;
}
.pagina-ficticia {
  background-color: #fadd5d;
  padding: 5px;
  text-align: center;
}


/* ====== HERO ====== */
.blog-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  background-image: url('contacto.webp');
  background-size: cover;
  background-repeat: no-repeat; /* evita que se repita */
  background-position: center 60%; /* centrada horizontal y verticalmente */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #2b2b2b;
  overflow: hidden;
}

/* texto del hero */
.blog-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%); /* 👈 ajusta verticalmente (puedes probar -50%) */
  text-align: center;
  color: #000;
  background: rgba(255,255,255,0.6); /* opcional: mejora legibilidad */
  padding: 1rem 2rem;
  border-radius: 8px;
}

.blog-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.blog-hero-content p {
  font-size: 1.1rem;
}
/* Asegura que lo que sigue se vea encima */
main, section, footer {
  position: relative;
  z-index: 2;
}
/* Botones de navegación */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    font-size: 2rem;
    padding: 0.3em 0.6em;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 3;
}

.prev:hover,
.next:hover {
    background: rgba(255, 255, 255, 0.9);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

main.contacto {
  display: flex;
  flex-direction: row;      /* Asegura disposición horizontal */
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
    flex: 1 1 45%;
    min-width: 350px;
    padding: 2rem;
}

.contact-info h2 {
    color: #222;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info a {
    color: #007b7b;
    text-decoration: none;
    font-weight: 600;
}

.contact-form {
    flex: 1 1 40%;
  min-width: 350px;
  max-width: 500px; /* <-- aquí limitamos el ancho */
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 0 auto; /* centrado visual */
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-top: 1rem;
}

input,
textarea,
select {
    margin-top: 0.5rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

button {
    margin-top: 1.5rem;
    padding: 0.9rem;
    background-color: #007b7b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #005f5f;
}

/*boton subir arriba*/
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #111;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  transition: 0.3s ease;
  z-index: 999;
}
#backToTop:hover {
  background: #444;
}

@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) {
  .blog-hero {
    height: 55vh;
    background-size: cover; /* para que no quede mucho espacio vacío */
  }

  .blog-hero-content {
    transform: translate(-50%, -50%);
    padding: 0.8rem 1.5rem;
  }

  .blog-hero-content h1 {
    font-size: 1.8rem;
  }
}
@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;
    }
}