/*
 Theme Name: Alokoy Charters Child
 Theme URI: https://alokoycharters.com
 Description: Tema hijo basado en GeneratePress para replicar el estilo de OnBoat.co
 Author: César Coral
 Template: generatepress
 Version: 1.0
*/

/* ========== RESET SIMPLE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: #222;
    background-color: #fff;
}

/* ========== UTILIDADES ========== */

.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #3a3a3a;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #808080;
    margin: 0 0 40px;
}

/* ======================================
   HEADER + NAV (ESTILO ONBOAT)
====================================== */

.site-header {
    position: relative;
    z-index: 1000;
}

/* Barra superior azul */
.topbar {
    background-color: #1f8dd6;
    color: #fff;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.site-logo img {
    max-height: 36px;
    width: auto;
    margin-right: 8px;
}

.site-logo-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

/* Navegación */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Indicador de submenú */
.main-nav li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 11px;
}

/* Dropdown */
.main-nav .sub-menu {
    position: absolute;
    top: 32px;
    left: 0;
    min-width: 210px;
    background-color: #ffffff;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
}

.main-nav li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu li {
    padding: 0;
}

.main-nav .sub-menu a {
    color: #333;
    display: block;
    padding: 8px 18px;
    font-size: 14px;
}

.main-nav .sub-menu a:hover {
    background-color: #f5f7fb;
}

/* Botón menú móvil */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

/* ======================================
   HERO (IMAGEN + TÍTULO + BUSCADOR)
====================================== */

.hero {
    position: relative;
    height: 480px;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.35)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 44px;
    font-weight: 600;
    margin: 0 0 10px;
}

.hero-subtitle {
    margin: 0 0 32px;
    font-size: 16px;
}

/* Caja de búsqueda estilo OnBoat */
.hero-search {
    background-color: #ffffff;
    border-radius: 4px;
    display: inline-flex;
    padding: 12px;
    gap: 12px;
    align-items: center;
}

.hero-search select,
.hero-search input {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    min-width: 160px;
}

.hero-search button {
    background-color: #7ac142;
    border: none;
    border-radius: 4px;
    padding: 11px 26px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.hero-search button:hover {
    filter: brightness(0.95);
}

/* ======================================
   SECCIÓN DESTINATIONS
====================================== */

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
    grid-gap: 26px;
}

.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.destination-card:hover img {
    transform: scale(1.05);
}

.destination-card__title {
    position: absolute;
    left: 24px;
    bottom: 20px;
    right: 24px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Destino grande a ancho completo */
.destination-card--large {
    grid-column: 1 / -1;
}

/* ======================================
   SECCIÓN PACKAGES (CARDS EN FILA)
====================================== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.package-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.package-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.package-card__body {
    padding: 16px 18px 18px;
    font-size: 14px;
    color: #555;
}

.package-card__title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.package-card__meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.package-card__price {
    color: #1f8dd6;
    font-weight: 600;
}

/* ======================================
   FOOTER OSCURO
====================================== */

.site-footer {
    background-color: #2b2f36;
    color: #ffffff;
    padding: 40px 0 24px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-link {
    display: block;
    color: #d7dde7;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 13px;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    font-size: 12px;
    color: #a5aab5;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 980px) {
    .packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .topbar-inner {
        padding: 10px 0;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 58px;
        background-color: #1f8dd6;
        display: none;
        padding: 12px 0;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        padding: 6px 18px;
    }

    .main-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.08);
        margin-top: 4px;
    }

    .main-nav li.open > .sub-menu {
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        height: 420px;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search select,
    .hero-search input,
    .hero-search button {
        width: 100%;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* =======================
   CHARTER CARDS (NEW)
   ======================= */
.charter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px,1fr));
    gap: 30px;
    width: 92%;
    margin: 50px auto;
}

.charter-card {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
}

.charter-card:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.charter-card::after {
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.75));
    transition:opacity .35s;
}

.charter-card:hover::after {
    opacity:.95;
}

.charter-title {
    position:absolute;
    bottom:18px;
    width:100%;
    text-align:center;
    color:#fff;
    font-size:22px;
    font-weight:600;
    text-shadow:0 2px 8px rgba(0,0,0,.8);
}

