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

:root {
    --primary-color: #9f2643;
    /* Pink/Salmon */
    --secondary-color: #bf925b;
    /* Gold/Bronze accent */
    --text-color: #4d4d4d;
    --heading-color: #2c2c2c;
    --bg-light: #f6f6f6;
    --white: #ffffff;

    --font-base: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection in forms */
input,
textarea,
select {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    /* Starts transparent */
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.brand {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 24px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar.scrolled .brand {
    color: var(--heading-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary-color);
    position: relative;
}

.navbar.scrolled .nav-list li a {
    color: var(--heading-color);
}

.navbar.scrolled .nav-list li a:hover,
.navbar.scrolled .nav-list li a.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.4s;
}

.navbar.scrolled .bar {
    background-color: var(--heading-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('images/EVA+DIEGO-910_.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    background-attachment: fixed;
    animation: bgFadeIn 2s ease-in-out;
}

@keyframes bgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Increased opacity for better visibility */
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pre-title {
    display: block;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: var(--font-base);
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.couple-names {
    font-family: var(--font-script);
    font-size: 100px;
    line-height: 1.2;
    margin-bottom: 50px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

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

.time-box span {
    display: block;
    font-size: 40px;
    font-weight: 600;
    font-family: var(--font-base);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.time-box p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Invitation Section */
.invite-section {
    padding: 0;
    background: var(--white);
}

.invite-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.invite-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 600px;
}

.invite-content::before {
    content: '';
    display: block;
    width: 50%;
    min-height: 600px;
    background: url('images/EVA+DIEGO-913.jpg') center top/cover;
    flex-shrink: 0;
}

.invite-text-content {
    width: 50%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.invite-text-content h3 {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.cursive-highlight {
    font-family: var(--font-script);
    font-size: 52px;
    color: var(--primary-color);
    margin: 20px 0;
}

.flower-decoration-top {
    margin-bottom: 30px;
}

.flower-icon {
    display: block;
}

@media (max-width: 991px) {
    .invite-content {
        flex-direction: column;
    }

    .invite-content::before {
        width: 100%;
        min-height: 400px;
    }

    .invite-text-content {
        width: 100%;
        padding: 50px 20px;
    }
}

.flower-icon {
    display: block;
    margin: 0 auto;
}

.date-divider {
    margin: 20px 0;
}

.flower-divider-icon {
    font-size: 28px;
    color: var(--secondary-color);
}

.event-details {
    margin-top: 20px;
}

.intro-text {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.date-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 20px 0;
}

.date-display .separator {
    color: var(--secondary-color);
}

.time-venue {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.8;
    margin-top: 20px;
}

/* Section Title (Global) */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 300;
}

/* Groom & Bride Section */
.groom-bride-section {
    background: var(--bg-light);
}

.couple-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.couple-card {
    text-align: center;
    max-width: 350px;
}

.img-frame {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(241, 78, 149, 0.2);
    transition: transform 0.3s ease;
}

.img-frame:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.couple-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.couple-card .bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.bio-cancion {
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-color);
}

.heart-separator {
    font-size: 40px;
    color: var(--primary-color);
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Love Story Timeline */
.love-story-section {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e8e8;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    clear: both;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary-color);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.timeline-content {
    width: 42%;
    padding: 30px 35px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    position: relative;
    margin-top: 20px;
}

.timeline-content.left {
    float: left;
    text-align: right;
    margin-right: auto;
}

.timeline-content.right {
    float: right;
    text-align: left;
    margin-left: auto;
}

/* Arrow pointers for content boxes */
.timeline-content.right::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-left: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

.timeline-content.left::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-right: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

.timeline-content .date {
    display: block;
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 400;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Greetings / Video Section */
.greetings-section {
    background: url('https://images.unsplash.com/photo-1511285560982-1351cdeb9821?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') fixed center center/cover;
    position: relative;
    padding: 150px 0;
    text-align: center;
}

.greetings-section .overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.greetings-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.greetings-content h2 {
    font-size: 50px;
    color: var(--white);
    margin-bottom: 15px;
}

.greetings-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(241, 78, 149, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(241, 78, 149, 0.6);
}

/* People Section (Groomsmen & Bridesmaids) */
.people-section {
    background: var(--bg-light);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.person-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.person-card:hover {
    transform: translateY(-10px);
}

.person-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.person-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.person-card span {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

/* When & Where Section */
.when-where-section {
    background: var(--white);
}

.event-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.event-info {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.event-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.event-info .time {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.event-info .location {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.event-info .desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.map-container {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    flex: 1;
    height: 200px;
    border: 0;
    display: block;
}

/* Gallery Section */
.gallery-section {
    background: var(--white);
    text-align: center;
    padding-bottom: 100px;
    padding-top: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0;
}

.gallery-item {
    height: 280px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    border: 3px solid rgba(241, 78, 149, 0.3);
    box-shadow: 0 5px 20px rgba(241, 78, 149, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(241, 78, 149, 0.25);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 250px;
    }
}

/* RSVP Section */
.rsvp-section {
    background: url('images/EVA+DIEGO-910_.jpg') fixed center center/cover;
    position: relative;
    padding: 120px 0;
}

.rsvp-section .overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.rsvp-box {
    position: relative;
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.rsvp-box h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.rsvp-box p {
    color: #888;
    margin-bottom: 30px;
}

.rsvp-form .form-group {
    margin-bottom: 20px;
}

.rsvp-form input,
.rsvp-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-base);
    font-size: 15px;
    outline: none;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
    border-color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #d63d7f;
    box-shadow: 0 5px 15px rgba(241, 78, 149, 0.4);
}

/* Footer */
.footer {
    padding: 50px 0;
    text-align: center;
    background: #222;
    color: #888;
    font-size: 14px;
}

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

/* Responsive */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
        z-index: 1100;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li a {
        color: var(--heading-color);
        font-size: 20px;
        margin: 10px 0;
    }

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

@media (max-width: 768px) {
    .couple-names {
        font-size: 60px;
    }

    .countdown {
        gap: 20px;
    }

    .time-box span {
        font-size: 30px;
    }

    .couple-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .rsvp-box {
        padding: 40px 20px;
        width: 95%;
    }

    /* New Sections Mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        margin-bottom: 20px;
    }

    .timeline-icon {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        float: right !important;
        margin-left: 60px;
        text-align: left !important;
    }

    .event-info {
        width: 100%;
    }

    .greetings-content h2 {
        font-size: 40px;
    }
}

.sub-options {
    margin-top: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    text-align: left;
    animation: fadeInSlide 0.4s ease forwards;
}

.rutas-main-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--heading-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.custom-checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 3px 8px rgba(159, 38, 67, 0.3);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.ruta-titulo {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

.ruta-detalles {
    font-size: 14px;
    color: #777;
    margin-top: 2px;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
