/* ===== VARIABLES ===== */
:root {
    --color-primary: #3d4f2f;
    --color-secondary: #5a6e3f;
    --color-accent: #7a8f5d;
    --color-bg-light: #f4f5f0;
    --color-bg-cream: #edeee6;
    --color-text-dark: #2a2e24;
    --color-text-light: #5a5f50;
    --color-white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Quicksand', sans-serif;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.1rem;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-nav {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 167, 124, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-primary);
}

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

.btn-nav {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 10px 24px;
    font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    text-align: center;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-secondary);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    background-image: url('images/cabecera-v2.jpg');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed; /* Parallax effect */
    will-change: transform;
}

/* Fallback for mobile - disable parallax for performance */
@supports (-webkit-touch-callout: none) {
    .slideshow-container {
        background-attachment: scroll;
        height: 100%;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: slideshow 30s infinite;
}

@keyframes slideshow {
    0%, 100% { opacity: 0; }
    10%, 30% { opacity: 1; }
    40% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 36, 32, 0.25), rgba(139, 115, 85, 0.15));
}

.hero-content {
    position: absolute;
    top: 80px;
    right: 40px;
    z-index: 10;
    text-align: right;
    color: var(--color-white);
    padding: 2rem;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    color: var(--color-white);
}

.hero-date {
    font-size: clamp(1.6rem, 3.8vw, 2.6rem);
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.hero-location {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--color-white);
    opacity: 0.95;
}

/* ===== COUNTDOWN (Hidden) ===== */
.countdown {
    display: none;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-white);
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    color: var(--color-white);
}

/* ===== SCROLL DOWN ===== */
.scroll-down {
    display: none;
}

/* ===== INTRO SECTION ===== */
.intro {
    padding: 1.5rem 0 2rem;
    background: var(--color-bg-light);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-light);
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.signature {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-style: italic;
    font-size: 1.25rem;
}

/* ===== AGENDA SECTION ===== */
.agenda {
    padding: 3rem 0 6rem;
    background: var(--color-white);
}

.event-card {
    background: var(--color-bg-cream);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(74, 127, 160, 0.15);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(74, 127, 160, 0.03), rgba(26, 58, 82, 0.06));
    pointer-events: none;
    z-index: 0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(74, 127, 160, 0.3);
}

.event-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 1.75rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.event-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 10px solid var(--color-accent);
}

.event-title {
    font-size: 2.5rem;
    color: var(--color-white);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

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

.event-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.event-detail .icon {
    font-size: 2rem;
}

.icon-svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: var(--color-primary);
    stroke-width: 2;
}

.location-link {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
    transition: all 0.3s ease;
}

.location-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

.event-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.event-detail strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.event-image {
    border-radius: 15px;
    overflow: hidden;
    min-height: 300px;
}

.bus-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    text-align: center;
}

.bus-info p {
    margin: 0;
    color: var(--color-secondary);
    font-size: 1rem;
}

/* Bus Route Info - Enhanced */
.bus-route-info {
    border-left: none;
    border: 2px solid var(--color-accent);
    border-radius: 16px;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-cream));
}

.bus-route-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--color-secondary);
}

.bus-icon {
    width: 56px;
    height: 36px;
    flex-shrink: 0;
}

.bus-route-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bus-route-leg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-white);
    border-radius: 12px;
}

.bus-route-leg:first-child {
    border-radius: 12px 12px 0 0;
}

.bus-route-leg:last-child {
    border-radius: 0 0 12px 12px;
}

.bus-leg-label {
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.bus-leg-time {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.bus-leg-stops {
    font-size: 0.95rem;
    color: var(--color-text-light);
    flex: 1;
}

.bus-route-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.calendar-buttons {
    margin-top: 2rem;
    text-align: center;
}

.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 167, 124, 0.3);
}

.btn-calendar:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.calendar-icon {
    width: 20px;
    height: 20px;
}

/* ===== DECORATIVE DIVIDERS ===== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

.divider-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0 2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

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

/* Staggered fade-in animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===== ALOJAMIENTO SECTION ===== */
.alojamiento {
    padding: 3rem 0 3rem;
    background: var(--color-bg-light);
}

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

.hotel-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease,
                border 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hotel-card:hover::before {
    opacity: 1;
}

/* Staggered animation delays for hotel cards */
.hotel-card:nth-child(1) { animation-delay: 0.1s; }
.hotel-card:nth-child(2) { animation-delay: 0.2s; }
.hotel-card:nth-child(3) { animation-delay: 0.3s; }
.hotel-card:nth-child(4) { animation-delay: 0.4s; }
.hotel-card:nth-child(5) { animation-delay: 0.5s; }
.hotel-card:nth-child(6) { animation-delay: 0.6s; }

.hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    border-color: var(--color-primary);
}

.hotel-stars {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transition: text-shadow 0.3s ease;
}

.hotel-card:hover .hotel-stars {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.hotel-name {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.hotel-discount {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.hotel-code {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.hotel-code strong {
    color: var(--color-primary);
    font-weight: 600;
}

.hotel-note {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--color-bg-cream);
    border-radius: 15px;
    text-align: center !important;
    clear: both;
}

.hotel-note p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    text-align: center !important;
}

.contact-info {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 1.125rem;
    text-align: center !important;
}

/* ===== PELUQUERÍA SECTION ===== */
.peluqueria {
    padding: 6rem 0;
    background: var(--color-white);
}

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

.service-card {
    background: var(--color-bg-cream);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-name {
    font-size: 1.75rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.service-contact {
    font-weight: 600;
    color: var(--color-primary);
}

/* ===== A CORUÑA SECTION ===== */
.coruna {
    padding: 3rem 0 6rem;
    background: var(--color-bg-light);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.place-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation for place cards */
.place-card:nth-child(1) { animation-delay: 0.1s; }
.place-card:nth-child(2) { animation-delay: 0.2s; }
.place-card:nth-child(3) { animation-delay: 0.3s; }
.place-card:nth-child(4) { animation-delay: 0.4s; }
.place-card:nth-child(5) { animation-delay: 0.5s; }
.place-card:nth-child(6) { animation-delay: 0.6s; }

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

.place-card:hover .place-image img {
    transform: scale(1.08);
}

.place-image {
    height: 220px;
    overflow: hidden;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.place-content {
    padding: 2rem;
}

.place-name {
    font-size: 1.75rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.place-description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===== REGALO SECTION ===== */
.regalo {
    padding: 3rem 0;
    background: var(--color-bg-cream);
}

.regalo-card {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.regalo-icon {
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.regalo-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.regalo-iban {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--color-bg-light);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px dashed var(--color-accent);
    flex-wrap: nowrap;
}

.iban-label {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.iban-number {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.iban-copy {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.iban-copy:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

.regalo-note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
}

@media (max-width: 480px) {
    .regalo-iban {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }

    .iban-number {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
}

/* ===== RSVP SECTION ===== */
.rsvp {
    padding: 3rem 0;
    background: var(--color-bg-cream);
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-bg-cream);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.rsvp-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    padding: 15px;
    font-size: 1.125rem;
}

.form-message {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-subtext {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Disable parallax on mobile for better performance */
    .slideshow-container {
        background-attachment: scroll !important;
        background-image: url('images/cabecera-v2.jpg') !important;
        height: 100%;
        background-position: 30% center;
    }
    
    /* Reduce animation delays on mobile */
    .hotel-card,
    .place-card {
        animation-delay: 0s !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--color-bg-cream) 0%, var(--color-white) 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        font-size: 1.25rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        width: 80%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        background: var(--color-primary);
        color: var(--color-white);
        transform: translateX(10px);
    }

    .nav-menu .btn-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        top: 65px;
        right: 20px;
        bottom: auto;
        padding: 1.5rem;
        max-width: 65%;
    }

    .hero-date,
    .hero-location {
        position: static;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .event-content {
        grid-template-columns: 1fr;
    }

    .event-image {
        min-height: 200px;
    }

    .event-image img {
        height: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 2rem 1.5rem;
    }

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

    .bus-route-info {
        padding: 1.25rem;
    }

    .bus-route-leg {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .bus-route-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Coruna section mobile */
    .coruna {
        padding: 2rem 0 3rem;
    }

    .guide-intro {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .guide-text {
        font-size: 1rem;
    }

    .info-box {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .info-icon {
        font-size: 2.5rem;
        text-align: center;
    }

    .tour-stop {
        grid-template-columns: 45px 1fr;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .tour-stop:hover {
        transform: none;
    }

    .stop-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        align-self: start;
    }

    .stop-content {
        text-align: center;
    }

    .stop-content h4 {
        font-size: 1.2rem;
    }

    .stop-image {
        max-height: 180px;
    }

    .stop-image img {
        height: 180px;
    }

    .stop-highlight,
    .stop-tip,
    .stop-fun {
        text-align: left;
    }

    .stop-features {
        text-align: left;
    }

    .song-quote {
        text-align: left;
        padding: 1rem;
    }

    .song-quote p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .stop-features li {
        font-size: 0.95rem;
    }

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

    .map-single {
        max-width: 100%;
    }

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

    .guide-section-title {
        font-size: 1.5rem;
    }

    .guide-footer {
        padding: 1.5rem;
    }

    .guide-closing {
        font-size: 1.2rem;
    }

    .hotel-note {
        margin: 2rem auto 0;
        padding: 1.5rem;
    }

    .section-subtitle {
        margin-bottom: 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        top: 60px;
        bottom: auto;
        right: 10px;
        left: auto;
        padding: 1rem;
        max-width: 85%;
    }

    .hero-title {
        font-size: 2.6rem;
        letter-spacing: 2px;
    }

    .hero-date {
        font-size: 1.4rem;
    }

    .hero-location {
        font-size: 1.15rem;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

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

    .divider {
        padding: 2rem 0;
    }

    .divider-icon {
        font-size: 1.2rem;
        margin: 0 1rem;
    }

    .btn-calendar {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .tour-stop {
        grid-template-columns: 40px 1fr;
        gap: 0.6rem;
        padding: 1rem;
    }

    .stop-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stop-content h4 {
        font-size: 1.1rem;
    }

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

    .stop-image {
        max-height: 150px;
    }

    .stop-image img {
        height: 150px;
    }

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

    .event-header {
        padding: 1.25rem 1.5rem;
    }

    .event-content {
        padding: 1.5rem 1rem 1rem;
    }

    .event-detail strong {
        font-size: 1.1rem;
    }

    .bus-route-info {
        padding: 1rem;
    }

    .bus-leg-time {
        font-size: 1.1rem;
    }

    .bus-leg-stops {
        font-size: 0.88rem;
    }

    .gastro-category {
        padding: 1.5rem;
    }

    .gastro-title {
        font-size: 1.25rem;
    }

    .guide-footer {
        padding: 1.25rem;
    }

    .guide-closing {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .intro-text p {
        margin-bottom: 1rem;
    }

    .signature {
        font-size: 1.1rem;
    }

    body {
        font-size: 1rem;
    }
}

/* ===== TABS STYLES ===== */
.tabs-container {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.tab-button:hover {
    background: var(--color-bg-cream);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(74, 127, 160, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* ===== GUIDE STYLES ===== */
.guide-intro {
    background: linear-gradient(135deg, var(--color-bg-cream), var(--color-bg-light));
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border-left: 5px solid var(--color-primary);
}

.guide-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.guide-text:last-child {
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1.5rem;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-accent);
}

.info-icon {
    font-size: 3rem;
    flex-shrink: 0;
    color: var(--color-accent);
}

.info-content h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.info-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link-item {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.link-item:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.link-item::before {
    content: "→ ";
    margin-right: 0.5rem;
}

/* Guide Section Title */
.guide-section-title {
    font-size: 2rem;
    color: var(--color-secondary);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-accent);
}

.guide-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Tour Route */
.tour-route {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.tour-stop {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.tour-stop:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.highlight-stop {
    background: linear-gradient(135deg, #eef2e8, #e2e8d8);
    border: 2px solid var(--color-accent);
}

.stop-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
    flex-shrink: 0;
    align-self: start;
}

.highlight-stop .stop-number {
    background: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(107, 115, 83, 0.3);
}

.stop-content h4 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.stop-content p {
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.stop-content p:last-child {
    margin-bottom: 0;
}

.stop-highlight {
    background: var(--color-bg-cream);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
    margin-top: 1rem;
}

.stop-tip {
    background: var(--color-bg-cream);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    margin-top: 1rem;
    color: var(--color-secondary);
}

.stop-fun {
    background: #eef2e8;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    margin-top: 1rem;
}

.stop-features {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.stop-features li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--color-text-dark);
}

.stop-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Song Quote */
.song-quote {
    background: linear-gradient(135deg, #eef2e8, #e2e8d8);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid var(--color-accent);
}

.song-quote p {
    margin: 0;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.song-artist {
    text-align: right;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Maps Section */
.maps-section {
    margin: 3rem 0;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.map-card {
    background: var(--color-white);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.map-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Gastronomía */
.gastro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gastro-category {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.gastro-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gastro-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.gastro-title-icon {
    vertical-align: middle;
    color: var(--color-secondary);
    margin-right: 0.25rem;
}

.inline-icon {
    vertical-align: middle;
    color: var(--color-accent);
}

.gastro-title {
    color: var(--color-secondary);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.gastro-list {
    list-style: none;
    padding: 0;
}

.gastro-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-bg-cream);
    color: var(--color-text-dark);
    transition: var(--transition);
}

.gastro-list li:last-child {
    border-bottom: none;
}

.gastro-list li:hover {
    padding-left: 10px;
    color: var(--color-primary);
}

/* Guide Footer */
.guide-footer {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: center;
    color: var(--color-white);
}

.guide-closing {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guide-contact {
    font-size: 1rem;
    opacity: 0.95;
}

/* Hide mobile breaks on desktop */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }

    .guide-contact {
        line-height: 2;
    }
}

/* ===== RESPONSIVE GUIDE ===== */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        justify-content: center;
    }
}

/* ===== STOP IMAGES (Tour stops with photos) ===== */
.stop-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    max-height: 250px;
}

.stop-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.tour-stop-with-image:hover .stop-image img {
    transform: scale(1.03);
}

/* Single map */
.map-single {
    background: var(--color-white);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 2rem auto 0;
}

.map-single .map-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* ===== MOBILE EXTRA SMALL (< 360px) ===== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .hero-content {
        max-width: 80%;
        right: 5px;
        padding: 0.5rem;
    }

    .tour-stop {
        grid-template-columns: 35px 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .stop-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 12px;
    }
}

/* ===== FREE TOUR CARD ===== */
.free-tour-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 1.25rem 1.75rem;
    border-radius: 15px;
    margin: 2rem auto 3rem;
    max-width: 380px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: none;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    cursor: pointer;
}

.free-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.free-tour-card-icon {
    flex-shrink: 0;
    color: var(--color-white);
}

.free-tour-card-icon svg {
    width: 36px;
    height: 36px;
}

.free-tour-card-text h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 0.15rem;
}

.free-tour-card-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

/* Keep btn-free-tour for free-tour.html back button */
.free-tour-cta {
    text-align: center;
    margin: 2.5rem 0 3rem;
}

.btn-free-tour {
    display: inline-block;
    padding: 20px 52px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 30px rgba(61, 79, 47, 0.35), 0 2px 8px rgba(122, 143, 93, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-free-tour::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-free-tour:hover::before {
    left: 100%;
}

.btn-free-tour:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 79, 47, 0.5), 0 4px 12px rgba(122, 143, 93, 0.3);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent), #8fa870);
}

.btn-free-tour:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .free-tour-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .free-tour-card-text h3 {
        font-size: 1.5rem;
    }

    .free-tour-card-text p {
        font-size: 1.15rem;
    }
}

/* ===== GASTRO LINKS ===== */
.gastro-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: none;
}

.gastro-link strong {
    color: var(--color-secondary);
    transition: all 0.3s ease;
    border-bottom: 1.5px dashed var(--color-accent);
    padding-bottom: 1px;
}

.gastro-link::after {
    content: ' 📍';
    font-size: 0.85em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gastro-link:hover strong {
    color: var(--color-primary);
    border-bottom-style: solid;
    border-bottom-color: var(--color-primary);
}

.gastro-link:hover::after {
    opacity: 1;
}

.gastro-link:hover {
    color: var(--color-secondary);
}

.coruna-map-hero {
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ===== EVENT IMAGES EQUAL SIZE ===== */
.event-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .event-image img {
        height: 220px;
        object-fit: cover;
    }

    .btn-free-tour {
        padding: 16px 36px;
        font-size: 1.2rem;
    }

    .nav-coruna {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .event-image img {
        height: 200px;
        object-fit: cover;
    }

    .btn-free-tour {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

/* ===== DESKTOP-ONLY FIXES (no afecta móvil) ===== */
@media (min-width: 769px) {
    /* Hero - cover sin huecos, punto focal más abajo para mostrar los cuerpos */
    .slideshow-container {
        background-size: cover;
        background-position: center 55%;
        height: 120%;
    }

    /* Map image slightly larger on desktop */
    .coruna-map-hero {
        max-width: 700px;
    }

    /* Gastro grid - ensure 3 columns on desktop */
    .gastro-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hotels grid - ensure 3 columns on desktop */
    .hotels-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Event images (preboda, ceremonia) - completas sin recorte */
    .event-image {
        min-height: unset;
    }

    .event-image img {
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    /* Stop images (free tour) - completas sin recorte */
    .stop-image {
        max-height: none;
    }

    .stop-image img {
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
}
