/* ===========================================================
   Transmata Monteverde - Modern Styles
   Author: Luis GMO Molina & Kendall Mata
   =========================================================== */



   /*--------------------------------------------------------------------- File Name: style.css ---------------------------------------------------------------------*/


/*--------------------------------------------------------------------- import Fonts ---------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');




/*--------------------------------------------------------------------- CSS ---------------------------------------------------------------------*/



:root {
  --green: #2f7a44;
  --green-dark: #245e34;
  --muted: #6b6b6b;
  --card-shadow: 0 8px 24px rgba(19, 19, 19, 0.08);
  --radius: 12px;
  --max-width: 1100px;
}

/* RESET / BASE */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #1f1f1f;
  background: #fff;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.topbar {
  background: linear-gradient(180deg, rgba(47, 122, 68, 0.06), rgba(47, 122, 68, 0));
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);

  position: fixed; /* cambio de sticky → fixed */
  top: 0;
  left: 0;         /* asegurar que esté pegada al lado izquierdo */
  width: 100%;     /* ocupar todo el ancho */
  z-index: 40;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Ajustar contenido para que no quede debajo del topbar */
body {
  padding-top: 70px; /* o la altura real de tu navbar */
}


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 72px;
  height: auto;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  color: var(--green-dark);
  letter-spacing: 1px;
}
.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}
.menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: #234;
  transition: all 0.18s;
}
.menu a:hover {
  background: rgba(47, 122, 68, 0.06);
}
.cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: var(--card-shadow);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.hamburger div {
  width: 22px;
  height: 2px;
  background: #333;
  margin: 4px 0;
  border-radius: 2px;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background-image: url('../images/3busetasparqeo.jpg');
  background-size: cover;
  background-position: center;
  padding: 70px 0 64px;
  position: relative;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.48));
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 980px;
}
.hero h2 {
  font-size: 34px;
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
}
.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
}
.hero .hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
}
.btn-primary {
  background: var(--green);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
}

/* ===========================================================
   SECTIONS / CARDS
   =========================================================== */
.section {
  padding: 40px 0;
}
.section h3 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--green-dark);
}
.section p.lead {
  color: var(--muted);
  margin: 0 0 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(19, 19, 19, 0.08);
}
.card img {
  border-radius: 10px;
  height: 170px;
  object-fit: cover;
  width: 100%;
}
.card h4 {
  margin: 10px 0 6px;
  font-size: 16px;
  color: #234;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.card .badge {
  display: inline-block;
  margin-top: 10px;
  background: var(--green-dark);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
}
.about-grid img {
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

/* ===========================================================
   WHY CHOOSE US
   =========================================================== */
.why {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.why-item {
  flex: 1;
  min-width: 200px;
  background: #f8fff8;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(47, 122, 68, 0.06);
}

/* ===========================================================
   GALLERY
   =========================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Se adapta a pantallas pequeñas */
  gap: 8px;
  overflow: hidden; /* Evita desbordes horizontales */
}

/* CSS DE VIDEO AL FINAL */

.gallery img {
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===========================================================
   CONTACT / FOOTER
   =========================================================== */
.contact-box {
  background: linear-gradient(180deg, #fff, #f7fdf7);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.contact-left {
  flex: 1;
}
.contact-right {
  width: 300px;
  min-width: 220px;
}
.contact-right a.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}
footer {
  margin-top: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px; /* separa los íconos */
}

.socials img {
  width: 34px;
  height: 34px;
  margin-right: 8px;
  opacity: 0.95;
}

/* ===========================================================
   WHATSAPP FLOATING BUTTON
   =========================================================== */
.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(36, 94, 52, 0.28);
  z-index: 60;
}
.whatsapp img {
  width: 30px;
  height: 30px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .brand h1 {
    display: none;
  }
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero h2 {
    font-size: 26px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===========================================================
   MOBILE MENU PANEL
   =========================================================== */

/* Contenedor principal del menú móvil */
.mobile-menu-panel {
  position: fixed; /* Fijo en la pantalla, no se mueve al hacer scroll */
  top: 0;          /* Alineado al top de la ventana */
  right: 0;        /* Pegado al lado derecho de la ventana */
  width: 250px;    /* Ancho del panel */
  height: 100%;    /* Ocupa toda la altura de la pantalla */
  background: #fff; /* Fondo blanco */
  box-shadow: -4px 0 12px rgba(0,0,0,0.1); /* Sombra en el lado izquierdo */
  transform: translateX(100%); /* Se mueve fuera de la pantalla al inicio (100% a la derecha) */
  transition: transform 0.3s ease; /* Animación suave al abrir/cerrar */
  z-index: 1000; /* Encima de otros elementos */
  overflow-y: auto; /* Permite scroll si el contenido es más alto que la pantalla */
}

/* Clase que activa el menú (cuando está visible) */
.mobile-menu-panel.active {
  transform: translateX(0); /* Lo mueve a la posición visible */
}

/* Estilos de los enlaces dentro del panel */
.mobile-panel-inner a {
  display: block;          /* Cada enlace ocupa toda la línea */
  padding: 12px 16px;      /* Espaciado interno de los enlaces */
  text-decoration: none;   /* Quita subrayado */
  color: #333;             /* Color de texto */
}

/* Hover de los enlaces */
.mobile-panel-inner a:hover {
  background: #f0f0f0; /* Fondo gris claro al pasar el mouse */
}

/* Cuando el panel está activo, se desliza hacia dentro */
.mobile-menu-panel.active .mobile-panel-inner {
  transform: translateX(0);
}

/* Estilo de los enlaces dentro del panel */
.mobile-panel-inner a {
  display: block;            /* Cada enlace ocupa toda la línea */
  padding: 12px 6px;         /* Espaciado interior */
  border-radius: 8px;        /* Bordes redondeados */
  color: #234;               /* Color del texto */
  font-weight: 600;          /* Texto un poco más grueso */
  text-decoration: none;     /* Sin subrayado */
}



/* ===========================================================
   GALLERY
   =========================================================== */

/* Hack específico para Safari iOS */
@supports (-webkit-touch-callout: none) {
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .gallery video {
    flex: 1 1 calc(50% - 8px);
    height: 200px;
  }
}

/* ✅ Safari iPhone Fix: control total del tamaño del video */
.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #000;

  /* Relación de aspecto: prueba la que funcione mejor  5 / 4 → un poco más alto que 4:3, 3 / 2 → más alto aún, 8 / 5 → muy cerca de 16:10, un buen balance entre ancho y alto*/
  aspect-ratio: 5 / 4;   /* 4:3 clásico (casi cuadrado) */
  /* aspect-ratio: 16 / 9;  Pantalla ancha estándar */
  /* aspect-ratio: 3 / 2;   Ligeramente más alto que 16:9 */
  /* aspect-ratio: 1 / 1;   Cuadrado */
  
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;              /* Mantiene el video lleno */
  object-position: center center; /* 🔸 Centra el recorte */
  display: block;
}

/* Evita scroll horizontal general */
html, body {
  overflow-x: hidden;
}

/* Galería responsiva */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}





/* --- PHOTOS PAGE --- */

.small-hero {
  background: url('images/monteverde-cover.jpg') center/cover no-repeat;
  height: 40vh;
  position: relative;
}

.small-hero .overlay {
  background: rgba(0,0,0,0.4);
  color: #fff;
  text-align: center;
  padding-top: 10%;
}

.instagram-section {
  text-align: center;
  padding: 3em 1em;
  background: #f9f9f9;
}

.instagram-section iframe {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.instagram-section .btn {
  margin-top: 1em;
  display: inline-block;
  padding: 0.7em 1.5em;
  background: #006837;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.instagram-section .btn:hover {
  background: #00994d;
}

/* Gallery grid */
.gallery-section {
  padding: 4em 2em;
  text-align: center;
}
.gallery-section h2 {
  margin-bottom: 1em;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Video grid */
.video-section {
  background: #fff;
  padding: 4em 2em;
  text-align: center;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 1.5em;
}
.video-card video {
  width: 100%;
  max-height: 650px; /* Ajusta la altura máxima a tu gusto */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: cover; /* O 'contain', según prefieras */
}


