:root {
    --bg-gradient: linear-gradient(135deg, #0d1d32 0%, #0c0d13 50%, #1c2234 100%);
    --btn-pastel-azul: #6fa3ef;
    --btn-pastel-green: #6fefb1;
    --btn-pastel-yellow: #f7d969;
    --btn-calendar: linear-gradient(135deg, #f7d969, #6fa3ef);
    --btn-color1: #ffffff;
    --btn-color2: #1d1d1d;
    --star-color: rgba(255, 255, 255, 0.8);
}

html,
body {
    scroll-behavior: auto;
    font-family: 'Poppins';
}

body {
    margin: 0;
    background: var(--bg-gradient);
    overflow-x: hidden;
    color: #ffffff;
    min-height: 100vh;
}

section {
    min-height: auto;
    /* Ajustado para que no ocupe 100vh si no es necesario */
    padding: 5rem 2rem;
    /* Padding interno de la sección */
    margin-bottom: 2.5rem;
    /* Margen para separar secciones */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    color: var(--btn-color1);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

h1,
h2 {
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #a3d2f2;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #a3d2f2;
}

p.lead,
p {
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    max-width: 900px;
    margin-bottom: 2rem;
}


.btn-custom {
    border-radius: 30px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-custom:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-custom:hover {
    transform: translateY(-3px) scale(1.02);
    background: #fff;
    color: #000000;
    border-color: #f7d969;
    box-shadow: 0 0 15px rgba(247, 217, 105, 0.7);
}

.btn-pastel-blue {
    background: var(--btn-pastel-azul);
    color: var(--btn-color1);
}

.btn-pastel-green {
    background: var(--btn-pastel-green);
    color: var(--btn-color2);
}

.btn-pastel-yellow {
    background: var(--btn-pastel-yellow);
    color: var(--btn-color2);
}

.btn-calendar {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--btn-calendar);
    border-radius: 25px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-calendar:hover {
    transform: translateY(-3px) scale(1.02);
    background: #fff;
    color: #000000;
    border-color: #f7d969;
    box-shadow: 0 0 15px rgba(247, 217, 105, 0.7);
}

.btn-calendar:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-container {
    max-width: 800px;
    width: 90%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    transition: transform 0.3s ease;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-effect {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #6fa3ef;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-effect::placeholder {
    color: transparent;
}

.form-effect:focus {
    background-color: #fff;
    color: #1d1d1d;
    border-color: #f7d969;
    box-shadow: 0 0 15px rgba(247, 217, 105, 0.7);
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-effect:focus+label,
.form-effect:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 13px;
    background: rgba(29, 29, 29, 0.9);
    color: #f7d969;
    padding: 0 6px;
    border-radius: 6px;
}

/* Spinner animado */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top: 3px solid #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Opcional: estilo para el botón deshabilitado */
.btn[disabled] {
    opacity: 0.8;
    cursor: not-allowed;
}

.carousel-inner {
    max-width: 700px;
    margin: 0 auto;
    height: 100%;
    /* Permitimos que la altura sea definida por el 'ratio' wrapper */
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Mantiene la imagen completa sin recortar */
    background-color: rgba(29, 29, 29, 0.8);
    /* Fondo para el espacio vacío si la imagen no llena el 100% */
    border-radius: 12px;
}
