/* MalagaNest Design System via Vanilla CSS */
:root {
    --primary: #0f172a;
    /* Deep Blue */
    --accent: #d4af37;
    /* Gold */
    --accent-hover: #b5952f;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.btn-reservar {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
}

.btn-reservar:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Sections */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6)), url('https://images.unsplash.com/photo-1563720223185-11003d516935?q=80&w=2070&auto=format');
    /* Vibrant Malaga Port/Cathedral */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding-bottom: 4rem;
    /* Space for overlap */
}

.hero-content {
    z-index: 2;
    padding: 2rem;
    animation: slideUp 1s ease-out;
}

.hero-content h1 {
    color: var(--white);
    font-size: 5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dynamic Overlap Section */
.overlap-section {
    margin-top: -100px;
    /* Pulls section up over hero */
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-padding {
    padding: 6rem 0;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Apartamentos */
.apt-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 4px solid var(--accent);
}

.apt-content {
    padding: 2rem;
}

.apt-features {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.apt-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apt-features i {
    color: var(--accent);
}

/* Que Hacer Icons */
.activity-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid #e2e8f0;
}

.activity-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Fade In Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Calendar Styles Override */
.flatpickr-calendar {
    font-family: 'Inter', sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.flatpickr-day.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Estilos de botones de estado */
.btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none !important;
}

/* Utility for locked content in checkin */

/* Modern Redesign Additions */

/* 1. Immersive Cards (No white space below image) */
.immersive-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
    cursor: pointer;
    display: block;
}

.immersive-card:hover {
    transform: translateY(-8px);
}

.immersive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.immersive-card:hover img {
    transform: scale(1.05);
}

.immersive-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    z-index: 2;
}

.immersive-tag {
    background: var(--accent);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* 2. Dark Sections */
.section-dark {
    background-color: var(--primary);
    color: var(--white);
    padding: 6rem 0;
}

.section-dark h2 {
    color: var(--white);
    font-size: 3rem;
}

.section-dark p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* 3. Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent) 0%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. Feature Strip (Icon Grid) */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4rem 0;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-box h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* 5. Modern Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    min-height: 600px;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        grid-template-columns: 1fr 1fr;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}