/* Tipografía y reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #16344d;
    background-color: #f1f7fb;
    line-height: 1.6;
}

/* Colores base tomados del logo */
:root {
    --primary: #1c75bc; /* azul */
    --secondary: #f7941d; /* naranja */
    --accent-pink: #ec008c;
    --accent-green: #8cc63f;
    --accent-purple: #662d91;
    --bg-light: #f6fbff;
    --text-dark: #16344d;
    --radius-lg: 1.4rem;
    --shadow-soft: 0 18px 35px rgba(15, 63, 104, 0.18);
}

/* Utilidades */
.section {
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.section-header p {
    color: #4f6b82;
}

/* Navbar */
.main-header {
    background: linear-gradient(135deg, #e6f3ff, #fef9ff);
}

.navbar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--primary);
}

.logo-text .tagline {
    font-size: 0.8rem;
    color: #4f6b82;
}

/* Menú */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #30506b;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent-pink));
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú responsive */
.menu-icon {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        right: 1.5rem;
        background: #ffffff;
        padding: 1rem 1.2rem;
        border-radius: 1rem;
        box-shadow: 0 20px 40px rgba(11, 61, 98, 0.18);
        flex-direction: column;
        min-width: 210px;
        transform-origin: top right;
        transform: scale(0.9);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 10;
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .menu-icon {
        display: block;
    }
}

/* Hero */
.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-overline {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    color: #496581;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #fff;
    box-shadow: 0 15px 28px rgba(10, 68, 116, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(10, 68, 116, 0.55);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(22, 52, 77, 0.3);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 14px 26px rgba(11, 60, 99, 0.25);
}

.btn-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

.hero-contact {
    font-size: 0.9rem;
    color: #4f6b82;
}

.hero-contact a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    border-radius: 1.8rem;
    box-shadow: var(--shadow-soft);
    display: block;
}

/* Hero responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero-media {
        order: -1;
    }
}

/* About */
.about {
    background: radial-gradient(circle at top left, #e5f3ff 0, #f7fbff 45%, #ffffff 100%);
}

.about-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 0.9rem;
    color: #3f5c74;
}

.about-list {
    list-style: none;
    margin: 0.7rem 0 1.1rem;
}

.about-list li {
    margin-bottom: 0.4rem;
    padding-left: 1.1rem;
    position: relative;
    color: #21415b;
}

.about-list li::before {
    content: "•";
    color: var(--accent-pink);
    position: absolute;
    left: 0;
    top: 0;
}

.about-location {
    font-weight: 600;
    color: #203a4f;
}

.about-media {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    grid-template-rows: auto;
    gap: 0.9rem;
}

.about-photo {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(14, 61, 97, 0.32);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo.small {
    align-self: end;
    transform: translateY(10%);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-media {
        grid-template-columns: 1fr 1fr;
    }
}

/* Redes sociales */
.social {
    background: var(--bg-light);
}

.social-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.social-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.6rem;
    box-shadow: 0 16px 32px rgba(9, 55, 89, 0.14);
}

.social-card h3 {
    margin-bottom: 0.2rem;
}

.social-card p {
    margin-bottom: 0.7rem;
    color: #45617a;
}

.social-embed {
    border-radius: 1.2rem;
    overflow: hidden;
    background: #f4f7fb;
    margin-bottom: 0.9rem;
}

.ig-placeholder {
    padding: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
}

@media (max-width: 820px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* Tours */
.tours {
    background: linear-gradient(135deg, #ffffff, #eef5ff);
}

.tours-grid {
    max-width: 1120px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.tour-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(10, 61, 100, 0.22);
    display: flex;
    flex-direction: column;
}

.tour-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.tour-content {
    padding: 1.2rem 1.3rem 1.4rem;
}

.tour-content h3 {
    margin-bottom: 0.4rem;
    color: #16344d;
}

.tour-date {
    font-size: 0.95rem;
    color: #f15a24;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tour-price,
.tour-promo {
    font-size: 0.95rem;
    color: #1b3d57;
}

.tour-promo {
    color: var(--accent-green);
    margin-top: 0.2rem;
}

.tour-note {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: #4f6b82;
}

.tour-list {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: #2d4b65;
}

.tours-info {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    color: #3c5a75;
}

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

@media (max-width: 720px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
}

/* Video */
.video-section {
    background: var(--bg-light);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Galería */
.gallery {
    background: #ffffff;
}

.gallery-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-item {
    border-radius: 1.2rem;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 12px 26px rgba(10, 60, 97, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(6, 52, 88, 0.36);
}

.gallery-note {
    max-width: 1120px;
    margin: 1rem auto 0;
    font-size: 0.9rem;
    color: #4b657e;
}

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

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 24, 38, 0.87);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1.5rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 1.2rem;
    box-shadow: 0 22px 45px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

/* Contacto */
.contact-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 1rem;
}

.contact-info li {
    margin-bottom: 0.5rem;
    color: #3b5872;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.6rem;
    box-shadow: 0 18px 35px rgba(7, 51, 84, 0.22);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0.9rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #29445b;
}

input,
textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid #c4d3e1;
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(28,117,188,0.25);
}

textarea {
    resize: vertical;
}

.form-note {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: #5c748b;
}

/* Footer */
.main-footer {
    background: #0f2233;
    color: #c6d7e8;
    padding: 1.8rem 1.5rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
}

.footer-inner a {
    color: #ffffff;
    text-decoration: underline;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 32px rgba(12, 98, 54, 0.6);
    z-index: 40;
    text-decoration: none;
}

.whatsapp-float span {
    font-size: 1.6rem;
}

/* Animaciones suaves */
.fade-in {
    animation: fadeInUp 0.9s ease forwards;
    opacity: 0;
    transform: translateY(12px);
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo extra */
@media (max-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
