/* ============================================
   Secciones Específicas - Estilos Mejorados
   ============================================ */

/* Timeline Section */
.historia {
    background: linear-gradient(135deg, #F5F1E8 0%, #FDFBF7 100%);
}

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

.timeline-image-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
}

.timeline-nave {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    border-radius: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--color-secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:first-child {
    min-height: 300px;
}

.timeline-item.left {
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.timeline-item.right {
    justify-content: flex-start;
    padding-left: calc(50% + 40px);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    font-family: var(--font-title);
    color: var(--color-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--color-primary);
    line-height: 1.8;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-secondary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--color-cream);
}

/* Evento Section */
.evento {
    background: white;
}

.venue-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hotel-illustration {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.venue-image:hover .hotel-illustration {
    transform: scale(1.02);
}

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

.evento-card {
    background: var(--color-cream);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.evento-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.2);
}

.evento-icon {
    width: 80px;
    height: 80px;
    background: #9B8456;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(155, 132, 86, 0.3);
}

.evento-card h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.evento-card p {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.evento-card p.small {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    margin: 3rem 0;
}

/* Cronograma Section */
.cronograma {
    background: linear-gradient(135deg, #F5F1E8 0%, #FDFBF7 100%);
    background-image: url('../images/alcon1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cronograma::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.cronograma .container {
    position: relative;
    z-index: 2;
}

.cronograma-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.cronograma-item {
    display: grid;
    grid-template-columns: 120px 60px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.cronograma-item::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 60px;
    width: 2px;
    height: calc(100% + 2.5rem);
    background: linear-gradient(180deg, var(--color-secondary), transparent);
}

.cronograma-item:last-child::before {
    display: none;
}

.cronograma-time {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-secondary);
    text-align: right;
    font-weight: 600;
}

.cronograma-icon {
    width: 60px;
    height: 60px;
    background: #9B8456;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(155, 132, 86, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cronograma-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cronograma-content h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.cronograma-content p {
    color: var(--color-primary);
    margin: 0;
}

/* Transporte Section */
.transporte {
    background: white;
}

.transporte-image {
    max-width: 400px;
    margin: 0 auto 3rem;
    text-align: center;
}

.nave-illustration {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.transporte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.transporte-card {
    background: var(--color-cream);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--color-secondary);
}

.transporte-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.transporte-card h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.transporte-time {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin: 0.5rem 0;
}

.transporte-note {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--color-secondary);
}

/* Alojamiento Section */
.alojamiento {
    background: linear-gradient(135deg, #F5F1E8 0%, #FDFBF7 100%);
}

.alojamiento-image {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.hotel-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid #C9A961;
    padding: 10px;
    background: white;
}

.alojamiento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.alojamiento-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.alojamiento-description {
    flex-grow: 1;
}

.alojamiento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.alojamiento-card h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-cream);
    padding-bottom: 1rem;
}

.alojamiento-address,
.alojamiento-distance,
.alojamiento-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.alojamiento-address i,
.alojamiento-distance i,
.alojamiento-price i {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

.alojamiento-description {
    color: var(--color-primary);
    line-height: 1.8;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--color-cream);
    border-radius: 10px;
    font-style: italic;
}

.alojamiento-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.alojamiento-contact .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-secondary), #D4AF37);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.alojamiento-contact .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.btn-sm {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: none;
}

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

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

/* RSVP Section */
.rsvp {
    background: white;
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo difuminada */
.rsvp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/casaacu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.1);
    z-index: 0;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 251, 247, 0.85);
    z-index: 1;
}

.rsvp .container {
    position: relative;
    z-index: 2;
}

.rsvp-symbols {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.symbol-img {
    width: 120px;
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.symbol-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 1rem;
}

/* Mensajes Section */
.mensajes {
    background: linear-gradient(135deg, #F5F1E8 0%, #FDFBF7 100%);
}

.mensaje-image {
    text-align: center;
    margin: 3rem auto;
    max-width: 600px;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navere-img {
    width: 30%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.navere-img:last-child {
    transform: scaleX(-1);
}

.mensaje-form {
    max-width: 700px;
    margin: 0 auto 4rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.char-count {
    display: block;
    text-align: right;
    color: var(--color-primary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

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

.mensaje-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1.5rem;
}

.mensaje-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mensaje-content h4 {
    font-family: var(--font-title);
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.mensaje-content p {
    color: var(--color-primary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.mensaje-date {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

/* Regalos Section */
.regalos {
    background: white;
}

.regalos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.regalo-card {
    background: var(--color-cream);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.regalo-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.2);
}

.regalo-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.regalo-card h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.regalo-card p {
    color: var(--color-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .cronograma-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cronograma-item::before {
        display: none;
    }
    
    .cronograma-time {
        text-align: left;
    }
    
    .rsvp-form,
    .mensaje-form {
        padding: 2rem 1.5rem;
    }
}

/* Mobile Optimizations para secciones específicas */
@media (max-width: 767px) {
    /* RSVP Section Mobile */
    .rsvp {
        padding: 3rem 0;
    }
    
    .rsvp::after {
        filter: blur(2px);
        transform: scale(1.05);
    }
    
    .rsvp .container {
        padding: 0 1rem;
    }
    
    .rsvp-form {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .rsvp-form .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .rsvp-form .form-group {
        margin-bottom: 1rem;
    }
    
    .rsvp-form label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        padding: 0.75rem;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* Checkbox transporte en columna */
    .form-group:has(.checkbox-group) {
        margin-bottom: 1rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .checkbox-group label {
        font-size: 0.85rem;
    }
    
    /* Timeline Mobile */
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-title {
        font-size: 1.25rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    /* Cronograma Mobile */
    .cronograma {
        padding: 2rem 0;
    }
    
    .cronograma-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cronograma-time {
        font-size: 0.9rem;
    }
    
    .cronograma-title {
        font-size: 1.1rem;
    }
    
    /* Evento Section Mobile */
    .evento-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .evento-card {
        padding: 1.5rem;
    }
    
    .evento-card h3 {
        font-size: 1.1rem;
    }
    
    /* Mensajes Section Mobile */
    .mensaje-form {
        padding: 1.5rem;
    }
    
    .mensajes-list {
        max-height: 400px;
    }
    
    .mensaje-item {
        padding: 1rem;
    }
    
    /* Regalo Section Mobile */
    .regalo-content {
        padding: 0 1rem;
    }
    
    .regalo-card {
        padding: 1.5rem;
    }
    
    .regalo-card h3 {
        font-size: 1.25rem;
    }
    
    /* Galería Mobile */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .galeria-item img {
        height: 150px;
    }
    
    /* FAQ Mobile */
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (hasta 575px) */
@media (max-width: 575px) {
    .rsvp-form,
    .mensaje-form {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    
    .rsvp h2,
    .mensajes h2 {
        font-size: 1.75rem;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        padding-left: 50px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
        width: 16px;
        height: 16px;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-item img {
        height: 200px;
    }
    
    /* Símbolos RSVP más pequeños */
    .rsvp-symbols {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .symbol-img {
        width: 80px;
    }
}

/* Very Small Mobile (hasta 375px) */
@media (max-width: 375px) {
    .rsvp-form,
    .mensaje-form {
        padding: 1rem 0.875rem;
    }
    
    .rsvp h2,
    .mensajes h2 {
        font-size: 1.5rem;
    }
    
    .symbol-img {
        width: 60px;
    }
    
    .cronograma-item {
        padding: 0.875rem;
    }
    
    .evento-card {
        padding: 1.25rem;
    }
}
