/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #4CAF50;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

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

.cta-button {
    background-color: #FF5722;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.cta-button:hover {
    background-color: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.cta-button::after {
    display: none;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section for internal pages */
.hero-page {
    position: relative;
    height: 100vh; /* Changed from 400px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    padding: 0 20px;
    /* Removed margin-top: 70px; */
}

.hero-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-page .container {
    position: relative;
    z-index: 2;
    padding-top: 70px; /* Added padding to account for fixed header */
}

.hero-page .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-page p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #eee;
}

.hero-page .hero-cta {
    display: inline-block;
    background-color: #FF5722;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.hero-page .hero-cta:hover {
    background-color: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-cta {
    display: inline-block;
    background-color: #FF5722;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta:hover {
    background-color: #E64A19;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
}

/* Parallax Video Section */
.parallax-video-section {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.parallax-video-section video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Cover the full viewport height */
    object-fit: cover;
    z-index: -1;
}

.intro, .benefits-section, .gallery, .final-cta, .footer {
    position: relative;
    z-index: 1;
    background-color: #fff;
}

.gallery {
    background-color: #F4F4F4;
}

.intro {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/ceremonia_2.webp) no-repeat center center/cover;
    padding: 0 20px;
}

.intro .container {
    position: relative;
    z-index: 2;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #eee;
}

/* Benefits Section - Coverflow */
.benefits-section {
    padding: 6rem 0;
    background-color: #F9F9F9;
    text-align: center;
}

.coverflow-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1200px;
    margin-top: 3rem;
}

.coverflow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.coverflow-card {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 60%;
    max-width: 450px;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease, z-index 0.6s ease;
    user-select: none;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.coverflow-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: #fff;
    text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,0.8) 60%);
}

.coverflow-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.coverflow-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.coverflow-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #eee;
}

.card-btn {
    background-color: #FF5722;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: #E64A19;
}

.coverflow-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 100;
}

.coverflow-nav .nav-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #4CAF50;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coverflow-nav .nav-btn:hover {
    background-color: #fff;
}

.final-cta {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/naturaleza_1.jpg) no-repeat center center/cover;
    color: #fff;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #eee;
}

.final-cta .cta {
    display: inline-block;
    background-color: #FF5722;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.cta:hover {
    background-color: #E64A19;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
}

/* Main Content Sections */
.main-content {
    padding: 5rem 0;
    background-color: #F4F4F4;
}

.content-wrapper {
    text-align: center;
}

.section-title {
    color: #4CAF50;
    margin-bottom: 2rem;
    position: relative;
}

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

.section-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background-color: white;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about, .footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
}

.footer h3 {
    font-size: 1.5rem;
    color: #fff;
}

.footer h4 {
    font-size: 1.2rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.footer p {
    color: #aaa;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-social a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: #fff;
}

.footer-social svg {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #888;
}

/* Submenu Styles */
.nav-menu .has-submenu {
    position: relative;
}

.nav-menu .has-submenu .nav-link {
    padding-right: 1.5rem; /* Space for the arrow */
}

.nav-menu .has-submenu .nav-link::after {
    content: ''; /* Remove underline for parent link */
    width: 0;
}

.nav-menu .has-submenu .nav-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.submenu {
    display: none; /* Hidden by default, no layout space */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FF5722;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px; /* Increased width */
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
}

.nav-menu .has-submenu:hover .submenu {
    display: block; /* Show on hover for desktop */
}

/* Contact Page Styles */
.contact-intro .intro-content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-intro .intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.contact-section {
    padding: 4rem 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #555;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="number"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.contact-form .checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.contact-form .submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #FF5722;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 2rem;
}

.contact-form .submit-btn:hover {
    background-color: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info .info-icon {
    font-size: 1.8rem;
    color: #4CAF50;
    flex-shrink: 0;
}

.contact-info .info-content h4 {
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 1.1rem;
}

.contact-info .info-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

.process-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f0f8f0; /* Light green background */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.process-info h3 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.process-steps {
    display: flex;
    flex-direction: column; /* Stack vertically by default */
    gap: 1.5rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.process-step .step-number {
    width: 35px;
    height: 35px;
    background-color: #FF5722;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step .step-text h4 {
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 1.1rem;
}

.process-step .step-text p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

.important-notes {
    padding: 4rem 0;
}

.important-notes .section-title {
    margin-bottom: 3rem;
}

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

.note-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.note-card .note-icon {
    font-size: 2.5rem;
    color: #FF5722;
    margin-bottom: 1rem;
}

.note-card h4 {
    color: #333;
    margin-bottom: 0.8rem;
}

.note-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* CTA Section (General) */
.cta-section {
    background-color: #4CAF50;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.cta-section .cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section .cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #eee;
}

.cta-section .cta-button-large {
    display: inline-block;
    background-color: #FF5722;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.cta-section .cta-button-large:hover {
    background-color: #E64A19;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
}

/* Page Header (General for internal pages) */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/hero_background.jpg) no-repeat center center/cover;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 70px; /* To account for fixed header */
}

.page-header .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header .page-subtitle {
    font-size: 1.2rem;
    color: #eee;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        border-top: 1px solid #eee;
        z-index: 999;
        gap: 0; /* Remove gap for column layout */
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    .nav-link {
        display: block; /* Make links fill the width */
        padding: 0.5rem 0;
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-container {
        justify-content: space-between; /* Ensure logo and hamburger are on opposite ends */
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Coverflow adjustments for screens <= 768px */
    .coverflow-container {
        perspective: none; /* Disable 3D perspective */
        height: auto; /* Allow height to adjust to content */
    }

    .coverflow-wrapper {
        position: static; /* Remove absolute positioning */
        display: flex; /* Use flexbox for stacking */
        flex-direction: column;
        align-items: center; /* Center cards */
        gap: 2rem;
        transform: none !important; /* Override any JS transforms */
    }

    .coverflow-card {
        position: static; /* Remove absolute positioning */
        width: 90%; /* Adjust width for mobile */
        max-width: 400px; /* Max width for cards */
        transform: none !important; /* Override any JS transforms */
        opacity: 1 !important; /* Ensure visibility */
        z-index: auto !important; /* Reset z-index */
    }

    .coverflow-nav {
        display: none; /* Hide navigation buttons on mobile */
    }

    /* Contact page responsive adjustments */
    .contact-container {
        flex-direction: column; /* Stack form and info vertically */
        align-items: center;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        min-width: unset; /* Remove min-width constraint */
        width: 95%; /* Adjust width for mobile */
        max-width: 500px; /* Keep a reasonable max-width */
    }

    .notes-grid {
        grid-template-columns: 1fr; /* Stack notes vertically */
    }

    .page-header .page-title {
        font-size: 2.2rem;
    }

    .page-header .page-subtitle {
        font-size: 1rem;
    }

    /* Mobile Submenu Adjustments */
    .nav-menu .has-submenu .nav-link {
        padding-right: 0.5rem; /* Adjust padding for mobile */
    }

    .nav-menu .has-submenu .nav-link i {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .submenu {
        position: static; /* Stack vertically in mobile menu */
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: #FF5722; /* Apply logo color to mobile submenu background */
        padding: 0;
        min-width: unset;
        border-top: none;
    }

    .nav-menu .has-submenu.active .submenu {
        display: block; /* Show when parent is active (JS controlled) */
    }

    .submenu .nav-link {
        padding-left: 2.5rem; /* Indent submenu items */
        background-color: rgba(0, 0, 0, 0.03); /* Subtle background for submenu items */
    }

    .submenu .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 480px) {
    /* Adjust gallery grid min-width for very small screens */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); /* Force single column */
    }

    /* Adjust footer column min-width for very small screens */
    .footer-about, .footer-links, .footer-contact, .footer-social {
        min-width: 100%; /* Make them stack vertically */
    }

    /* Further adjustments for padding on very small screens if needed */
    .container {
        padding: 0 15px; /* Slightly reduce padding */
    }

    /* Adjust services grid for very small screens */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); /* Force single column */
    }

    /* Adjust process steps for very small screens */
    .process-steps .step {
        min-width: 100%; /* Make them stack vertically */
    }
}

/* Active Main Nav Link */
.nav-link.active {
    color: #4CAF50;
    font-weight: 700;
}

/* Parent "Sobre Yagé" active state when submenu is active */
.nav-menu .has-submenu.active > .nav-link {
    color: #4CAF50;
    font-weight: 700;
}

/* Submenu link hover (already good) */
.submenu .nav-link:hover {
    background-color: transparent;
    color: white;
}

/* Submenu margins */
.submenu li {
    margin-bottom: 0.25rem; /* Add small margin between list items */
}

.submenu li:last-child {
    margin-bottom: 0; /* Remove margin from the last item */
}

.submenu .nav-link {
    padding: 0.8rem 1.5rem; /* Slightly increase vertical padding */
    position: relative; /* For the underline effect */
    color: white; /* Ensure text is always white */
}

.submenu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.2rem; /* Adjust position of the underline */
    left: 1.5rem; /* Start from the padding */
    width: 0;
    height: 2px;
    background-color: white; /* White underline */
    transition: width 0.3s ease;
}

.submenu .nav-link:hover::after {
    width: calc(100% - 3rem); /* Adjust width to account for padding */
}