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

body {
    font-family: 'Gelion', sans-serif;
    color: #8b7355;
    background: #FBE4BD;
    overflow-x: hidden;
}

/* ===== IMAGEN FIJA IZQUIERDA ===== */
.fixed-left-image {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 0.5s ease;
    mix-blend-mode: darken;
}

/* ===== LAYOUT GENERAL SECCIONES ===== */
.section {
    min-height: 100vh;
    margin-left: 50%;
    width: 50%;
    position: relative;
    z-index: 10;
    background: #FBE4BD;
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* ===== ANIMACIONES FADE IN ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO SECTION ===== */
.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wedding-announcement {
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.wedding-announcement::before,
.wedding-announcement::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b7355' stroke-width='1.5'%3E%3Cpath d='M12 2L13.09 8.26L20 9L13.09 9.74L12 16L10.91 9.74L4 9L10.91 8.26L12 2Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 20px 20px;
}

.wedding-announcement::before {
    left: -84px;
}

.wedding-announcement::after {
    right: -84px;
}

.wedding-names {
    font-family: 'MsMadi', cursive;
    font-size: 78pt;
    color: #8b7355;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease 0.4s backwards;
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

.wedding-date {
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #8b7355;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    animation: fadeInUp 1s ease 0.6s backwards;
    display: inline-block;
    width: auto;
}

.wedding-location {
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #8b7355;
    letter-spacing: -0.02em;
    margin-top: 0.3rem;
    animation: fadeInUp 1s ease 0.8s backwards;
    display: inline-block;
    width: auto;
}


/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Gelion', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #8b7355;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== TIMELINE ===== */
.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item:hover {
    opacity: 1;
}

.timeline-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FBE4BD;
    border: 1pt solid #8b7355;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-icon {
    background: #8b7355;
    border: none;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
    stroke: #8b7355;
}

.timeline-item.active .timeline-icon svg {
    stroke: #feecc5;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-family: 'Gelion', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #8b7355;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #8b7355;
    letter-spacing: -0.02em;
}

/* Separadores entre items (3 puntos verticales) */
.timeline-separator {
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
}

.timeline-separator::before,
.timeline-separator::after {
    content: '•';
    font-size: 8px;
    color: #8b7355;
    line-height: 1;
}

.timeline-separator span {
    font-size: 8px;
    color: #8b7355;
    line-height: 1;
}

/* ===== CONTACT SECTION / FORM ===== */
.wedding-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Form rows */
.form-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16pt;
    border-bottom: 1px solid rgba(139, 115, 85, 0.08);
    margin-bottom: 16pt;
}

.form-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon svg {
    width: 24px;
    height: 24px;
    stroke: #8b7355;
    stroke-width: 1.5;
}

.form-input {
    flex: 1;
    min-width: 120px;
}

.form-input input {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #8b7355;
    letter-spacing: -0.02em;
    outline: none;
}

.form-input input::placeholder {
    color: #8b7355;
    opacity: 0.6;
}

.form-input input:read-only {
    font-weight: 600;
    cursor: default;
}

/* Counter controls */
.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #8b7355;
    border-radius: 20px;
    background: transparent;
    color: #8b7355;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gelion', sans-serif;
    line-height: 1;
}

.counter-btn:hover {
    background: #8b7355;
    color: #FBE4BD;
}

.counter-value {
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #8b7355;
    letter-spacing: -0.02em;
    min-width: 20px;
    text-align: center;
}

/* Bus options */
.bus-options {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: nowrap;
    min-width: 0;
}

.bus-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #8b7355;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.bus-option input[type="radio"] {
    display: none;
}

.bus-option span {
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #8b7355;
    letter-spacing: -0.02em;
}

.bus-option:has(input:checked) {
    background: #8b7355;
    border-color: #8b7355;
}

.bus-option:has(input:checked) span {
    color: #FBE4BD;
}

/* Submit button */
.button-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.submit-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background: #8b7355;
    color: #FBE4BD;
    font-family: 'Gelion', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.submit-btn:hover:not(:disabled) {
    background: #6b5b47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

/* Spinner animation */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    stroke: #feecc5;
    stroke-dasharray: 50;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.btn-check {
    font-size: 24px;
    font-weight: bold;
}

/* Form transitions */
.wedding-form {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    transition: opacity 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.success-message h3 {
    font-family: 'Gelion', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #8b7355;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.success-message p {
    font-family: 'Gelion', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #8b7355;
    letter-spacing: -0.02em;
}


/* ===== HOTELES SECTION ===== */
.hotels-container {
    max-width: 600px;
    margin: 0 auto;
}

.hotel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hotel-item:hover {
    border-color: rgba(139, 115, 85, 0.4);
    background: rgba(139, 115, 85, 0.05);
    transform: translateX(4px);
}

.hotel-item.hotel-info-only {
    cursor: default;
    opacity: 0.7;
}

.hotel-item.hotel-info-only:hover {
    border-color: rgba(139, 115, 85, 0.2);
    background: transparent;
    transform: none;
}

.hotel-info {
    flex: 1;
}

.hotel-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #8b7355;
    margin: 0 0 8px 0;
}

.hotel-description {
    font-size: 1rem;
    color: #8b7355;
    opacity: 0.7;
    margin: 0;
}

.hotel-arrow {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.hotel-arrow svg {
    stroke: #8b7355;
    transition: transform 0.3s ease;
}

.hotel-item:hover .hotel-arrow svg {
    transform: translateX(4px);
}

/* ===== MENÚ LATERAL DERECHO ===== */
.side-menu {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.menu-item {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Gelion', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b7355;
    text-decoration: none;
    padding: 16px 0;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.menu-item:hover {
    opacity: 1;
    font-weight: 500;
}

.menu-item.active {
    opacity: 1;
    font-weight: 600;
}

.menu-divider {
    width: 1px;
    height: 24px;
    background: rgba(139, 115, 85, 0.08);
}

/* Clases para mostrar/ocultar en desktop/mobile */
.mobile-only,
.mobile-sticky,
.mobile-floating-image {
    display: none;
}

.desktop-only {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Evitar scroll horizontal */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Mostrar/ocultar elementos según dispositivo */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    /* IMAGEN FLOTANTE CON PARALLAX EN MOBILE */
    .mobile-floating-image {
        display: block;
        position: relative;
        width: 100vw;
        height: 100vh;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
    }
    
    .mobile-floating-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        mix-blend-mode: darken;
        transform: translateY(0);
        transition: opacity 1.5s ease-in-out;
        opacity: 1;
    }
    
    .mobile-floating-image.fade-out img {
        opacity: 0;
    }
    
    /* Hero section: texto arriba, imagen abajo */
    .hero-section {
        margin-left: 0;
        width: 100%;
        position: relative;
        z-index: 10;
    }
    
    .hero-section .content-wrapper {
        min-height: auto;
        padding: 128px 20px 40px; /* 80px + 48px = 128px para más espacio del menú */
    }
    
    /* Secciones generales */
    .section {
        margin-left: 0;
        width: 100%;
    }
    
    .content-wrapper {
        padding: 40px 40px;
        min-height: auto;
    }
    
    /* Ajustar tamaño base del body */
    body {
        font-size: 18px;
    }
    
    /* Tipografía ajustada */
    .wedding-names {
        font-size: 38pt;
        white-space: nowrap;
    }
    
    .wedding-announcement {
        font-size: 1rem;
    }
    
    .wedding-announcement::before,
    .wedding-announcement::after {
        display: block;
    }
    
    .wedding-date,
    .wedding-location {
        font-size: 1rem;
    }
    
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Timeline */
    .timeline {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .timeline-item {
        gap: 15px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    .timeline-separator {
        width: 40px;
    }
    
    /* Formulario */
    .wedding-form {
        max-width: 100%;
    }
    
    .form-row {
        flex-wrap: nowrap;
        gap: 12px;
        padding-bottom: 12pt;
        margin-bottom: 12pt;
        align-items: center;
    }
    
    .form-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .form-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .form-input {
        flex: 1;
        min-width: 0;
    }
    
    /* Counter controls en la misma línea */
    .counter-controls {
        margin-left: 12px;
        margin-top: 0;
        flex-shrink: 0;
    }
    
    /* Bus options: fila especial con icono arriba y opciones abajo */
    .form-row:has(.bus-options) {
        flex-wrap: wrap;
    }
    
    .bus-options {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .bus-option {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Botón */
    .submit-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* Success message */
    .success-message {
        padding: 30px 20px;
    }
    
    .success-message h3 {
        font-size: 1.5rem;
    }
    
    .success-message p {
        font-size: 1rem;
    }
    
    /* Menú fijo arriba en mobile */
    .side-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: rgba(251, 228, 189, 0.95);
        backdrop-filter: blur(10px);
        padding: 15px 20px;
        border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    }
    
    .side-menu .menu-item {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .side-menu .menu-divider {
        display: none;
    }
}
