:root {
    --primary-color: #4f83cc; /* Soft Google Blue */
    --accent-color: #ff8a80; /* Soft Coral Pink */
    --bg-light: #f8f9fa; /* Warm white/light gray */
    --bg-card: #ffffff;
    --text-color: #3c4043; /* Dark gray for high readability */
    --text-muted: #5f6368;
    --border-color: #dadce0;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-text: #3c4043;
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.italic {
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #3b6bb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 131, 204, 0.3);
}

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

.btn-secondary:hover {
    background-color: rgba(79, 131, 204, 0.05);
    color: #3b6bb0;
    border-color: #3b6bb0;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    color: #1a0dab;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.section-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero / Banner Fijo */
.hero-banner {
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    margin: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Menú Horizontal Translúcido */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: center;
}

.nav-menu li {
    padding: 0 0.5rem;
}

.nav-link {
    display: block;
    padding: 1.25rem 1rem;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

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

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
}

/* Responsive Menu */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        bottom: auto;
        left: 0;
        background-color: var(--nav-bg);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-menu li {
        text-align: center;
        padding: 0;
    }
    .nav-link {
        padding: 1rem;
        border-bottom: none;
    }
    .nav-link.active {
        background-color: rgba(79, 131, 204, 0.08);
        border-bottom: none;
    }
}

/* SECCIÓN 1: NUESTRA HISTORIA */
.sec-historia {
    background-color: #fcfcfc;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(odd) {
    left: 50%;
}

.timeline-img {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 15px;
    z-index: 10;
    box-shadow: 0 0 0 4px white, 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(even) .timeline-img {
    right: -20px;
}

.timeline-item:nth-child(odd) .timeline-img {
    left: -20px;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.signature {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-color);
    margin-top: 1.5rem;
}

.story-photo-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 4px solid white;
}

.story-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-photo:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-img {
        left: 11px !important;
    }
}

/* SECCIÓN 2: CUÁNDO Y DÓNDE */
.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1a0dab;
}

.info-card p {
    margin-bottom: 1rem;
}

.location-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.map-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.iframe-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

/* SECCIÓN 3: CONFIRMA TU ASISTENCIA & FORMULARIOS */
.form-card {
    max-width: 750px;
    margin: 0 auto;
}

.form-lead {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 131, 204, 0.15);
}

.companion-block {
    background-color: #f1f3f4;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.companion-block h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.form-note p {
    margin-bottom: 0.25rem;
}

.alert {
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.alert-success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.alert-success i {
    font-size: 1.5rem;
}

.alert-success h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hide {
    display: none !important;
}

/* SECCIÓN 4: ALOJAMIENTO */
.sec-alojamiento {
    background-color: #f1f3f4;
}

.hotel-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hotel-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stars {
    color: #fabb05;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.hotel-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.hotel-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.hotel-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hotel-address i {
    color: var(--accent-color);
}

.hotel-footer {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 3rem;
    font-weight: 500;
    color: var(--text-color);
}

/* SECCIÓN 5: NUESTRO VIAJE (LISTA DE REGALOS) */
.gifts-container {
    background-color: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.gifts-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group, .sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label, .sort-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group select, .sort-group select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: var(--font-primary);
    background-color: white;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 200px;
}

.loading-gifts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gift-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: white;
    position: relative;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.gift-header {
    height: 120px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
}

.gift-destination {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(26, 13, 171, 0.8);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.gift-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gift-body h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.gift-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.gift-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.gift-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a0dab;
}

.gift-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
}

.gift-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(79, 131, 204, 0.03);
}

.gift-card.selected .gift-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.gift-card.selected .gift-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
}

/* Cesta Flotante */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem;
    z-index: 99;
}

.cart-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-info {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
}

.cart-count i {
    color: var(--primary-color);
}

.cart-total strong {
    color: #1a0dab;
    font-size: 1.3rem;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-step h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.summary-details {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.summary-details p {
    margin-bottom: 0.75rem;
}

.summary-items {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.summary-items h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.summary-items ul {
    list-style: inside disc;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.summary-total {
    font-size: 1.15rem;
    text-align: right;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.5rem;
}

.transfer-instructions {
    background-color: #fff9db;
    border: 1px solid #ffe3e3;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.transfer-instructions h4 {
    color: #c92a2a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.iban-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin: 0.5rem 0;
    font-family: monospace;
    font-size: 1.1rem;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* SECCIÓN 7: OTROS DETALLES */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    position: relative;
    padding-left: 4.5rem;
}

.faq-icon {
    position: absolute;
    left: 1.5rem;
    top: 1.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(79, 131, 204, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.faq-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.faq-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    background-color: #202124;
    color: white;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer p {
    color: #9aa0a6;
}
