/* ------------------------------
    Fuentes Gotham Book / Bold
------------------------------ */
@font-face {
  font-family: 'Gotham';
  src: url('./fonts/Gotham-Book.woff2') format('woff2'),
       url('./fonts/Gotham-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('./fonts/Gotham-Bold.woff2') format('woff2'),
       url('./fonts/Gotham-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Variables de color */
:root {
  --bg: #002823;
  --text: #fff;
  --accent: #4A4033;
}

/* Reset y base */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Ajuste de scroll para el navbar fijo */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; 
}

/* ===== Navbar fijo ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: inline-flex;
  gap: 15px;
  align-items: center;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
}

.navbar a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
  padding: 5px 0;
}

.navbar a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.navbar a:hover {
  color: var(--accent);
}

.navbar .sep {
  color: var(--accent);
  opacity: 0.9;
  font-weight: 700;
}

/* ===== Secciones ===== */
.section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 80px 10%;
  flex-wrap: wrap;
  gap: 40px;
}

/* ===== Hero Principal (Diseño 01.jpg) ===== */
.hero-main {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: -10px; 
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url('fondo.jpg'); 
  background-size: cover;
  background-position: center center;
  
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}


/* ===== Who We Are ===== */
.kicker {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 18px;
}

.lead {
  font-size: 18px;
  margin-bottom: 18px;
}

.text-content {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
}

.brand {
  flex: 1;
  text-align: center;
  min-width: 250px;
  padding-top: 20px;
}

.brand-full-logo {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ======================== */
/* ===== Gallery (CORREGIDO) ===== */
/* ======================== */
.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 10%;
}

.gallery img {
  width: 30%;
  min-width: 250px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* ===== What We Do ===== */
.what-we-do {
  align-items: center;
}

.what-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services li {
  margin-bottom: 16px;
  font-size: 16px;
}

.services li strong {
  font-weight: 700;
}

.dot {
  color: var(--accent);
  margin-right: 8px;
}

.image-side img {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* ======================== 
   Estilos Slider (Carrusel - Diseño 04.jpg)
======================== */

.slider-container {
  position: relative;
  width: 80%;
  max-width: 1200px;
  margin: 80px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out; 
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 70vh; 
  max-height: 700px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav:hover {
  background-color: #fff;
  color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}


/* ===== Contacto y Footer (Diseño 05.jpg) ===== */
.contact-wrapper {
  /* Contenedor principal */
}

.contact-info-top {
  background: var(--bg);
  align-items: flex-start;
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(74, 64, 51, 0.1);
}

.contact-details {
  flex: 2;
  min-width: 300px;
}
.contact-details .kicker {
  margin-bottom: 25px;
}
.contact-details p {
  margin: 5px 0;
  font-size: 16px;
}

.social-icons {
  flex: 1;
  min-width: 150px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
}

/* El enlace <a> ahora es un contenedor transparente */
.icon-link {
  display: block; /* Hacemos que el enlace sea un bloque */
  width: 45px;
  height: 45px;
  text-decoration: none;
  border-radius: 50%; /* Mantenemos el contenedor circular */
  transition: transform 0.2s ease;
}

/* Y AÑADE esta nueva regla para la imagen */
.icon-link img {
  width: 100%;  /* La imagen llena el 100% del enlace */
  height: 100%;
  display: block; /* Evita espacios en blanco extra */
  border-radius: 50%; /* Asegura que la imagen sea redonda */
}

/* El 'hover' ahora solo aplica la transformación */
.icon-link:hover {
  transform: scale(1.05); 
}

.contact-form-bottom {
  background: var(--bg);
  color: var(--bg);
  padding-top: 1px;
  padding-bottom: 30px;
}

.footer-content {
  align-items: flex-start;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.form-wrapper {
  flex: 1.5;
  min-width: 300px;
}

.form-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 15px;
  color: var(--bg);
}

.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: none;
  border-radius: 0;
  font-family: 'Gotham', Arial, sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}

.form-wrapper textarea {
  resize: vertical;
}

.btn-submit-dark {
  background-color: var(--text);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-family: 'Gotham', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn-submit-dark:hover {
  background-color: #333;
}

.footer-logo-img {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding-top: 30px; 
}

.footer-copyright {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  padding: 20px 10%;
  border-top: 1px solid rgba(248, 241, 231, 0.2);
  margin-top: 30px;
}
.footer-copyright p {
  margin: 0;
}

/* ======================== 
   ===== Responsive =====
   (BLOQUE UNIFICADO Y CORREGIDO)
======================== */
@media (max-width: 900px) {
  .section {
    flex-direction: column;
    text-align: center;
  }

  /* --- ¡CORRECCIÓN DE CENTRADO AÑADIDA! --- */
  /* Centra el <aside class="brand"> en móvil */
  .brand {
    margin-left: auto;
    margin-right: auto;
  }

  .gallery img {
    width: 80%;
  }

  .image-side img {
    width: 80%;
    margin: 0 auto;
  }
  
  /* Estilos para el Contacto/Footer */
  .contact-info-top {
    flex-direction: column;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
    width: 100%;
    margin-top: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  /* Regla del footer que movimos aquí */
  .footer-brand {
    text-align: center;
    padding-top: 0;
  }

/* Reducimos el tamaño de los íconos sociales en móvil */
  .social-icons .icon-Mlink {
    width: 85px;
    height: 85px;
  }

/* =========================================
   MODO CLARO (Para páginas internas como Who We Are)
   ========================================= */
body.light-theme {
  background-color: #f8f6f2; /* El fondo crema */
  color: var(--bg); /* Invertimos: el texto ahora es el verde oscuro */
}

/* Forzamos que el Navbar siga siendo oscuro en páginas claras */
body.light-theme .navbar {
  background-color: var(--bg);
}

/* Ajustes específicos de tipografía para el tema claro */
body.light-theme h2,
body.light-theme p,
body.light-theme .lead {
  color: var(--bg); /* Verde oscuro #002823 */
}

/* Espaciado superior para compensar el navbar fijo en páginas internas */
.page-top-padding {
  padding-top: 140px;
}