/* ===== VARIABLES ===== */
:root {
    --font-primary: 'Playfair Display ', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --color-primary: #d4b08c;
    --color-secondary: #2c3e50;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --color-grey: #6c757d;
    --color-background: #ffffff;
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-background);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 176, 140, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ===== CONTENEDOR ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: #9fb296;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: #9fb296;
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: #9fb296;
    color: white;
    
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background-color: #9fb296;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
    background-position: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 15px;
}

.hero h1 {
    font-family: 'Meow Script', cursive;
    font-weight: 300;
    font-size: 7rem;
    margin-top: 20px;
}

.hero h2 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.date {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.countdown-item {
    margin: 0 15px;
    min-width: 80px;
}

.countdown-item span {
    display: block;
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #9fb296;
}

/* ===== NUESTRA HISTORIA ===== */
.our-story {
    background-color: #f7f1e3;
    padding: 0;
    text-align: center;
    position: relative;
}

/* Franja superior */

.story-header {
    background-color: #9fb296; /* Verde pastel */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Tres columnas iguales */
    align-items: center;
    text-align: left;
    padding: 90px 50px;
    color: white;
    position: relative;
    z-index: 2;
}

.story-header > * {
    flex: 1; /* Cada elemento ocupa el mismo espacio */
}

/* Título, logo y texto en la franja */
.story-title {
    font-family: serif;
    font-size: 3rem;
    text-align: left;
    padding-left: 0px;
}

.story-logo{
    display: flex;
    justify-content: center;
    align-items: center;
}
.story-logo img {
    max-width: 300px; /* Ajusta el tamaño del logo */
}

.story-text {
    font-size: 1.4rem;
    text-align: left;
    padding-right: 0px;
    color: white;
}

/* Contenedor de imágenes */
.story-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px; /* Superposición con la franja superior */
    position: relative;
    z-index: 3;
    padding-bottom: 60px; /* Espacio inferior */
}

/* Imágenes */
.story-image {
    position: relative;
    text-align: center;
}

.story-image img {
    width: 500px; /* Ajusta el tamaño */
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Títulos debajo de las imágenes */
.story-image h3 {
    margin-top: 20px;
    font-size: 1.8rem;
    font-family: 'serif';
    color: #333;
}

.story-image2 {
    position: relative;
    text-align: center;
}

.story-image2 img {
    width: 450px; /* Ajusta el tamaño */
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}
/* ===== EVENTO ===== */
.event-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    width: 90%x; /* ocupa todo el ancho del .event-column */
    height: 300px; /* Altura fija para igualar las tarjetas */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
    transition: var(--transition);
  }
  

.event-card:hover {
    transform: translateY(-10px);
}

.event-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #9fb296;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c3e50;
}

.event-icon svg{
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.event-card h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.event-time {
    font-weight: 700;
    margin-bottom: 15px;
    color: #9fb296;
}

.event-columns {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 40px;
    align-items: flex-start; /* Alinea la parte superior de las columnas */
  }
  
  .event-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
  }
  
  .event-column .btn-outline {
    margin: 20px 0;
  }
  
  .event-column .story-image {
    margin-top: 0;
  }

/* ===== UBICACIÓN ===== */
.location {
    background-color: var(--color-light);
    padding: 100px 0;
    text-align: center;
}

/* Contenedor principal: 3 columnas */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ceremonia | Mapa | Recepción */
    gap: 40px;
    align-items: start;
    text-align: center;
    margin-bottom: 50px;
}

/* Información de la ceremonia y recepción */
.location-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Títulos y botones */
.location-info h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.location-info a {
    margin-top: 10px;
}

/* Ajuste del mapa */
.location-map .map-placeholder img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-image {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
  }

.story-image img {
    width: 120%;
    max-width: 380px;
    height: 500px;
    margin-top: 20px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Opcional: zoom sutil al pasar el mouse */
.story-image img:hover {
    transform: scale(1.02);
  }

/* RSVP FORM */
.rsvp-info {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--color-text, #444); /* opcional */
    line-height: 1.6;
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
}

.rsvp-form .form-group {
    margin-bottom: 1.5rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.rsvp-form textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

/* NUEVOS ESTILOS PARA INVITADOS */
.guest-block {
    margin-bottom: 2rem;
}

.guest-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.name-group {
    flex: 1;
    min-width: 200px;
}

.guest-options {
    width: 100%;
}

/* Contenedor horizontal para alergias y autobús */
.guest-question-pair {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.guest-question-pair .form-group {
    flex: 1;
    min-width: 200px;
}

.radio-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== REGALOS ===== */
.gifts{
    background-color: #f9f7f6;
}

.gifts-info {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gifts-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.gift-option {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: var(--transition);
}

.gift-option:hover {
    transform: translateY(-10px);
}

.gift-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #9fb296;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c3e50;
}

.gift-option h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.gift-option p {
    margin-bottom: 20px;
}

/* ===== CONTACTO ===== */
.contact {
    background-color: white;
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-method {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #9fb296;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#2c3e50;
}

.contact-method h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: #9fb296;
    margin-bottom: 10px;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #9fb296;
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .story-content,
    .location-wrapper {
        flex-direction: column;
    }
    
    .story-image,
    .story-text,
    .location-info,
    .location-map {
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .countdown-item {
        margin: 0 10px;
        min-width: 60px;
    }
    
    .countdown-item span:first-child {
        font-size: 2.2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: white;
        flex-direction: column;
        padding: 80px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0 0 20px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .event-card,
    .gift-option,
    .contact-method {
        min-width: 100%;
    }
    
    .radio-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Ocultar el menú en pantallas medianas y móviles */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--color-background);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Ajustes en secciones */
    .story-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-title {
        text-align: center;
    }

    .story-logo {
        justify-content: center;
    }

    .story-image img {
        max-width: 80%;
    }

    .event-cards {
        flex-direction: column;
    }

    .location-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .location-info,
    .story-image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 4rem;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
    
    .countdown-item span:first-child{
        font-size: 1.8rem;
    }

    .countdown {
        flex-direction: row;
        gap: 5px;
    }

    .label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .story-header {
        padding: 40px 20px;
    }

    .story-title {
        font-size: 2rem; /* corregido */
    }

    .story-text {
        font-size: 1rem;
        text-align: center;
    }

    .story-image img {
        max-width: 100%;
    }
    .story-image2 img {
        max-width: 100%;
    }

    .event-card {
        max-width: 90%;
        margin: 0 auto;
    }

    .location-info,
    .location-map {
        width: 100%;
        text-align: center;
    }

    .location-wrapper {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        width: 90%;
    }

    .gifts-options,
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .footer {
        text-align: center;
        padding: 20px;
    }

    /* Estilo visual para radios en formularios móviles */
    .radio-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-options label {
        background-color: #ffffff;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1rem;
    }

    .radio-options input[type="radio"] {
        accent-color: #9fb296;
        width: 18px;
        height: 18px;
    }

    .guest-flex,
    .guest-question-pair {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Móviles pequeños (menos de 576px) */
@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .event-card {
        max-width: 100%;
    }

    .footer-logo {
        font-size: 1.5rem;
    }
}