@font-face {
    font-family: 'SafiraMarch';
    src: url("./fonts/SafiraMarch.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MondaySans';
    src: url("./fonts/MondaySans.ttf") format('opentype');
    font-weight: normal;
    font-style: normal;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'MondaySans', sans-serif;
    background-color: #fefaf6;
    color: #5c4c42;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Fondo de imagen desplazable */

nav {
    width: 100%;
    height: 6vh;
    background-color: #8d7e74;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    /* Mantiene la navegación fija en la parte superior */
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 6rem;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: 1rem;
}

nav ul li a:hover {
    color: #b3b3b3;
}

/* Contenedor principal */
.container {
    max-width: auto;
    margin: 0 auto;
}

/* Sección del logo */
.logo {
    background-color: #E9E2DC;
    text-align: center;
    overflow: hidden;
    height: 50%;
}

.logo img {
    margin-top: 1.5%;
    width: 800px;
    height: auto;
    clip-path: inset(12% 0 12% 0);
}

/* Encabezado */
header {
    text-align: center;
    padding: 50px 0;
}

header h1 {
    font-family: 'SafiraMarch', sans-serif;
    margin-top: -5%;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #a76b5d;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2em;
    color: #8d7e74;
}

/* Sección de la historia */
.story,
.transport {
    padding: 50px 0;
    background-color: #fefaf6;
    text-align: center;
}

.story h2,
.transport h2,
.ryr h2 {
    font-family: 'SafiraMarch', sans-serif;
    font-size: 1.5em;
    color: #a76b5d;
    margin-bottom: 20px;
}

.story p,
.transport p,
.ryr p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #8d7e74;
}

/*Imagen de fondo*/

.bg1,
.bg2 {
    margin: 0;
    padding: 0;
    background-repeat: no-repeat;
    background-size: 100%;
    background-attachment: fixed;
    height: 70vh;
}

.bg1 {
    background-image: url("img/bg1.jpg");
}

.bg2 {
    background-image: url("img/bg2.jpg");
}

/* Sección de la boda */
.wedding-info {
    text-align: center;
    padding: 50px 0;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.wedding-info h2 {
    font-family: 'SafiraMarch', sans-serif;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #a76b5d;
}

.wedding-info p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #8d7e74;
}

.wedding-info .date-time {
    font-size: 1.5em;
    color: #755b4a;
    margin-bottom: 40px;
}

.countdown-container {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#countdown div {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 24px;
    color: #2d3436;
}

#countdown span {
    font-weight: bold;
    font-size: 40px;
    color: #755b4a;
}

.donde {
    display: flex;
    margin-top: 3%;
    justify-content: center;
    /* Espacio entre los párrafos */
    gap: 200px;
    align-items: flex-start;
    /* Alineación en la parte superior */
}

.donde p {
    margin: 0;
    padding: 0 10px;
    /* Opcional: Espacio entre párrafos */
    flex: 1;
    /* Los párrafos tomarán el mismo ancho */
}

.donde p:first-child {
    margin-top: -1%;
    /* Mantiene el margen superior en el primer párrafo */
}

.ryr {
    box-shadow: 0px -5px 10px -5px rgba(0, 0, 0, 0.2),
        /* Sombra arriba */
        0px 5px 10px -5px rgba(0, 0, 0, 0.2);
    /* Sombra abajo */
    background-color: #dfcfcd;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    border-style: solid;
    border-color: #d1a79f;
    margin: 20px 20px 20px 20px;
}

/* Estilos del modal */
.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    /* Sobre toda la página */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Activar scroll si es necesario */
    background-color: rgba(0, 0, 0, 0.4);
    /* Fondo oscuro semitransparente */
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    /* Centrado vertical */
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    /* Ancho máximo */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    /* Sombra */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.DatC {
    display: flex;
    margin-top: 3%;
    justify-content: center;
    gap: 50px;
    align-items: flex-start;
}

.gif,
.rules {
    margin-top: 2%;
}

.register {
    margin: 2% 25% 3% 25%;
    padding: 0 0 2% 0;
    border-style: solid;
    border-color: #a76b5d;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.rules ul {
    margin: 0 15% 0 15%;
    text-align: left;
    font-weight: bold;
    font-size: 0.8em;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #d1a79f;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #c5948a;
}


/* Estilos generales del formulario */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    font-family: 'MondaySans', sans-serif;
}

/* Estilo para las etiquetas */
form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

/* Contenedor para nombre y apellido en una línea */
.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-row .input-group {
    flex: 1;
    margin-right: 10px;
}

.form-row .input-group:last-child {
    margin-right: 0;
}

/* Estilo para los campos de entrada */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 80%;
    padding: 12px 10px 12px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    border-color: #d1a79f;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
    resize: none;
    margin-bottom: 15px;
}

form textarea {
    padding: 12px 0 12px 0;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
    border-color: #c5948a;
    border-width: 2px;
    outline: none;
}

/* Estilo específico para teléfono y email más grandes */


/* Estilo para la selección de asistencia */
.attendance-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 35%;
}

.attendance-group input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.attendance-group label {
    margin-top: 15px;
    margin-right: 30px;
    font-size: 1em;
}

/* Estilo para el botón de envío */
form button[type="submit"] {
    margin-top: 3%;
    margin-left: 40%;
    display: block;
    padding: 15px 30px;
    background-color: #d1a79f;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'MondaySans', sans-serif;
}

form button[type="submit"]:hover {
    background-color: #c5948a;
}


.collapsible {
    margin-top: 15px;
    color: #755b4a;
    cursor: pointer;
    background-color: #fefaf6;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 18px;
    align-items: center;
}

.collapsible:focus { 
    outline-color: transparent; 
    outline-style: none;
}

.collapsible p {
    font-family: 'MondaySans', sans-serif;
    display: inline-block;
    margin-top: -5px;
    padding: 10px 30px;
    background-color: #d1a79f;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1em;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.collapsible p:hover {
    background-color: #c5948a;
}

.content {
    align-items: center;
    text-align: center;
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    height: 800px;
}

.map-container {
    display: flex;
    justify-content: center;
    gap: 300px;
    margin-top: 10px;
    height: auto;
}

.map-container p {
    font-weight: bold;
    color: #755b4a;
}

iframe {
    width: 600px;
    height: 450px;
}


.bodas {
    background-color: #E9E2DC;
}

/* Sección del footer */
footer {
    padding: 30px 0;
    text-align: center;
    background-color: #8d7e74;
    color: #fff;
}

footer p {
    margin: 0;
    font-size: 1em;
}

.itinerario-img {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    height: auto;
    opacity: 0.95; /* Hacer la imagen un poco más transparente */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); /* Añadir sombra sutil */
    border-radius: 12px; /* Bordes suaves */
    transition: all 0.3s ease-in-out; /* Añadir una transición suave */
}

.itinerario-img.active {
    opacity: 1;
    filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.15)); /* Sombra más fuerte en hover */
}

.Intinerario-div {
    margin-top: 5%;
    text-align: center;
    padding: 20px;
}

/* Responsividad para tabletas */
@media screen and (max-width: 768px) {
    nav ul {
        gap: 2rem;
    }

    nav ul li a {
        font-size: 10px;
    }

    .logo img {
        width: 350px;
        height: auto;
    }

    .logo h1 {
        font-size: 26px;
    }

    .story h2,
    .transport h2,
    .ryr h2 {
        font-size: 1em;
    }

    .story p,
    .transport p,
    .ryr p {
        font-size: 0.8em;
    }

    .bg1,
    .bg2 {
        height: 30vh;
    }
    .bg1{
        background-size: 250%;
        background-position: right center;
    }
    .bg2{
        background-size: 100%;
        background-position: bottom center;
        height: 20vh;
    }

    .wedding-info h2{
        font-size: 1em;
    }

    .wedding-info .date-time{
        font-size: 1em;
    }
    .countdown-container{
        font-size: .8em;
    }
    #countdown div {
        padding: 10px 5px;
        font-size: 15px;
    }
    #countdown span {
        font-size: 18px;
    }

    .donde{
        gap: 50px;
    }

    .donde p{
        font-size: .8em;
        padding: 0 0;
    }

    .DatC{
        display: block;
    }
    .DatC h3{
        color: #d1a79f;
    }
    .register{
        margin: 10% 5% 10% 5%;
    }
    .rules ul {
        margin: 0 5% 0 5%;
    }
    .btn{
        font-size: .8em;
        padding: 12px 20px;
    }
    .attendance-group{
        margin-left: 12%;
    }
    form button[type="submit"]{
        margin-left: 28%;
    }
    .mensajej{
        font-size: .7em;
    }
    .map-container{
        display: block;
        gap: 0;
    }
    iframe{
        width: auto;
        height: 180px;
    }
    .itinerario-img.active {
        transform: scale(1.5);
        transition: transform 0.3s ease-in-out;
    }
}

/* Responsividad para móviles */
@media screen and (max-width: 480px) {
    nav ul {
        gap: 2rem;
    }

    nav ul li a {
        font-size: 10px;
    }

    .logo img {
        width: 350px;
        height: auto;
    }

    .logo h1 {
        font-size: 26px;
    }

    .story h2,
    .transport h2,
    .ryr h2 {
        font-size: 1em;
    }

    .story p,
    .transport p,
    .ryr p {
        font-size: 0.8em;
    }

    .bg1,
    .bg2 {
        height: 30vh;
    }
    .bg1{
        background-size: 250%;
        background-position: right center;
    }
    .bg2{
        background-size: 100%;
        background-position: bottom center;
        height: 20vh;
    }

    .wedding-info h2{
        font-size: 1em;
    }

    .wedding-info .date-time{
        font-size: 1em;
    }
    .countdown-container{
        font-size: .8em;
    }
    #countdown div {
        padding: 10px 5px;
        font-size: 15px;
    }
    #countdown span {
        font-size: 18px;
    }

    .donde{
        gap: 50px;
    }

    .donde p{
        font-size: .8em;
        padding: 0 0;
    }

    .DatC{
        display: block;
    }
    .DatC h3{
        color: #d1a79f;
    }
    .register{
        margin: 10% 5% 10% 5%;
    }
    .rules ul {
        margin: 0 5% 0 5%;
    }
    .btn{
        font-size: .8em;
        padding: 12px 20px;
    }
    .attendance-group{
        margin-left: 12%;
    }
    form button[type="submit"]{
        margin-left: 28%;
    }
    .mensajej{
        font-size: .7em;
    }
    .map-container{
        display: block;
        gap: 0;
    }
    iframe{
        width: auto;
        height: 180px;
    }

    .itinerario-img.active {
        transform: scale(1.5);
        transition: transform 0.3s ease-in-out;
    }
}
