/* =====================================================
   MARESME GUIDE - Main Stylesheet
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
    /* Colors */
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --secondary: #f97316;
    --secondary-dark: #ea580c;

    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* ----- Container ----- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline.light {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline.light:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 500;
}

.logo:hover {
    color: var(--dark);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.logo strong {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-highlight {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-highlight:hover {
    background: var(--secondary-dark);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all var(--transition-fast);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: var(--space-xl);
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero h1 .highlight {
    font-family: var(--font-display);
    display: block;
    color: var(--white);
    font-weight: 600;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* =====================================================
   QUICK INFO BAR
   ===================================================== */
.quick-info {
    background: var(--dark);
    padding: var(--space-lg) 0;
}

.quick-info .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--white);
}

.info-icon {
    font-size: 1.75rem;
}

.info-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.info-item span {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* =====================================================
   SECTIONS (General)
   ===================================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255,255,255,0.7);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* =====================================================
   FILTER TABS
   ===================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =====================================================
   CARDS (Beaches, etc.)
   ===================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 180px;
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
}

.card-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.badge-family {
    background: var(--success);
}

.card-badge.badge-quiet {
    background: var(--primary);
}

.card-content {
    padding: var(--space-lg);
}

.card-content h3 {
    margin-bottom: var(--space-xs);
}

.card-location {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.card-content > p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.card-tags span {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* =====================================================
   XIRINGUITOS (Featured Cards)
   ===================================================== */
.xiringuitos-section {
    background: var(--gray-50);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    height: 220px;
    background-color: var(--gray-300);
    background-size: cover;
    background-position: center;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.featured-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-content h3 {
    margin-bottom: var(--space-xs);
}

.featured-location {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.featured-content > p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    flex: 1;
}

.featured-details {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   ACTIVITIES SECTION
   ===================================================== */
.activities-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.activities-section .transport-card {
    background: var(--white);
}

/* =====================================================
   TRANSPORT SECTION
   ===================================================== */
.transport-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.transport-card {
    display: block;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
}

.transport-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.transport-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.transport-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.transport-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.transport-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* =====================================================
   EVENTS SECTION
   ===================================================== */
.events-section {
    background: var(--white);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.event-card:hover {
    background: var(--gray-100);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: var(--space-md);
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
}

.event-day {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-content {
    flex: 1;
}

.event-type {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
}

.event-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.event-content p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.event-link {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.event-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =====================================================
   NIGHTLIFE SECTION
   ===================================================== */
.nightlife-section {
    background: var(--dark);
    padding: var(--space-4xl) 0;
}

.nightlife-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
}

.nightlife-category h3 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

.venue-list li {
    margin-bottom: var(--space-md);
}

.venue-list a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.venue-list a:hover {
    color: var(--primary-light);
}

/* =====================================================
   TOWNS SECTION
   ===================================================== */
.towns-section {
    background: var(--gray-50);
}

.towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.town-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.town-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.town-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.125rem;
}

.town-vibe {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* =====================================================
   BUSINESS CTA
   ===================================================== */
.business-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: var(--space-3xl) 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--gray-900);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo span {
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .quick-info .container {
        justify-content: center;
    }

    .info-item {
        flex: 0 0 45%;
        justify-content: center;
    }

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

    .event-card {
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .info-item {
        flex: 0 0 100%;
    }

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

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