:root {
  --primary-green: #1a4d2e;
  --secondary-red: #c62828;
  --accent-beige: #f5f5dc;
  --text-dark: #333333;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}

h1,
h2,
h3,
h4,
.brand-text,
.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* --- NAVBAR & GENERAL --- */
.navbar {
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-img {
  height: 90px;
  width: auto;
  transition: height 0.3s ease;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar.scrolled .logo-img {
  height: 70px;
  filter: none;
}

.drop-shadow-logo {
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.15));
}

.navbar.scrolled .navbar-brand {
  color: var(--primary-green);
}

.nav-link {
  color: white !important;
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-link {
  color: var(--text-dark) !important;
  text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-beige) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--secondary-red) !important;
  text-shadow: none;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar.scrolled .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-custom-outline {
  border: 2px solid white;
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .btn-custom-outline {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background-color: transparent;
}

.btn-custom-outline:hover {
  background-color: var(--secondary-red);
  border-color: var(--secondary-red);
  color: white;
}

/* --- HERO & SECTIONS --- */
.hero-section {
  background:
    linear-gradient(rgba(26, 77, 46, 0.85), rgba(26, 77, 46, 0.6)), url('../img/banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  margin-top: -116px;
  padding-top: 116px;
}

.btn-custom-lg {
  background-color: var(--secondary-red);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s;
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}

.btn-custom-lg:hover {
  background-color: #a31f1f;
  transform: translateY(-3px);
  color: white;
}

.section-title {
  color: var(--primary-green);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-bg {
  background-color: var(--accent-beige);
}

.video-container {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: white;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.text-success {
  color: var(--primary-green) !important;
}

/* --- ESTILOS LOGIN (NUEVOS) --- */
.h-100vh {
  height: 100vh;
}

.bg-login-image {
  background: url('../img/banner.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.overlay-login {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 77, 46, 0.9); /* Verde corporativo transparente */
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  z-index: 10;
}

.btn-success {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-success:hover {
  background-color: #143d24;
  border-color: #143d24;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-green);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.25rem rgba(26, 77, 46, 0.25);
}

/* --- HERO SECTION PROFESIONAL --- */
.hero-section {
  position: relative;
  /* Degradado verde corporativo sobre la imagen */
  background:
    linear-gradient(135deg, rgba(26, 77, 46, 0.95) 0%, rgba(26, 77, 46, 0.7) 100%),
    url('../img/banner-principal.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Efecto Parallax elegante al hacer scroll */
  min-height: 90vh; /* Ocupa casi toda la pantalla */
  display: flex;
  align-items: center;
  margin-top: -116px; /* Para que el navbar quede encima */
  padding-top: 116px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2; /* Asegura que el texto esté sobre el fondo */
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Sombra suave para realzar */
  letter-spacing: -1px;
}

.hero-lead {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* Botón mejorado para el banner */
.btn-hero {
  background-color: var(--secondary-red);
  color: white;
  padding: 1.2rem 3.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px -10px rgba(198, 40, 40, 0.5); /* Sombra difuminada */
  transition: all 0.3s ease;
  border: none;
}

.btn-hero:hover {
  background-color: #a31f1f;
  transform: translateY(-5px); /* Se eleva al pasar el mouse */
  box-shadow: 0 20px 30px -10px rgba(198, 40, 40, 0.7);
  color: white;
}

/* Separador Ondulado en la parte inferior */
.custom-shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(136% + 1.3px);
  height: 150px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--accent-beige); /* Del mismo color que la sección 'Nosotros' */
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 160px;
    padding-bottom: 100px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-lead {
    font-size: 1.2rem;
  }
  .custom-shape-divider-bottom svg {
    height: 80px; /* Ola más pequeña en móvil */
  }
}

@media (max-width: 991px) {
  .hero-section {
    margin-top: 0;
    padding-top: 8rem;
    height: auto;
    padding-bottom: 8rem;
  }
  .navbar {
    background-color: var(--primary-green);
    padding: 0.5rem 0;
  }
  .navbar.scrolled {
    background-color: white;
  }
  .logo-img {
    height: 60px;
  }
  .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
    text-shadow: none;
  }

  /* Login Mobile Adjustments */
  .h-100vh {
    height: auto;
    min-height: 100vh;
  }
}
