/* styles.css */

/* Tipografía y colores base */
body {
  font-family: math; /*'Georgia', serif;*/
  color: #333;
  background-color: #fff;
  scroll-behavior: smooth;
}

/* Paleta de colores corporativa */
:root {
  --primary-green: #1b3b2a;
  --light-green: #2f5943;
  --soft-gray: #f7f7f7;
  --accent-color: #c6a87d;
}

/* HEADER y NAV */
.navbar {
  background-color: rgba(27, 59, 42, 0.6);
  padding: 0rem 2rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand img {
  height: 50px;
}

.navbar.scrolled {
  background-color: var(--primary-green);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
  color: white !important;
}

.navbar.scrolled .nav-link:hover {
  color: var(--accent-color) !important;
}

.navbar:not(.scrolled) .nav-link {
  color: white !important;
}

.navbar:not(.scrolled) .nav-link:hover {
  color: var(--accent-color) !important;
}

.logo-text {
  color: white;
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
  font-weight: bold;
  line-height: 1.1;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.navbar.scrolled .logo-text {
  color: white;
}

.nav-link {
  color: var(--primary-green) !important;
  font-weight: 700;
  transition: color 0.3s ease;
  font-size: larger;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.navbar .nav-link:hover {
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* HERO SECTION */
.hero-section {
  background: url('../img/hero-placeholder.webp') no-repeat center center/cover;
  color: white;
  height: 90vh;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0 15%;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}

.hero-section p {
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: justify;
}

.hero-section .container {
  background-color: rgba(198, 168, 136, 0.40); /* #C6A888 con 85% opacidad */
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 707px;
  backdrop-filter: blur(2px); /* opcional para dar un toque más elegante */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top:40px;
}


.hero-section h1,
.hero-section p {
  color: #1b3b2a; /* verde institucional con transparencia */
  text-shadow:
    2px 2px 6px rgb(255 255 255 / 50%),
	0px 0px 3px rgb(255 255 255 / 30%);
}

.hero-btn {
  margin-top: 2rem;
  background-color: var(--accent-color);
  border: none;
  color: #1b3b2a;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.hero-btn:hover {
  background-color: #b38b66;
}

/* SECCIONES */
section {
  padding: 80px 0;
}

section:nth-of-type(even) {
  background-color: #fff8f5;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 40px;
}

/* SERVICIOS */
.service-box {
  padding: 2rem;
  text-align: center;
}

.service-box img {
  border-radius: 6px;
}

.service-box h4 {
  margin-top: 1rem;
  color: var(--primary-green);
}

/* QUIÉNES SOMOS */
#quienes-somos img {
  border-radius: 8px;
}

/* TESTIMONIOS */
.testimonial {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin: 1rem;
}

/* FORMULARIO DE CONTACTO */
.contact-form input,
.contact-form textarea {
  border-radius: 0;
  border: 1px solid #ccc;
}

.contact-form button {
  background-color: var(--primary-green);
  color: white;
  padding: 0.5rem 1.25rem;
  border: none;
}

.contact-form button:hover {
  background-color: var(--light-green);
}

/* FOOTER */
footer {
  background-color: var(--primary-green);
  color: white;
  padding: 15px 0;
  text-align: center;
}

footer a {
  color: white;
  margin: 0 10px;
  font-size: 1.25rem;
  transition: color 0.3s ease;
  text-decoration: none !important;
}

footer a:hover {
  color: var(--accent-color);
}

footer .bi {
  font-size: 1.5rem;
  margin: 0 10px;
  vertical-align: middle;
}

footer .powered-by img {
  margin: -5px;
  vertical-align: middle;
}


/* ───────────── MEDIA QUERIES RESPONSIVAS ───────────── */

@media (max-width: 1200px) {
  .hero-section {
    padding: 15% 10% !important;
  }
}

@media (max-width: 992px) {
  .service-box {
    margin-bottom: 2rem;
  }

  #quienes-somos .row {
    flex-direction: column;
  }

  #quienes-somos .col-md-6:first-child {
    margin-bottom: 2rem;
  }

  .hero-section {
    padding: 15% 5% !important;
    height: auto;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .logo-text {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.3;
    text-align: left;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 10px 0;
  }

  .hero-section {
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .hero-section .container {
    max-width: 100%;
    padding: 1.5rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-btn {
    width: 100%;
    font-size: 1rem;
  }

  #contacto .row {
    flex-direction: column;
  }

  .contact-form {
    margin-bottom: 2rem;
  }

  .testimonial {
    margin: 1rem 0;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .navbar-nav .nav-link {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
