/* =========================================================
   GALAPAGOS POINT TRAVEL — HOME PAGE
   Portada inspirada en la estructura del sitio público actual.
   Todo el contenido dinámico procede de las tablas existentes.
   ========================================================= */

/* HERO / MAIN BANNER */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 590px;
    padding: 100px 24px 110px;
    overflow: hidden;
    isolation: isolate;
    background-color: #0b314b;
    background-image: linear-gradient(90deg, rgba(5,31,50,.72), rgba(5,31,50,.35) 65%, rgba(5,31,50,.2)), linear-gradient(0deg, rgba(5,31,50,.45), transparent 55%), url('../img/hero-galapagos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(0deg, rgba(4,26,43,.18), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(1100px, 100%); margin: 0 auto; text-align: left; }
.hero-content h2 { max-width: 780px; margin: 0 0 20px; color: #fff; font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: clamp(2.6rem,5.5vw,4.7rem); font-weight: 850; line-height: 1.04; letter-spacing: -.045em; text-shadow: 0 3px 18px rgba(0,0,0,.3); text-wrap: balance; }
.hero-content > p { max-width: 650px; margin: 0 0 34px; color: rgba(255,255,255,.96); font-size: clamp(1rem,1.6vw,1.2rem); line-height: 1.75; text-shadow: 0 2px 9px rgba(0,0,0,.25); }

/* SEARCH BAR */
.search-form { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.search-form input, .search-form select { width: 220px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; color: #334b5d; font-size: .94rem; }
.hero .search-form { display: flex; align-items: stretch; gap: 8px; width: min(100%, 1050px); margin-top: 28px; padding: 9px; border: 1px solid rgba(255,255,255,.7); border-radius: 5px; background: rgba(255,255,255,.97); box-shadow: 0 15px 40px rgba(0,0,0,.22); }
.hero .search-form input[type='text'] { flex: 1 1 230px; width: auto; height: 52px; padding: 0 16px; border: 1px solid #e0e7ec; border-radius: 3px; outline: none; background: #fff; color: #233e52; font-size: .94rem; }
.hero .search-form input[type='text']::placeholder { color: #788793; }
.hero .search-form select { flex: 0 1 190px; width: 190px; height: 52px; padding: 0 12px; border: 1px solid #e0e7ec; border-radius: 3px; outline: none; background: #fff; color: #435363; font-size: .9rem; cursor: pointer; }
.hero .search-form input:focus, .hero .search-form select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(8,126,139,.13); }
.hero .search-form .btn { flex: 0 0 auto; min-height: 52px; padding: 0 28px; border-radius: 3px; white-space: nowrap; font-size: .9rem; }

/* RECOMMENDED ACTIVITIES */
.activity-section { padding: 78px 0 82px; background: #f5f8fa; }
.activity-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.activity-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 220px; padding: 0 0 18px; overflow: hidden; border: 1px solid #e5ebef; border-radius: 9px; background: #fff; color: var(--primary-color); box-shadow: 0 3px 12px rgba(8,42,69,.035); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.activity-card:hover { transform: translateY(-4px); border-color: rgba(8,126,139,.45); box-shadow: var(--shadow-md); }
.activity-image { display: block; width: 100%; height: 150px; margin: 0 0 15px; object-fit: cover; object-position: center; background: #e8f3f5; transition: transform .3s ease; }
.activity-card:hover .activity-image { transform: scale(1.035); }
.activity-name { display: block; flex: 1; padding: 0 16px; color: var(--primary-color); font-size: .96rem; font-weight: 800; line-height: 1.35; }
.activity-arrow { position: absolute; right: 14px; bottom: 13px; color: var(--secondary-color); font-size: 1.15rem; font-weight: 700; transition: transform .2s ease; }
.activity-card:hover .activity-arrow { transform: translate(2px,-2px); }

/* TOURS / FEATURED PACKAGES */
#tours { width: 100%; max-width: none; margin: 0; padding: 82px max(24px, calc((100vw - 1200px) / 2)) 86px; scroll-margin-top: 95px; background: #fff; }
#tours > .section-title { margin-bottom: 42px; }
.tours-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; align-items: stretch; }
.tour-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e6ebef; border-radius: 5px; background: #fff; box-shadow: 0 5px 20px rgba(8,42,69,.065); transition: transform .25s ease, box-shadow .25s ease; }
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tour-card > img, .tour-card .tour-image img, .tour-card img { display: block; width: 100%; height: 245px; min-height: 245px; max-height: 245px; object-fit: cover; object-position: center; }
.tour-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 22px 24px; }
.tour-info .badge { display: inline-block; margin: 0 6px 9px 0; padding: 4px 9px; border: 0; border-radius: 3px; background: #eaf3f5; color: var(--secondary-color); font-size: .73rem; font-weight: 800; line-height: 1.4; }
.tour-categories { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 7px; }
.tour-info h3 { margin: 4px 0 10px; color: var(--primary-color); font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: 1.2rem; font-weight: 800; line-height: 1.35; }
.tour-info p { margin: 0 0 18px; color: #687987; font-size: .9rem; line-height: 1.75; }
.tour-info .price { margin: auto 0 17px; padding-top: 4px; color: var(--secondary-color); font-size: 1.4rem; font-weight: 850; line-height: 1.25; }
.tour-info .btn { width: 100%; margin-top: 0; }

/* WHY TRAVEL WITH US */
.reasons-section { position: relative; padding: 84px 0; overflow: hidden; background: var(--primary-deep); color: #fff; }
.reasons-section::before { position: absolute; top: -140px; right: -100px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ''; }
.reasons-layout { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 75px; align-items: center; }
.section-eyebrow-light { color: #f3bd42; }
.reasons-copy h2 { max-width: 500px; margin: 0 0 20px; color: #fff; font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: clamp(2rem,3.5vw,3.15rem); font-weight: 850; line-height: 1.12; letter-spacing: -.035em; }
.reasons-copy > p { max-width: 520px; margin: 0 0 28px; color: #d4e0e8; font-size: 1rem; line-height: 1.85; }
.reasons-copy .btn { min-width: 175px; }
.reasons-features { border-top: 1px solid rgba(255,255,255,.17); }
.reason-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.reason-number { color: #f3bd42; font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: 1.2rem; font-weight: 850; }
.reason-item h3 { margin: 0 0 5px; color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
.reason-item p { margin: 0; color: #c7d6df; font-size: .9rem; line-height: 1.7; }

/* GALLERY */
#galeria { width: 100%; max-width: none; margin: 0; padding: 82px max(24px, calc((100vw - 1200px) / 2)) 76px; scroll-margin-top: 100px; background: #f5f8fa; }
#galeria .section-title { margin-bottom: 35px; }
#galeria .home-gallery-slider { position: relative; width: 100%; height: 260px; margin: 0 auto; overflow: hidden; }
#galeria .home-gallery-track { display: flex; flex-direction: row; align-items: stretch; gap: 18px; width: 100%; height: 260px; margin: 0; padding: 4px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none; }
#galeria .home-gallery-track::-webkit-scrollbar { display: none; }
#galeria .home-gallery-slide { position: relative; flex: 0 0 calc(25% - 14px); width: calc(25% - 14px); min-width: calc(25% - 14px); height: 250px; min-height: 250px; max-height: 250px; margin: 0; padding: 0; overflow: hidden; border-radius: 5px; background: #dbe4e9; cursor: pointer; }
#galeria .home-gallery-image { display: block !important; width: 100% !important; height: 250px !important; min-width: 0 !important; min-height: 250px !important; max-width: none !important; max-height: 250px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 5px; object-fit: cover !important; object-position: center; transition: transform .4s ease; }
#galeria .home-gallery-slide:hover .home-gallery-image { transform: scale(1.05); }
#galeria .home-gallery-title { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; margin: 0; padding: 42px 15px 13px; background: linear-gradient(transparent,rgba(4,25,40,.8)); color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.35; }
#galeria .home-gallery-arrow { position: absolute; top: 50%; z-index: 10; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; min-width: 42px; min-height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(8,42,69,.78); color: #fff; font-size: 23px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
#galeria .home-gallery-arrow:hover { background: var(--secondary-color); }
#galeria .home-gallery-arrow.prev { left: 10px; }
#galeria .home-gallery-arrow.next { right: 10px; }
#galeria .home-gallery-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
#galeria .home-gallery-dot { width: 8px !important; height: 8px !important; min-width: 8px !important; min-height: 8px !important; max-width: 8px !important; max-height: 8px !important; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #b8c5cd; cursor: pointer; }
#galeria .home-gallery-dot.active { transform: scale(1.35); background: var(--secondary-color); }

/* LIGHTBOX */
#homeGalleryLightbox.home-gallery-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; width: 100vw; height: 100vh; padding: 30px; background: rgba(3,18,30,.96); }
#homeGalleryLightbox.home-gallery-lightbox.active { display: flex; }
#homeGalleryLightbox .home-gallery-lightbox-content { display: flex; align-items: center; justify-content: center; flex-direction: column; width: auto; max-width: 90vw; max-height: 90vh; margin: 0; padding: 0; }
#homeGalleryLightbox .home-gallery-lightbox-image { display: block !important; width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; max-width: 90vw !important; max-height: 82vh !important; object-fit: contain !important; border-radius: 4px; }
#homeGalleryLightbox .home-gallery-lightbox-title { margin-top: 15px; color: #fff; font-size: 1rem; font-weight: 700; text-align: center; }
#homeGalleryLightbox .home-gallery-lightbox-close { position: absolute; top: 20px; right: 30px; z-index: 20; width: 45px; height: 45px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
#homeGalleryLightbox .home-gallery-lightbox-arrow { position: absolute; top: 50%; z-index: 20; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 52px; cursor: pointer; transform: translateY(-50%); }
#homeGalleryLightbox .home-gallery-lightbox-arrow.prev { left: 25px; }
#homeGalleryLightbox .home-gallery-lightbox-arrow.next { right: 25px; }

/* GOOGLE REVIEWS EMBED */
.google-reviews-section { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding-top: 76px; padding-bottom: 78px; }
.google-reviews-section .elfsight-app-fb7741dc-2af8-483f-955e-a5aa29d6adda { width: 100%; min-height: 120px; }

/* BLOG */
#blog { width: 100%; max-width: none; margin: 0; padding: 78px max(24px, calc((100vw - 1200px) / 2)) 84px; background: #fff; scroll-margin-top: 95px; }
#blog .section-title { margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.blog-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e6ebef; border-radius: 5px; background: #fff; box-shadow: 0 4px 17px rgba(8,42,69,.055); transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card > a:first-child { display: block; overflow: hidden; background: #e2e9ed; }
.blog-card img { display: block; width: 100%; height: 220px; min-height: 220px; max-height: 220px; object-fit: cover; object-position: center; transition: transform .35s ease; }
.blog-card:hover img { transform: scale(1.035); }
.blog-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 220px; background: linear-gradient(135deg,var(--primary-color),var(--secondary-color)); color: #fff; font-size: 1.2rem; font-weight: 800; }
.blog-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 23px 24px; }
.blog-content h3 { margin: 0 0 10px; color: var(--primary-color); font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: 1.08rem; font-weight: 800; line-height: 1.45; }
.blog-content p { margin: 0; color: #6b7c88; font-size: .9rem; line-height: 1.75; }
.blog-content time { display: block; margin-bottom: 8px; color: var(--secondary-color); font-size: .78rem; font-weight: 800; }
.read-more { display: inline-block; margin-top: auto; padding-top: 18px; color: var(--secondary-color); font-size: .87rem; font-weight: 800; text-decoration: none; }
.read-more:hover { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.blog-empty-message { padding: 1.5rem; border: 1px dashed #cbd5e1; border-radius: 5px; background: #fff; }
.blog-all-link { display: flex; justify-content: center; margin-top: 32px; }

/* CONTACT */
.contact-section { position: relative; padding: 76px 24px 78px; background: #eaf2f5; color: var(--text-color); text-align: center; }
.contact-section .section-title { color: var(--primary-color) !important; }
.contact-section .container > p { max-width: 700px; margin: 0 auto 18px; color: #657785; }
.contact-info { margin-top: 22px; font-size: .98rem; line-height: 1.9; }
.contact-info p { margin: 8px 0; }
.contact-info a { overflow-wrap: anywhere; color: var(--secondary-color); font-weight: 700; }

/* Responsive layout */

/* WhatsApp CTAs and agency location map */
.reasons-whatsapp-cta { gap: 10px; }
.contact-section .contact-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 30px; align-items: stretch; margin-top: 34px; text-align: left; }
.contact-section .contact-details { padding: 26px; border: 1px solid rgba(11,37,69,.09); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(11,37,69,.07); }
.contact-section .contact-info { margin: 0 0 22px; font-size: .98rem; line-height: 1.8; }
.contact-section .contact-info p { margin: 0 0 15px; overflow-wrap: anywhere; }
.contact-section .contact-info a { color: var(--secondary-color); font-weight: 700; text-decoration: none; }
.contact-section .contact-info a:hover, .contact-map-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-section .contact-whatsapp-cta { display: inline-flex; margin: 0 0 15px; background: #168b52; border-color: #168b52; color: #fff; }
.contact-section .contact-whatsapp-cta:hover { background: #116d40; border-color: #116d40; }
.contact-section .contact-map-link { display: block; color: var(--secondary-color); font-weight: 800; text-decoration: none; }
.contact-section .contact-map { min-width: 0; min-height: 360px; overflow: hidden; border-radius: 14px; background: #dbe5e9; box-shadow: 0 8px 28px rgba(11,37,69,.10); }
.contact-section .contact-map iframe { display: block; width: 100%; min-height: 360px; border: 0; }

@media (max-width: 1050px) {
    .activity-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    #tours, #galeria, #blog { padding-right: 28px; padding-left: 28px; }
    .tours-grid, .blog-grid { gap: 20px; }
    .tour-card > img, .tour-card .tour-image img, .tour-card img { height: 220px; min-height: 220px; max-height: 220px; }
    .reasons-layout { gap: 40px; }
    #galeria .home-gallery-slide { flex-basis: calc(33.333% - 12px); width: calc(33.333% - 12px); min-width: calc(33.333% - 12px); }
}
@media (max-width: 760px) {
    .hero { min-height: 640px; padding: 75px 18px 85px; background-position: 58% center; }
    .hero-content { text-align: center; }
    .hero-content h2 { margin-right: auto; margin-left: auto; font-size: clamp(2.25rem,9vw,3.3rem); }
    .hero-content > p { margin-right: auto; margin-left: auto; font-size: 1rem; }
    .hero .search-form { flex-direction: column; gap: 8px; padding: 10px; }
    .hero .search-form input[type='text'], .hero .search-form select, .hero .search-form .btn { flex: 0 0 auto; width: 100%; }
    .activity-section { padding: 58px 0 60px; }
    .activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .activity-card { min-height: 195px; padding-bottom: 15px; }
    .activity-image { height: 125px; margin-bottom: 12px; }
    .activity-name { padding: 0 12px; font-size: .88rem; }
    #tours { padding: 60px 18px 62px; }
    .tours-grid, .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .tour-card > img, .tour-card .tour-image img, .tour-card img { height: 190px; min-height: 190px; max-height: 190px; }
    .tour-info { padding: 17px; }
    .tour-info h3 { font-size: 1.05rem; }
    .tour-info .price { font-size: 1.25rem; }
    .reasons-section { padding: 60px 0; }
    .reasons-layout { grid-template-columns: 1fr; gap: 32px; }
    .reasons-copy { text-align: center; }
    .reasons-copy h2, .reasons-copy > p { margin-right: auto; margin-left: auto; }
    #galeria { padding: 60px 18px 58px; }
    #galeria .home-gallery-slider, #galeria .home-gallery-track { height: 235px; }
    #galeria .home-gallery-slide { flex-basis: calc(50% - 9px); width: calc(50% - 9px); min-width: calc(50% - 9px); height: 225px; min-height: 225px; max-height: 225px; }
    #galeria .home-gallery-image { height: 225px !important; min-height: 225px !important; max-height: 225px !important; }
    .google-reviews-section { width: calc(100% - 36px); padding-top: 55px; padding-bottom: 58px; }
    #blog { padding: 58px 18px 62px; }
    .blog-card img, .blog-image-placeholder { height: 190px; min-height: 190px; max-height: 190px; }
    .blog-content { padding: 17px; }
    .contact-section { padding: 58px 18px; }
}
@media (max-width: 520px) {
    .activity-grid { grid-template-columns: 1fr; }
    .activity-card { min-height: 205px; }
    .activity-image { height: 145px; }
    .tours-grid, .blog-grid { grid-template-columns: 1fr; gap: 18px; }
    .tour-card > img, .tour-card .tour-image img, .tour-card img { height: 230px; min-height: 230px; max-height: 230px; }
    .tour-info { padding: 20px; }
    #galeria .home-gallery-track { gap: 10px; }
    #galeria .home-gallery-slide { flex-basis: 84%; width: 84%; min-width: 84%; height: 235px; min-height: 235px; max-height: 235px; }
    #galeria .home-gallery-image { height: 235px !important; min-height: 235px !important; max-height: 235px !important; }
    #homeGalleryLightbox.home-gallery-lightbox { padding: 15px; }
    #homeGalleryLightbox .home-gallery-lightbox-image { max-width: 96vw !important; max-height: 78vh !important; }
    #homeGalleryLightbox .home-gallery-lightbox-arrow.prev { left: 8px; }
    #homeGalleryLightbox .home-gallery-lightbox-arrow.next { right: 8px; }
    #homeGalleryLightbox .home-gallery-lightbox-arrow { width: 42px; height: 42px; font-size: 24px; line-height: 42px; }
    #homeGalleryLightbox .home-gallery-lightbox-close { top: 10px; right: 12px; }
    .google-reviews-section { width: calc(100% - 30px); }
    .blog-card img, .blog-image-placeholder { height: 215px; min-height: 215px; max-height: 215px; }
    .blog-all-link .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tour-card, .tour-card img, .blog-card, .home-gallery-slide img, .activity-card { transition: none !important; } }

/* BENEFITS STRIP — compact trust row below the hero */
.benefits-strip { position: relative; z-index: 2; padding: 0 24px; background: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 1120px; margin: -36px auto 0; position: relative; border-radius: 5px; background: #fff; box-shadow: 0 10px 35px rgba(8,42,69,.12); }
.benefit-item { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 25px 28px; }
.benefit-item + .benefit-item { border-left: 1px solid #e8edf0; }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #e8f3f5; color: var(--secondary-color); font-size: 1.65rem; font-weight: 800; }
.benefit-item h3 { margin: 0 0 3px; color: var(--primary-color); font-size: .98rem; font-weight: 850; line-height: 1.35; }
.benefit-item p { margin: 0; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
@media (max-width: 760px) {
    .benefits-strip { padding: 0 18px; }
    .benefits-grid { grid-template-columns: 1fr; margin-top: -28px; }
    .benefit-item { padding: 15px 18px; }
    .benefit-item + .benefit-item { border-top: 1px solid #e8edf0; border-left: 0; }
    .benefit-icon { flex-basis: 42px; width: 42px; height: 42px; }
}

@media (max-width: 760px) {
    .contact-section .contact-layout { grid-template-columns: 1fr; gap: 20px; }
    .contact-section .contact-details { padding: 22px 18px; }
    .contact-section .contact-map, .contact-section .contact-map iframe { min-height: 300px; }
    .contact-section .contact-whatsapp-cta { width: 100%; }
}
