:root {
    --bg-light: #f4f9f9;
    --sky-blue: #83c5e8; /* Adjusted exactly to logo background */
    --dark-blue: #29478d; /* Adjusted to logo panels */
    --pink-hover: #ff578e; /* Adjusted to logo hoverboard */
    --green-hover: #65c967;
    --bttf-yellow: #ffcd00; /* Adjusted to logo text */
    --bttf-orange: #ff6600;
    --text-dark: #222222;
    --text-light: #555555;
    
    --font-title: 'Michroma', sans-serif;
    --font-text: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    background-color: transparent;
    color: var(--text-dark);
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: -10;
    background-image: url('berceto.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    opacity: 0.5;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-title);
    transform: skewX(-10deg);
}

.logo-marty {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, var(--bttf-yellow) 0%, var(--bttf-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px var(--dark-blue);
}

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

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.navbar nav a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--pink-hover);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--dark-blue);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--pink-hover);
}

.btn-neon {
    border: 2px solid var(--pink-hover);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--pink-hover) !important;
    background: transparent;
    font-weight: bold;
    transition: all 0.3s ease !important;
}

.btn-neon:hover {
    background: var(--pink-hover);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(249, 84, 142, 0.3);
}

.btn-primary {
    display: inline-block;
    background: var(--pink-hover);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: bold;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(249, 84, 142, 0.4);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 84, 142, 0.6);
    background: #e03c73;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background-color: #ffffff;
    background-image: url('logo.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid #fff;
    margin-top: auto;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    text-transform: uppercase;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.quick-blocks {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.q-block {
    background: #fff;
    border: 2px solid #eef2f5;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    min-width: 140px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.q-block i {
    font-size: 2rem;
    color: var(--sky-blue);
    margin-bottom: 0.5rem;
}

.q-block span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.q-block:hover {
    transform: translateY(-5px);
    border-color: var(--sky-blue);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.q-block.highlight {
    background: var(--bttf-yellow);
    border-color: var(--bttf-yellow);
    color: var(--dark-blue);
}
.q-block.highlight i {
    color: var(--dark-blue);
}
.q-block.highlight:hover {
    box-shadow: 0 8px 15px rgba(255, 206, 0, 0.4);
}

/* Newsletter Banner */
.newsletter-banner {
    background: var(--dark-blue);
    padding: 3rem 4rem;
    color: #fff;
}

.newsletter-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-text h3 {
    font-family: var(--font-title);
    color: var(--bttf-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
    justify-content: flex-end;
}

.newsletter-form input {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    background: #fff;
    color: var(--text-dark);
    flex: 1;
    max-width: 300px;
}
.newsletter-form input:focus {
    outline: 2px solid var(--sky-blue);
}

/* Sections General */
.section-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-layout.reverse {
    flex-direction: row-reverse;
}

.bg-white {
    background-color: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
}

.bg-white > .section-layout {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-text {
    flex: 1;
}

section h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--dark-blue);
    text-transform: uppercase;
}

.divider {
    height: 6px;
    width: 60px;
    background: var(--pink-hover);
    margin: 1rem 0 2rem 0;
    border-radius: 3px;
}

.section-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-image, .section-map {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    border: 8px solid #fff;
}

/* About Section Blocks */
.about-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.6;
}

.about-img {
    flex: 1;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 8px solid #fff;
    transform: rotate(3deg);
    transition: transform 0.4s;
    object-fit: cover;
}

.about-block.reverse .about-img {
    transform: rotate(-3deg);
}

.about-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Territorio Cards */
.territorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.territorio-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--sky-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.territorio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.territorio-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.territorio-card .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

/* Specific Section Styles */
.collection-highlight, .gpx-box {
    display: flex;
    gap: 1.5rem;
    background: #f4f9f9;
    border-left: 5px solid var(--green-hover);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-top: 2rem;
}

.collection-highlight i, .gpx-box i {
    font-size: 2rem;
    color: var(--green-hover);
}

.collection-highlight h4, .gpx-box h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.collection-highlight p, .gpx-box p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--text-light);
}

.feature-list i {
    color: var(--pink-hover);
    margin-top: 5px;
}

/* Placeholders for Images */
.placeholder-collection {
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=800&q=80');
}

.placeholder-berceto {
    /* Foto placeholder de Berceto/Montañas */
    background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1200&q=80');
}

/* Gallery - La Casa */
.bg-light {
    background-color: rgba(244, 249, 249, 0.93);
    backdrop-filter: blur(10px);
    width: 100%;
}

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

.gallery-item {
    aspect-ratio: 3/4; /* Formato vertical para que no se corten */
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 4px solid #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Parallax features removed */

.gallery-title {
    font-family: var(--font-title);
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
    border-bottom: 2px solid var(--sky-blue);
    padding-bottom: 0.5rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(41, 71, 141, 0.9), transparent);
    color: #fff;
    text-align: left;
}

.gallery-overlay h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.placeholder-room {
    background-color: #eef2f5;
    background-image: url('https://images.unsplash.com/photo-1522771731470-ea457f165a12?auto=format&fit=crop&w=800&q=80');
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef2f5;
    color: var(--dark-blue);
    border-radius: 12px;
}

.map-placeholder i {
    margin-bottom: 1rem;
    color: var(--sky-blue);
}

/* Experiences */
.experiences {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--dark-blue);
}

.section-title .divider {
    margin: 1rem auto;
}

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

.card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--sky-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.card:nth-child(2) .card-icon { background: var(--green-hover); }
.card:nth-child(3) .card-icon { background: var(--pink-hover); }
.card:nth-child(4) .card-icon { background: var(--bttf-orange); }

.card h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Booking Section */
.booking {
    padding: 6rem 4rem;
    background: var(--sky-blue);
    display: flex;
    justify-content: center;
}

.booking-container {
    background: #fff;
    padding: 4rem;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.booking-container h2 {
    font-family: var(--font-title);
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.booking-container p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group:last-of-type {
    grid-column: span 2;
}

.booking-form label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-blue);
    font-weight: 600;
}

.booking-form input {
    background: #f4f9f9;
    border: 2px solid #eef2f5;
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-dark);
    font-family: var(--font-text);
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.booking-form input:focus {
    outline: none;
    border-color: var(--sky-blue);
}

/* Footer */
footer {
    background: var(--dark-blue);
    padding: 3rem 4rem;
    text-align: center;
    color: #fff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    transform: scale(0.8);
    display: flex;
    flex-direction: column;
    font-family: var(--font-title);
    transform: skewX(-10deg) scale(0.8);
}

.footer-logo .logo-the {
    color: var(--sky-blue);
}

footer p {
    color: #a0b4d6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .navbar nav {
        width: 100%;
        overflow-x: auto;
        /* Esconder barra de scroll para un look más limpio */
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    
    .navbar nav::-webkit-scrollbar {
        display: none; 
    }
    
    .navbar nav ul {
        width: max-content;
        margin: 0 auto;
        gap: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .section-layout, .section-layout.reverse {
        flex-direction: column;
        padding: 4rem 2rem;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        justify-content: center;
    }
    
    .about-block, .about-block.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-img {
        max-width: 100%;
        transform: rotate(0);
    }
    
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        grid-column: span 1 !important;
    }
}
