/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
  --verde_iconos_menu: #7A9E7E;
  --beige: #F7F3E9;
  --gris: #5A5A5A;
  --negro: #333333;
  --blanco: white;
  --verde2: rgba(12, 67, 19, 0.7);
}

/* =========================================================
   ESTILOS BASE
========================================================= */
html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--beige);
  color: var(--gris);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1;
}
/* =========================================================
   HEADER
========================================================= */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 50px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* LOGO */
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 55px;
  height: auto;
  filter: none;
  opacity: 0.95;
}

/* Menú centrado */
.menu-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* MENÚ */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  color: var(--blanco);
  text-decoration: none;
  margin: 0 18px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

nav a:hover {
  color: var(--verde_iconos_menu);
}

/* ÍCONOS */
i {
  font-size: 1.1rem;
  color: var(--verde_iconos_menu);
  line-height: 1;
  display: inline-block;
  opacity: 0.95;
}

/* ===== MENÚ CLARO PARA PÁGINAS CON FONDO BEIGE ===== */
.contact-page nav a {
  color: var(--gris);
  text-shadow: none;
}

.contact-page nav a:hover {
  color: var(--verde_iconos_menu);
}

.contact-page i {
  color: var(--verde_iconos_menu);
}

/* =========================================================
   BANNER (INICIO)
========================================================= */
.banner {
  height: calc(100vh + 100px);
  background-image: url('../img/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* 🔹 Fondo fijo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

/* Oscurece el fondo */
.banner::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

/* Botón principal */
.button {
  display: inline-block;
  background-color: var(--verde2);
  color: white;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 25px;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #6b8e70;
}

/* =========================================================
   CONTACTO (ESTRUCTURA Y FORMULARIO)
========================================================= */

/* Sección principal de contacto */
.contact {
  min-height: calc(100vh - 200px); 
  padding-top: 140px;
  padding-bottom: 100px;
  background-size: cover;
  display: flex;
  align-items: center;       
  justify-content: center;   
  flex-direction: column;  
  box-sizing: border-box;
}


/* Página de contacto */
.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f7f5, #e6efe8);
}


.contact-page main {
  flex: 1;
}

.contact-page .contact {
  padding-top: 130px;
  padding-bottom: 60px;
}

.contact-page footer {
  margin-top: auto;
}

/* Contenedor del formulario */
.contact-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 50px 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.contact-container h2 {
  color: var(--verde_iconos_menu);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-container p {
  color: var(--gris);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* === Inputs === */
.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--negro);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-container input::placeholder,
.contact-container textarea::placeholder {
  color: #aaa;
  font-weight: 300;
}

.contact-container input:focus,
.contact-container textarea:focus {
  border-color: var(--verde_iconos_menu);
  box-shadow: 0 0 10px rgba(122, 158, 126, 0.3);
  background-color: #fff;
}

/* === Botón del formulario === */
.contact-container button {
  background: linear-gradient(135deg, var(--verde_iconos_menu), var(--verde2));
  border: none;
  border-radius: 30px;
  padding: 14px 40px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(122, 158, 126, 0.3);
}

.contact-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(122, 158, 126, 0.45);
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 25px 0;
  background: rgba(12, 67, 19, 0.7);
  backdrop-filter: blur(4px);
  color: white;
  text-align: center;
  width: 100%;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  margin-top: auto;
}

/* Texto del footer */
footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #F7F3E9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Íconos sociales */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

footer .social-icons a i {
  color: #F7F3E9 !important; 
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icons a:hover i {
  color: white !important; 
  transform: scale(1.25);
}


/* =========================================================
   AJUSTES DE LAYOUT (CONTACTO + FOOTER)
========================================================= */

/* Evita scroll lateral */
html, body {
  overflow-x: hidden;
}

/* Asegura que el body use todo el alto y coloque el footer abajo */
body.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f7f5, #e6efe8);
}

/* Contenedor de contacto centrado y sin desplazamiento lateral */
.contact {
  flex: 1; /* empuja el footer hacia abajo */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 140px 20px 100px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

/* El formulario centrado */
.contact-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 50px 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}


/* =========================================================
   AJUSTES FINALES FORMULARIO CONTACTO (LIMITAR ANCHO)
========================================================= */

/* Mantiene todo dentro del recuadro */
.contact-container {
  box-sizing: border-box;
  overflow: hidden; /* evita que algo sobresalga */
}

/* Los inputs nunca se salen del borde */
.contact-container input,
.contact-container textarea,
.contact-container button {
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

/* Asegura que los bordes interiores estén bien alineados */
.contact-container form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px; /* espacio uniforme entre campos */
}

/* Ajuste del botón */
.contact-container button {
  align-self: center;
  width: 100%;
  max-width: 250px; /* límite visual más elegante */
}



