/* ==========================
   ESTILOS BASE / GLOBALES
========================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
} 

html, body { 
  height: 100%; 
} 

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================
   HEADER Y NAVEGACIÓN
========================== */
header.header {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
  position: relative;
  margin: 2% 0;
}

.logo img {
  max-width: 180px;
  height: auto;
  padding-left: 5%;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  transition: all 0.3s ease-in-out;
}

.nav-links li a {
  text-decoration: none;
  color: #2d6a4f;
  position: relative;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #6eaa89;
  transition: all 0.3s ease-in-out;
}

.nav-links li a:hover::after {
  width: 100%;
  left: 0;
}

/* 🚫 Oculto Login y Sign Up */
.auth-buttons {
  display: none !important;
}

/* ==========================
   HAMBURGUESA (RESPONSIVE)
========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: #2d6a4f;
  border-radius: 2px;
}

/* ==========================
   ABOUT US
========================== */
.imagenes-nosotros {
    display: flex;
    justify-content: center;  
    align-items: center;      
    gap: 3%;                
    flex-wrap: wrap;      
}

.imgesc {
    height: auto;             
    border-radius: 8px;      
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
}

.imgesc:hover{
  transform: scale(1.05);
  transition: transform 0.4s ease, background-color 0.4s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tituloi{
  font-size: 250%;
  color: #2d6a4f;
  padding-bottom: 5%;
}

.bodyinfo{
  background-color: #36624a;
}

/* ==========================
   HERO / INICIO
========================== */
.hero {
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  color: #2d6a4f;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.btn-start {
  background-color: #2d6a4f;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

.btn-start:hover {
  background-color: #1b4332;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ==========================
   MAIN / SECCIONES
========================== */
main {
  padding: 40px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section {
  display: none; /* se activa con JS */
  background: #ffffffdd; /* semitransparente */
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.active {
  display: block;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

section h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1b4332;
  position: relative;
}

section h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: #4a7c59;
  display: block;
  margin-top: 6px;
  border-radius: 2px;
}

section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

section ul, section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================
   FORMULARIO / CALCULADORA
========================== */
label {
  display: inline-block;
  background: #f5f9f6;
  padding: 10px 15px;
  margin: 5px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  border: 1px solid #d1e0d3;
  user-select: none;
}

label:hover {
  color: #4a7c59;
  transform: translateY(-3px);
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + label {
  background-color: #2f5d3d;
  border-color: #2f5d3d;
  color: #f5f9f6;
}

button.siguiente, button.boton-magico {
  background-color: #4a7c59;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button.siguiente:hover, button.boton-magico:hover {
  background-color: #2f5d3d;
  transform: scale(1.05);
}

button.siguiente:active, button.boton-magico:active {
  transform: scale(0.97);
}

.mensaje-error {
  color: red;
  margin-top: 8px;
  font-size: 0.9rem;
}

#resultado {
  display: none;
  margin-top: 20px;
  border: 2px solid #4a7c59;
  background-color: #e6f2e9;
  color: #2f5d3d;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(74,124,89,0.3);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ==========================
   INFORMACIÓN / SOBRE NOSOTROS
========================== */
.info {
  padding: 3%;
}

li::marker {
  color: transparent;
}

/* ==========================
   FOOTER
========================== */
footer {
  background: #1b4332;
  color: white;
  font-family: 'Raleway', sans-serif;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-top: auto;
  min-height: auto;
}

footer iframe {
  height: 100px;
  width: 200px;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
}

footer .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

footer h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

footer h3 {
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0 0 8px 0;
  opacity: 0.8;
}

footer .contacto {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

footer .contacto a, footer .contacto div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

footer .contacto a:hover {
  color: #a5d6a7;
}

footer .contacto img {
  width: 16px;
  height: 16px;
}

footer p {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 6px;
  user-select: none;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  /* Ya no aplicamos nada a auth-buttons porque está oculto globalmente */
  .hamburger {
    display: flex;
  }

  header nav {
    position: static;
    transform: none;
  }

  header .nav-container {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  button.siguiente, button.boton-magico {
    width: 100%;
  }
  label {
    font-size: 0.95rem;
  }
  footer iframe {
    width: 100%;
    height: 150px;
  }
}
