/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --primary-color: #bfa37e;
    --primary-dark: #a38968;
    --bg-color: #fdfaf6;
    --text-color: #333;
    --white: #ffffff;
	--black-trans: rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HERO SECTION (PORTADA)
   ========================================= */
.hero {
	height: 100vh;
    width: 100%;
    background: linear-gradient(var(--black-trans), var(--black-trans)), url('./img/Pedida2.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
	width: 100%;
    padding: 20px;
}

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4rem, 15vw, 10rem); /* Responsive font size */
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 10vw, 6rem);
}

.hero h3 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
}

.countdown {
    font-family: 'Montserrat', sans-serif; /* Mejor legibilidad que Great Vibes */
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: clamp(1rem, 4vw, 2.5rem);
    margin-top: 2rem;
    font-weight: 300;
}

.countdown div {
    padding: 10px 15px;
	font-weight: bold;
}

.countdown span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* =========================================
   3. CARRUSEL
   ========================================= */
.carrusel {
	display: grid;
	padding-block: 128px;
	place-content: center;
	gap: 8px;
	border: solid 3px black;
	text-align: center;
}

@keyframes show {
	from {
		opacity: 0; scale: 10%;
	}
	
	to {
		opacity: 1; scale: 100%;
	}
}

.contenedor-h2 {
  display: flex;
  justify-content: center;
}

.carrusel h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 4rem);
	color: #a38968;
	font-weight:400;
}

.carrusel img {
	width: 400px;
	height: 400px;
	object-fit: cover;
	border-radius: 16px;
	view-timeline-name: --reveal;
	animation-name: show;
	animation-fill-mode: both;
	animation-timeline: --reveal;
	animation-range: entry 25% cover 50%;
	margin: 0 auto;
	filter: grayscale(100%);
}

.carousel-container {
    padding: 80px 0;
    background: var(--bg-color);
}

.carousel-container h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 7vw, 5rem); /* Responsive font size */
    margin-bottom: 0.5rem;
	text-align: center;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    aspect-ratio: 16/9; /* Mantiene proporción en cualquier pantalla */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrusel img:hover {
    filter: grayscale(0%);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.next { right: 10px; }
.prev { left: 10px; }

/* =========================================
   4. DETALLES Y GRID
   ========================================= */
.details { padding: 80px 0; }

.images-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.donde, .cuando, .horario {
	filter: grayscale(100%);
	background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 350px;
    height: 420px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.donde {
	background-image: url("./img/donde.webp");
	
}

.cuando {
	background-image: url("./img/cuando.jpg");
}

.horario {
	background-image: url("./img/horario.jpg");
}

.donde::before, .cuando::before, .horario::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.donde h2, .cuando h2, .horario h2 {
    font-family: 'Great Vibes', cursive;
    /*font-size: clamp(3rem, 8vw, 3.5rem);*/
    font-size: 3.5rem;
	color: white;
	z-index: 2;
}

.donde h3, .cuando h3, .horario h3 {
    font-family: 'Great Vibes', cursive;
    /*font-size: clamp(2rem, 4vw, 2.5rem);*/
    font-size: 2.5rem;
	color: white;
	z-index: 2;
	font-weight:400;
}

.horario h3 {
    /*font-size: clamp(1.5rem, 4vw, 2rem);*/
    font-size: 2rem;
}



/* Estilos para la sección del mapa */
.mapa-seccion {
    padding: 60px 0;
    text-align: center;
}

.mapa-seccion h2 {
    margin-bottom: 10px;
	font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 4rem);
	color: #a38968;
}

.mapa-seccion h3 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
	color: #a38968;
	font-weight:400;
}

/* Contenedor responsivo para mantener la proporción */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    position: relative;
    height: 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* =========================================
   5. FORMULARIO RSVP
   ========================================= */
.rsvp {
    background-color: #f4eee8;
    padding: 80px 0;
}

.container h2, h3 {
	text-align: center;
}

form {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
}

form p {
	font-weight: bold;
}

.form-group { margin-bottom: 20px; }

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    margin-top: 5px;
}

.asistente-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-control {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-add { background-color: var(--primary-color);}
.btn-remove { background-color: #e74c3c; }

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.radio-group input { display: none; }

.btn-radio {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: 0.3s;
}

.radio-group input:checked + .btn-radio {
    background: var(--primary-color);
    color: white;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: var(--primary-dark); }

.success-msg {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.yt-result-item {
    display: flex;
    padding: 10px;
    gap: 10px;
    cursor: pointer;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.yt-result-item:hover { background: #f0f0f0; }

.yt-result-item img {
    width: 80px;
    border-radius: 4px;
}

/* Video Responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.sello {
	background-image: url("./img/favicon.png");
	filter: grayscale(100%);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
    max-width: 350px;
    height: 230px;
    object-fit: cover;
    border-radius: 15px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* =========================================
   6. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {
    .hero {
		height: 100vh;
		width: 100%;
		background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('./img/Pedida-movil2.png');

		/*background-attachment: fixed;*/
		background-attachment: scroll;
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
		display: flex;
		justify-content: center;
		color: var(--white);
		text-align: center;
	}
	
	.images-grid img {
        height: 300px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .asistente-row {
        flex-direction: row !important; 
        align-items: center;
        gap: 10px;
    }
    
    .asistente-row input {
        flex: 1;
        margin-top: 0;
    }

    .asistente-controls {
        display: flex;
        gap: 5px;
        flex-shrink: 0;
    }
    
    .btn-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

