/* ===========================================================
   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.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: 220px;
  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 */
}



/* =========================================
   CHRISTMAS THEME - TRANSMATA MONTEVERDE
   Elegant tropical: forest green + gold
   ========================================= */

:root {
  --christmas-green: #0c3b29;
  --christmas-green-light: #176443;
  --christmas-gold: #d8b766;
  --christmas-gold-light: #ffe6a0;
}

/* Top garland and lights */
.christmas-lights-bar {
  position: relative;
  height: 48px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #082b1d 0%,
    #145536 55%,
    #0b3825 100%
  );
  border-bottom: 2px solid var(--christmas-gold);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.christmas-garland {
  position: absolute;
  top: -12px;
  left: -2%;
  width: 104%;
  height: 42px;
  border-bottom: 3px solid #c7a65b;
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

.christmas-lights {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 2%;
}

.christmas-lights span {
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #ffe6a0;
  box-shadow: 0 0 8px 3px rgba(255, 218, 125, 0.65);
  animation: christmas-light-glow 2.2s ease-in-out infinite alternate;
}

.christmas-lights span:nth-child(3n) {
  background: #e7f2d0;
  box-shadow: 0 0 9px 3px rgba(231, 242, 208, 0.55);
  animation-delay: 0.6s;
}

.christmas-lights span:nth-child(3n + 1) {
  animation-delay: 1.1s;
}

@keyframes christmas-light-glow {
  from {
    opacity: 0.55;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Falling golden stars */
.christmas-sparkles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.christmas-star {
  position: absolute;
  top: -45px;
  left: var(--star-left, 15%);
  color: var(--christmas-gold-light);
  font-size: var(--star-size, 24px);
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 10px rgba(244, 212, 119, 0.7);
  animation: christmas-fall var(--star-duration, 14s) linear
    var(--star-delay, 0s) infinite;
  will-change: transform, opacity;
}

@keyframes christmas-fall {
  0% {
    transform: translate3d(0, -10px, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  75% {
    opacity: 0.65;
  }
  100% {
    transform: translate3d(35px, 85vh, 0) rotate(220deg);
    opacity: 0;
  }
}

/* Christmas message in the hero */
.christmas-hero-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 10px;
  color: var(--christmas-gold-light);
  text-align: center;
}

.christmas-hero-message p {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.christmas-hero-icon {
  color: var(--christmas-gold);
  font-size: 23px;
  animation: christmas-twinkle 2.5s ease-in-out infinite;
}

@keyframes christmas-twinkle {
  0%, 100% {
    opacity: 0.65;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.christmas-whatsapp {
  overflow: visible;
}

.whatsapp-santa-hat {
  position: absolute;
  top: -17px;
  right: -5px;
  z-index: 2;
  font-size: 25px;
  line-height: 1;
  transform: rotate(18deg);
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

/* Festive footer */
.christmas-footer-message {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 16px 0;
  padding: 14px 10px;
  border-top: 1px solid rgba(216, 183, 102, 0.65);
  color: var(--christmas-gold);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.christmas-footer-message span:first-child,
.christmas-footer-message span:last-child {
  color: var(--christmas-gold-light);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .christmas-lights-bar {
    height: 42px;
  }

  .christmas-lights span {
    flex-basis: 8px;
    width: 8px;
    height: 8px;
    margin-bottom: 7px;
  }

  .christmas-hero-message {
    gap: 7px;
    margin-top: 16px;
  }

  .christmas-hero-message p {
    font-size: 17px;
  }

  .christmas-hero-icon {
    font-size: 18px;
  }

  .christmas-footer-message {
    gap: 7px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .whatsapp-santa-hat {
    font-size: 22px;
  }
}

/* Accessibility: respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .christmas-lights span,
  .christmas-hero-icon,
  .christmas-star {
    animation: none !important;
  }

  .christmas-star {
    display: none;
  }
}



/* ===== NAVIDAD TRANSMATA: ENCABEZADO ===== */


/* ===== ENCABEZADO VERDE NAVIDEÑO ===== */

.topbar {
    position: relative;
    background: linear-gradient(
        180deg,
        #062b20 0%,
        #0b3a2b 100%
    ) !important;
    color: #ffffff;
    border-bottom: 1px solid rgba(226, 190, 100, 0.6);
    overflow: visible;
    isolation: isolate;
    z-index: 20;
}

/* El menú ocupa todo el ancho disponible */
.topbar .container.nav {
    position: relative;
    background: transparent !important;
    min-height: 100px;
    display: flex;
    align-items: center;
}

/* Textos del menú */
.topbar .brand h1,
.topbar .brand a,
.topbar .menu a {
    color: #ffffff;
}

.topbar .brand div {
    color: #e4d9b8 !important;
}

.topbar .menu a:hover {
    color: #f1ce78;
}

/* Corona sobre el encabezado verde */
.topbar .christmas-wreath {
    position: absolute;
    top: 0;
    left: max(8px, calc((100vw - 1400px) / 2));
    width: 145px;
    z-index: 25;
    pointer-events: none;
}

.topbar .christmas-wreath-image {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}

@media (max-width: 768px) {
    .topbar .container.nav {
        min-height: 80px;
    }

    .topbar .christmas-wreath {
        width: 80px;
        left: 4px;
    }
}


/* ===== FOOTER VERDE NAVIDEÑO ===== */

footer {
    background: linear-gradient(180deg, #0b3528 0%, #041f18 100%);
    color: #f7f4e8;
    border-top: 2px solid #c6a454;
    padding-top: 30px;
    padding-bottom: 24px;
}

footer a {
    color: #e8c66e;
}

footer a:hover {
    color: #ffffff;
}

/* Texto decorativo del footer */

.christmas-footer-message {
    color: #f1ce78;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 17px;
    margin: 0 0 22px;
    letter-spacing: 0.3px;
}

/* Ajustes para móviles */

@media (max-width: 600px) {
    .christmas-footer-message {
        font-size: 14px;
        padding: 0 12px;
    }
}



/* Corona navideña realista */
.christmas-wreath {
    position: absolute;
    top: 0;
    left: max(8px, calc((100vw - 1400px) / 2));
    width: 145px;
    z-index: 20;
    pointer-events: none;
    animation: wreath-glow 3s ease-in-out infinite;
}

.christmas-wreath-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35));
}

@keyframes wreath-glow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(255, 205, 95, .25));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 205, 95, .65));
    }
}

@media (max-width: 768px) {
    .christmas-wreath {
        width: 85px;
        left: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-wreath {
        animation: none;
    }
}


/* Eliminar el espacio blanco superior */
html,
body {
    margin: 0;
    padding: 0;
}

/* Evitar que el encabezado deje una franja blanca */
.topbar {
    margin-top: 0 !important;
    background: linear-gradient(
        180deg,
        #062b20 0%,
        #0b3a2b 100%
    ) !important;
}

/* La corona comienza desde el borde superior del encabezado */
.topbar .christmas-wreath {
    top: 0;
}


