:root {
    --primary-color: #c0392b;
    /* Ecuador Nature Red */
    --primary-hover: #e74c3c;
    --secondary-color: #2c3e50;
    /* Dark slate */
    --secondary-hover: #34495e;
    --accent-color: #d35400;
    /* Subtle orange accent */
    --text-main: #333333;
    --text-muted: #7f8c8d;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: #333333;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

header.scrolled {
    padding: 0.5rem 5%;
    /*background: rgba(255, 255, 255, 0.98);*/
    box-shadow: var(--shadow-md);
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 45px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #333333;
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    gap: 0;
    z-index: 1001;
}

.has-submenu:hover .submenu {
    display: flex;
}

.submenu li {
    width: 100%;
}

nav .submenu a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 400;
}

nav .submenu a::after {
    display: none;
}

nav .submenu a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   HERO SLIDER
   ========================================================================= */
.hero {
    margin-top: 80px;
    /* Offset for fixed header */
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
    background-color: #111;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 10s linear;
    transform: scale(1);
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
    /* Slow zoom effect */
}

/* Overlay gradient for readability */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 5%;
    z-index: 10;
    max-width: 800px;
}

.hero-content h2 {
    color: var(--bg-white);
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
    transition-delay: 0.5s;
}

.slide.active .hero-content h2 {
    transform: translateY(0);
    opacity: 1;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
    transform: translateY(-50%);
    z-index: 20;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* =========================================================================
   WELCOME SECTION
   ========================================================================= */
.welcome-section {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--bg-light);
    position: relative;
}

.welcome-content {
    max-width: 1040px;
    margin: 0 auto;
}

.welcome-icon {
    width: 300px;
    float: left;
    margin: 0 5%;
}

.welcome-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.welcome-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* =========================================================================
   EXPLORING ECUADOR (GRID)
   ========================================================================= */
.exploring-section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    /*display: inline-block;
    left: 50%;
    transform: translateX(-50%);*/
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 280px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
	z-index:999;
	position:relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);*/
    opacity: 0.7;
    transition: var(--transition);
    z-index: 1;
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-content h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: none;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::before {
    opacity: 0.9;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

/* =========================================================================
   KOSHER SECTION
   ========================================================================= */
.kosher-section {
    padding: 5rem 5%;
    background-color: #fce4ec;
    /* Very light subtle red/pink accent */
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    text-align: center;
}

.kosher-content {
    max-width: 800px;
    margin: 0 auto;
}

.kosher-cert {
    width: 81px;
    margin: 2rem auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.kosher-cert:hover {
    transform: scale(1.1) rotate(5deg);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

/* =========================================================================
   FOOTER COMBINED SECTION (Dark & Red)
   ========================================================================= */
.footer-sections {
    display: flex;
    flex-wrap: wrap;
}

.footer-dark {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-dark h2 {
    color: white;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover,
.accordion-header.active {
    color: var(--primary-hover);
}

.accordion-content {
    display: none;
    padding-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--bg-white);
    padding: 5rem 5%;
    text-align: center;
    width: 100%;
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-box::before {
    content: '\201C';
    font-size: 8rem;
    font-family: serif;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -40px;
    left: -20px;
    line-height: 1;
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.quote-author {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.testimonials-section .btn {
    margin-top: 2rem;
}

/* Contact Footer */
.footer-red {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-red h3 {
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--secondary-color);
    width: 18px;
    height: 18px;
}

.btn-submit {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 3rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-submit:hover {
    background: var(--secondary-color);
    color: white;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.copyright {
    background-color: #1a252f;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    width: 100%;
}

.copyright a {
    color: white;
}

/* =========================================================================
   TOUR PAGES
   ========================================================================= */
.tour-page-header {
    margin-top: 80px;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-page-header .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.tour-page-header .title-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 5%;
}

.tour-page-header h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tour-page-header p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.tours-container {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.boat-entry {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.boat-entry:hover {
    box-shadow: var(--shadow-md);
}

.boat-entry h2 {
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.8rem;
}

.boat-layout {
    display: grid;
    grid-template-columns: 2.5fr 3fr;
    gap: 0;
}

.boat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.boat-details {
    padding: 2rem;
}

.tabs-container {
    display: flex;
    flex-direction: column;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-link {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-link:hover {
    color: var(--secondary-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    line-height: 1.8;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.clean-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.clean-list.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}

/* =========================================================================
   REGION / PLACES LAYOUT (e.g., Andes)
   ========================================================================= */
.region-section {
    margin-bottom: 4rem;
}

.region-title {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.region-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 900px;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.place-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.place-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

.place-card .place-details {
    padding: 1.5rem;
    flex-grow: 1;
}

.place-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 992px) {

    .footer-dark,
    .footer-red {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .boat-layout {
        grid-template-columns: 1fr;
    }

    .clean-list.columns-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem 5%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    nav a {
        color: var(--secondary-color);
    }

    nav.active .has-submenu .submenu {
        display: flex;
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
    }

    nav.active .submenu a {
        color: var(--secondary-color);
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	.hero{height:80vh;}
	.welcome-icon{float: none; margin: 5% auto;}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}