* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

.about,
.portfolio,
.reservas,
.contact,
.gallery-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem 0.75rem 0.75rem;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    transition: color 0.3s ease;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo:hover img {
    filter: drop-shadow(0 8px 14px rgba(36, 117, 168, 0.28));
}

.logo:hover h1 {
    color: #2475a8;
}

.logo:focus-visible {
    outline: 2px solid rgba(36, 117, 168, 0.35);
    outline-offset: 6px;
    border-radius: 6px;
}

.logo:active {
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.35rem 0;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #2475a8;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #2475a8;
    transform: translateY(-3px);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a:focus-visible {
    outline: 2px solid rgba(36, 117, 168, 0.35);
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/fondo.jpg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.25);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: #2475a8;
    box-shadow: 0 14px 28px rgba(36, 117, 168, 0.35);
    transform: translateY(-3px);
}

.cta-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-header h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.about-main {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-text h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Reservas Section */
.reservas {
    padding: 5rem 0;
    background: #ffffff;
}

.reservas h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.reservas-content {
    max-width: 640px;
    margin: 0 auto;
}

.reservas-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.reservas-text ul {
    list-style: disc;
    margin: 1rem 0 2rem 1.25rem;
    color: #555;
}

.reservas-text li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.reserva-form {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.reserva-form label {
    font-weight: 600;
    color: #2c3e50;
}

.reserva-form select {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.price-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.reserva-button {
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reserva-button:hover {
    background: #2980b9;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.portfolio-item:hover {
    transform: translateY(-10px);
}

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

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

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

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

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
}

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

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2475a8;
    box-shadow: 0 8px 20px rgba(36, 117, 168, 0.16);
    outline: none;
    transform: translateY(-2px);
}

.contact-form input.is-typing,
.contact-form textarea.is-typing {
    animation: fieldTypingPulse 0.45s ease;
}

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

.contact-form button {
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #2980b9;
}

.contact-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.62);
    animation: contactOverlayFade 2.6s ease forwards;
}

.contact-success-message {
    color: white;
    font-size: clamp(1.7rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    animation: contactMessagePop 2.6s ease forwards;
}

@keyframes contactOverlayFade {
    0% {
        opacity: 0;
    }

    12%,
    82% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes contactMessagePop {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    18%,
    78% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
}

@keyframes fieldTypingPulse {
    0% {
        box-shadow: 0 8px 20px rgba(36, 117, 168, 0.16);
    }

    50% {
        box-shadow: 0 10px 26px rgba(36, 117, 168, 0.28);
    }

    100% {
        box-shadow: 0 8px 20px rgba(36, 117, 168, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-form input,
    .contact-form textarea,
    .contact-form input.is-typing,
    .contact-form textarea.is-typing,
    .contact-success-overlay,
    .contact-success-message {
        animation: none;
        transition: none;
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-main {
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo img {
        width: 56px;
        height: 56px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}
