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

:root {
    --color-ocre: #B8860B;
    --color-mostaza: #D4AF37;
    --color-tejon: #A0522D;
    --color-blanco: #FFFBF0;
    --color-gris: #2C2C2C;
    --color-gris-claro: #F5F5F5;
    --font-titulo: 'Playfair Display', serif;
    --font-cuerpo: 'Lato', sans-serif;
}

/* Animaciones Globales */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(160, 82, 45, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(160, 82, 45, 0.6);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cuerpo);
    color: var(--color-gris);
    line-height: 1.6;
    background-color: var(--color-blanco);
}

/* Header y Navegación */
.header {
    background-color: var(--color-tejon);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-titulo);
    font-size: 2rem;
    color: var(--color-blanco);
    font-weight: 700;
    letter-spacing: 1px;
    animation: fadeInDown 0.6s ease-out;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    animation: fadeInDown 0.6s ease-out backwards;
}

.nav-menu a:hover {
    color: var(--color-mostaza);
    border-bottom-color: var(--color-mostaza);
}

/* Hero Section */
.hero {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-blanco);
    background-attachment: fixed;
}

.hero-content {
    max-width: 700px;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-titulo);
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Botones CTA */
.cta-button {
    background-color: var(--color-tejon);
    color: var(--color-blanco);
    border: 2px solid var(--color-mostaza);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-cuerpo);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    animation-fill-mode: both;
}

.cta-button:hover {
    background-color: var(--color-mostaza);
    color: var(--color-tejon);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 0.6s ease-in-out;
}

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

/* Sección Acerca De */
.about {
    padding: 5rem 3rem;
    background-color: var(--color-blanco);
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInLeft 0.8s ease-out;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    font-family: var(--font-titulo);
    font-size: 2.5rem;
    color: var(--color-tejon);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInRight 0.8s ease-out;
}

.about-content h3 {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    color: var(--color-ocre);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--color-gris);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Galería */
.gallery {
    padding: 5rem 3rem;
    background-color: var(--color-gris-claro);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery h2 {
    font-family: var(--font-titulo);
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-tejon);
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

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

.gallery-item {
    background-color: var(--color-blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(160, 82, 45, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* Habitación - imagen horizontal */
.gallery-item:first-child img {
    height: 400px;
    object-fit: cover;
    max-height: none;
}

/* Baño - imagen vertical */
.gallery-item:nth-child(2) img {
    height: 400px;
    object-fit: cover;
    max-height: none;
}

/* Terraza - imagen horizontal */
.gallery-item:nth-child(3) img {
    height: 400px;
    object-fit: cover;
    max-height: none;
}

.gallery-item h3 {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    color: var(--color-tejon);
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
}

.gallery-item p {
    padding: 0.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-gris);
    line-height: 1.6;
}

.amenities {
    background-color: var(--color-blanco);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--color-tejon);
    animation: slideInLeft 0.8s ease-out;
}

.amenities:hover {
    animation: glow 2s ease-in-out infinite;
}

.amenities h3 {
    font-family: var(--font-titulo);
    font-size: 1.8rem;
    color: var(--color-tejon);
    margin-bottom: 1rem;
}

.amenities p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.amenities strong {
    color: var(--color-ocre);
}

/* Sección CTA Final */
.cta-section {
    background: linear-gradient(135deg, var(--color-tejon) 0%, var(--color-ocre) 100%);
    padding: 5rem 3rem;
    text-align: center;
    color: var(--color-blanco);
    max-width: 1400px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--font-titulo);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-section .cta-button {
    margin-top: 1rem;
}

.contact-info {
    margin-top: 3rem;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* Footer */
.footer {
    background-color: var(--color-gris);
    color: var(--color-blanco);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design - Tablets y Pantallas Medianas */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about {
        padding: 3rem 2rem;
    }

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

    .about-content h3 {
        font-size: 1.3rem;
    }

    .gallery {
        padding: 3rem 2rem;
    }

    .gallery h2 {
        font-size: 2rem;
    }

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

    .cta-section {
        padding: 3rem 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-menu {
        flex-direction: row;
        gap: 1rem;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .hero {
        height: 350px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .about {
        padding: 2rem 1.5rem;
    }

    .about-container {
        gap: 1.5rem;
    }

    .about-content h2,
    .gallery h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .about-content h3 {
        font-size: 1.2rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .gallery {
        padding: 2rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item img {
        height: auto;
        max-height: 350px;
    }

    .gallery-item h3 {
        font-size: 1.3rem;
    }

    .gallery-item p {
        font-size: 0.9rem;
    }

    .amenities {
        padding: 1.5rem;
    }

    .amenities h3 {
        font-size: 1.4rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    .contact-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 0.8rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .hero {
        height: 300px;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .about {
        padding: 1.5rem 1rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-content h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .gallery {
        padding: 1.5rem 1rem;
    }

    .gallery h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        gap: 1rem;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .gallery-item img {
        height: auto;
        max-height: 250px;
    }

    .gallery-item h3 {
        font-size: 1.1rem;
        padding: 0.75rem 0.75rem 0.25rem;
    }

    .gallery-item p {
        font-size: 0.85rem;
        padding: 0.25rem 0.75rem 0.75rem;
        line-height: 1.5;
    }

    .amenities {
        padding: 1rem;
        border-left-width: 3px;
    }

    .amenities h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .amenities p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .cta-section {
        padding: 1.5rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 30px;
    }

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

    .contact-info p {
        margin: 0.3rem 0;
    }

    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.8rem;
    }
}