:root {
    --verde-bosque: #0aa631;
    --azul-noche: #054ba6;
    --dorado: #ffd700;
    --blanco-perla: #eaebed;
    --gris-suave: #f8f9fa;
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gris-suave);
    color: #333;
    overflow-x: hidden;
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--azul-noche);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* === Responsive: Reducir gap en móviles para evitar desbordamiento === */
@media (max-width: 991.98px) {
    .row.g-5,
    .row.gx-5 {
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

        .row.g-5 > [class*="col-"],
        .row.gx-5 > [class*="col-"] {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
}

/* Opcional: Elimina gap en pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .row.g-5,
    .row.gx-5 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 1rem !important; /* Espacio vertical si no hay horizontal */
    }

        .row.g-5 > [class*="col-"],
        .row.gx-5 > [class*="col-"] {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
}

/* === Hero Section === */
.hero {
    background: url('/jardinmeztli/img/m1.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    isolation: isolate;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 0;
    }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    margin-bottom: 1rem;
    color: var(--blanco-perla);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-weight: 800;
}

.hero-lead {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--blanco-perla);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.btn-light {
    background-color: white;
    color: var(--azul-noche);
    border: none;
    padding: 12px 36px;
    font-weight: 600;
    border-radius: 50px !important;
    box-shadow: var(--sombra-media);
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
}

    .btn-light:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

/* === Decoración de iconos === */
.decor-icon {
    position: absolute;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

    .decor-icon i {
        color: var(--dorado);
        font-size: 10rem;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.decor-icon--top-left-15 {
    top: 15%;
    left: 10%;
}

.decor-icon--top-left-10 {
    top: 10%;
    left: 10%;
}

.decor-icon--top-right-10 {
    top: 10%;
    right: 10%;
}

.decor-icon--top-right-15 {
    top: 10%;
    right: 15%;
}

.decor-icon--bottom-left-10 {
    bottom: 20%;
    left: 10%;
}

.decor-icon--bottom-right-10 {
    bottom: 20%;
    right: 10%;
}

.decor-icon--opacity-05 {
    opacity: 0.05;
}

.decor-icon--opacity-06 {
    opacity: 0.06;
}

.decor-icon--opacity-08 {
    opacity: 0.08;
}

.decor-icon--color-verde {
    color: var(--verde-bosque);
}

.decor-icon--color-dorado {
    color: var(--dorado);
}

.decor-icon--size-8 {
    font-size: 8rem;
}

/* === Secciones === */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-light {
    background-color: white;
}

.section-green {
    background-color: var(--verde-bosque);
    color: white;
}

    .section-green h2,
    .section-green h3,
    .section-green h4 {
        color: var(--blanco-perla) !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    }

    .section-green p,
    .section-green li {
        color: rgba(234, 237, 237, 0.95);
    }

/* === Iconos personalizados === */
.icon-custom {
    color: var(--dorado);
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
    transition: var(--transicion);
}

/* === Galería === */
.gallery-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
    object-fit: cover;
}

    .gallery-img:hover {
        transform: scale(1.04);
        box-shadow: var(--sombra-media);
    }

/* === Testimonios === */
.testimonial {
    background-color: var(--blanco-perla);
    border-radius: 16px;
    padding: 32px;
    margin: 20px 0;
    box-shadow: var(--sombra-suave);
    position: relative;
    border: 1px solid rgba(234, 237, 237, 0.6);
    transition: var(--transicion);
}

    .testimonial:hover {
        transform: translateY(-5px);
        box-shadow: var(--sombra-media);
    }

    .testimonial::before {
        content: '"';
        font-size: 5rem;
        color: var(--dorado);
        opacity: 0.15;
        position: absolute;
        top: -15px;
        left: 15px;
        font-family: serif;
        z-index: 0;
    }

    .testimonial p {
        font-style: italic;
        color: #555;
        position: relative;
        z-index: 1;
        margin-bottom: 1rem;
    }

    .testimonial .name {
        font-weight: 600;
        color: var(--verde-bosque);
        font-size: 1.1rem;
    }

/* === Footer === */
footer {
    background-color: var(--azul-noche);
    color: var(--blanco-perla);
    padding: 60px 0 30px;
    position: relative;
    text-align: center;
}

    footer .container {
        position: relative;
        z-index: 1;
    }

    footer a {
        color: var(--blanco-perla);
        text-decoration: none;
        transition: var(--transicion);
    }

        footer a:hover {
            color: var(--dorado);
            text-decoration: underline;
        }

/* === Mapa y formulario === */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--sombra-media);
    border: 3px solid var(--blanco-perla);
    margin-top: 1rem;
}

    .map-container iframe {
        transition: transform 0.3s ease;
    }

    .map-container:hover iframe {
        transform: scale(1.02);
    }

.form-control,
.btn-primary {
    border-radius: 12px;
    box-shadow: none;
    transition: var(--transicion);
}

    .form-control:focus {
        border-color: var(--dorado);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    }

.btn-primary {
    background-color: var(--verde-bosque);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
}

    .btn-primary:hover {
        background-color: #97F20F;
        transform: translateY(-2px);
        box-shadow: var(--sombra-media);
        color: #000000;
    }

/* === Animaciones === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transicion);
}

    .fade-in.appear {
        opacity: 1;
        transform: translateY(0);
    }

.hover-lift {
    transition: var(--transicion);
    will-change: transform;
}

    .hover-lift:hover {
        transform: translateY(-8px);
        box-shadow: var(--sombra-media) !important;
    }

/* === Calendario === */
.calendar-body td {
    height: 60px;
    vertical-align: middle;
    cursor: default;
    transition: background-color 0.2s ease;
    user-select: none;
    font-weight: 500;
}

.calendar-body .past {
    color: #aaa;
    background-color: #fafafa;
    pointer-events: none;
}

.calendar-body .booked {
    background-color: #fdf8f3;
    position: relative;
    cursor: not-allowed;
}

    .calendar-body .booked::after {
        content: "✗";
        font-weight: bold;
        color: var(--dorado);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.3rem;
    }

.calendar-body .today {
    background-color: rgba(27, 115, 65, 0.15);
    border: 2px solid var(--dorado);
    color: var(--azul-noche);
    font-weight: 700;
    position: relative;
}

    .calendar-body .today::after {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 8px;
        background-color: var(--dorado);
        border-radius: 50%;
    }

/* === Botones del calendario === */
.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-btn {
    background: white;
    border: 1px solid #ddd;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
}

    .calendar-btn:hover:not(:disabled) {
        background: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: var(--sombra-media);
    }

    .calendar-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

.calendar-title {
    font-size: 1.6rem;
    color: var(--azul-noche);
    margin: 0;
    font-weight: 600;
}

.badge-disponible {
    background-color: #6c757d;
    color: white;
    padding: 0.6em 1.2em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-apartado {
    background-color: var(--dorado);
    color: white;
    padding: 0.6em 1.2em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 1.2rem;
    }

    .decor-icon {
        opacity: 0.03;
        font-size: 6rem;
    }

    .section {
        padding: 60px 0;
    }

    .btn-light, .btn-primary {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* === Carrusel de galería === */
.carousel-item {
    transition: transform 0.5s ease;
}

.main-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 16px;
}

.carousel-item.active .main-img {
    transform: scale(1.05);
    box-shadow: var(--sombra-media);
}

.transition-img {
    opacity: 0.7;
    transform: scale(0.95);
    transition: var(--transicion);
    border-radius: 12px;
}

.carousel-item.active ~ .carousel-item .transition-img,
.carousel-item.active .transition-img {
    opacity: 0.7;
}

.carousel-item:not(.active) .transition-img {
    opacity: 0.5;
    transform: scale(0.9);
}

.carousel-item:hover .transition-img {
    opacity: 1;
    transform: scale(1);
}

/* Responsive carrusel */
@media (max-width: 768px) {
    .carousel-inner {
        min-height: auto;
    }

    .carousel-item .col-md-2 {
        display: none !important;
    }

    .main-img {
        max-height: 300px;
    }
}

.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('/jardinmeztli/img/m1.jpg'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #010427, #081639);
    z-index: 1;
    transition: background 0.5s ease;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-logo {
    max-height: 300px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--verde-bosque);
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0px 0px 8px rgba(255,255,255,0.7); /* Opcional: ligero brillo para más contraste */
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-action {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}
