/* General Styles */
:root {
    --primary-color: #A00000; /* Slightly brighter Dark Red */
    --secondary-color: #D4AF37; /* More vibrant Gold */
    --accent-color: #9932CC; /* More vibrant Purple (DarkOrchid) */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --background-gray: #f2f2f2;
    --accent-color-rgb: 153, 50, 204; /* RGB values for #9932CC */
}

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

body {
    font-family: 'Montserrat', Arial, sans-serif; /* Updated font */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    scroll-behavior: smooth;
}

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

.section {
    padding: 80px 0; /* Slightly more padding for visual breathing room */
    text-align: center;
    position: relative;
}

.section h2 {
    font-size: 2.8em; /* Slightly larger heading */
    margin-bottom: 30px;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px; /* Wider underline */
    height: 5px; /* Thicker underline */
    background: var(--secondary-color);
    margin: 15px auto 0; /* More space below heading */
    border-radius: 3px;
    transition: width 0.3s ease;
}

.section h2:hover::after {
    width: 100px; /* Underline expands on hover */
}

.section p {
    font-size: 1.15em; /* Slightly larger paragraph text */
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.gray-background {
    background-color: var(--background-gray);
}

/* Header & Navigation */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav .logo img {
    height: 60px;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Ensure it's above other content when active */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://www.encuentrodenoviosperu.com/wp-content/uploads/cabecera-fin-de-semana.png') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.hero-content {
    animation: fadeIn 2s ease-out;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-weight: 700;
}

.hero p {
    font-size: 1.8em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 30px;
    align-items: flex-start;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: left;
}

.contact-info p strong {
    color: var(--primary-color);
}

.social-media {
    margin-top: 20px;
}

.social-media img {
    width: 35px;
    height: 35px;
    margin-right: 20px;
    transition: transform 0.3s ease;
    filter: invert(30%) sepia(80%) saturate(700%) hue-rotate(250deg) brightness(70%) contrast(100%);
}

.social-media img:hover {
    transform: scale(1.2);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.3);
    outline: none;
}

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

.contact-form .cta-button {
    align-self: flex-start;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 25px 0;
    font-size: 1em;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5em;
    }
    .hero p {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row; /* Keep logo and hamburger on one line */
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-menu {
        display: flex; /* Show hamburger menu */
    }

    .nav-links {
        display: none; /* Hide navigation links by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 90px; /* Position below header */
        left: 0;
        background-color: #fff;
        box-shadow: 0 8px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
        /* Animation for sliding in */
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
    }

    .nav-links.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide in */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-links li a {
        padding: 10px 0;
        display: block;
        font-size: 1.2em;
    }

    .hero {
        height: 60vh;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 2.2em;
    }

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

    .contact-form .cta-button {
        align-self: stretch;
    }

    /* Hamburger animation when active */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    nav .logo img {
        height: 50px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .section h2 {
        font-size: 1.8em;
    }
}

/* Add to your style.css */

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.form-message.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    opacity: 1;
}

.form-message.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    opacity: 1;
}

.form-message.loading { /* Style for loading state */
    background-color: #e0f2f7; /* Light blue */
    color: #0c5460; /* Dark blue */
    opacity: 1;
}