/* Configuración General */
body { 
    font-family: 'Outfit', sans-serif; 
}

/* Colores Corporativos */
.text-lime-fun { 
    color: #65a30d; 
} 

.bg-lime-fun { 
    background-color: #84cc16; 
}

.border-lime-fun { 
    border-color: #84cc16; 
}

/* Tarjetas de Atracciones (Fondo Claro) */
.light-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.light-card:hover {
    border-color: #84cc16;
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Ajustes de imagen en carrusel */
#carousel-img {
    transition: opacity 0.4s ease-in-out;
}

/* Controles del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(17, 24, 39, 0.55);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(17, 24, 39, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.left-3  { left: 0.75rem; }
.carousel-btn.right-3 { right: 0.75rem; }

#carousel-dots .carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#carousel-dots .carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

.carousel-btn:focus-visible,
.carousel-dot:focus-visible {
    outline: 2px solid #bef264;
    outline-offset: 2px;
}

/* Animación de entrada del hero (sustituye animate.css) */
@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-animate {
    animation: heroFadeInUp 0.8s ease-out both;
}

/* Estado de error en formulario (independiente de Tailwind) */
.input-invalid {
    border-color: #f87171 !important;
}

/* Animación de éxito al enviar el presupuesto */
@keyframes successPop {
    0%   { transform: scale(0.85); opacity: 0; }
    60%  { transform: scale(1.03); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes successCheck {
    from { stroke-dashoffset: 40; }
    to   { stroke-dashoffset: 0; }
}

.success-pop {
    animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-check path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: successCheck 0.5s ease-out 0.2s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .success-pop,
    .success-check path {
        animation: none;
        stroke-dashoffset: 0;
    }
    .hero-animate {
        animation: none;
    }
    #carousel-img {
        transition: none;
    }
}

/* ===== Filtros del catálogo ===== */
.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #84cc16;
    color: #65a30d;
}

.filter-btn.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.is-hidden {
    display: none !important;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

#catalog-grid .card-in {
    animation: cardIn 0.35s ease-out both;
}

/* ===== Modal de detalle ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(17, 24, 39, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-panel {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 40rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.25s ease-out both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(17, 24, 39, 0.6);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(17, 24, 39, 0.9);
}

/* ===== Calculadora de precio ===== */
.calc-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    font-weight: 700;
    font-size: 0.8rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-chip:hover {
    border-color: #84cc16;
}

.calc-chip input {
    width: 1rem;
    height: 1rem;
    accent-color: #84cc16;
}

.calc-chip.is-selected {
    border-color: #84cc16;
    background: #f7fee7;
    color: #3f6212;
}

.calc-opt {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-opt:hover {
    border-color: #84cc16;
}

.calc-opt.is-active {
    background: #84cc16;
    border-color: #84cc16;
    color: #111827;
}

@media (prefers-reduced-motion: reduce) {
    #catalog-grid .card-in,
    .modal-panel {
        animation: none;
    }
}

/* ===== Skip link (accesibilidad) ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    background: #111827;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 1rem 0;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skip-link:focus {
    left: 0;
}

/* ===== Barra de progreso de scroll ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #84cc16, #bef264);
    z-index: 60;
    transition: width 80ms linear;
}

/* ===== Enlace del menú activo por sección ===== */
nav a.nav-link.is-active {
    color: #65a30d;
}

/* ===== Reveal al hacer scroll ===== */
html.js-reveal .reveal,
html.js-reveal .reveal-up {
    opacity: 0;
}

html.js-reveal .reveal-up {
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-reveal .reveal-up.is-visible {
    opacity: 1;
    transform: none;
}

html.js-reveal .reveal.is-visible {
    opacity: 1;
}

/* ===== FAQ acordeón ===== */
.faq-item {
    border: 2px solid #e5e7eb;
    border-radius: 1.25rem;
    background: #ffffff;
    overflow: hidden;
}

.faq-item[open] {
    border-color: #84cc16;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 800;
    color: #111827;
    font-size: 1.05rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #f7fee7;
    color: #65a30d;
    font-weight: 900;
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-item .faq-body {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.6;
}

.faq-item summary:focus-visible {
    outline: 2px solid #84cc16;
    outline-offset: -2px;
    border-radius: 1.25rem;
}

/* ===== Testimonios (carrusel) ===== */
#testimonials-track {
    display: grid;
}

.testimonial-slide {
    grid-area: 1 / 1;
    padding: 2.5rem 2.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.testimonial-slide .quote {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
}

.testimonial-slide figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-slide .name {
    font-weight: 900;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.testimonial-slide .tipo {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 700;
}

.testimonial-slide .stars {
    margin-top: 0.4rem;
    color: #facc15;
    font-size: 1rem;
    letter-spacing: 0.2em;
}

.testimonial-slide .stars-count {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #9ca3af;
    vertical-align: middle;
}

.rating-stars {
    color: #facc15;
    font-size: 1.35rem;
    letter-spacing: 0.2em;
    line-height: 1;
}

#testimonials-dots .testimonial-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(17, 24, 39, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#testimonials-dots .testimonial-dot.active {
    background: #84cc16;
    transform: scale(1.3);
}

#testimonials .carousel-btn:focus-visible,
#testimonials-dots .testimonial-dot:focus-visible {
    outline: 2px solid #84cc16;
    outline-offset: 2px;
}

/* ===== Confeti (envío de formulario) ===== */
.confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 250;
    pointer-events: none;
}

/* ===== Accesibilidad: modo de movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
    html.js-reveal .reveal,
    html.js-reveal .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .testimonial-slide {
        transition: none;
    }
    #scroll-progress {
        transition: none;
    }
    .faq-item summary::after {
        transition: none;
    }
}

/* ===== Mapa de cobertura ===== */
.coverage-prov {
    fill: #e4e4e7;
    stroke: #ffffff;
    stroke-width: 4px;
    cursor: pointer;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.coverage-prov:hover {
    fill: #d9f99d;
}

.coverage-prov:focus-visible {
    outline: none;
    stroke: #84cc16;
    stroke-width: 6px;
}

.coverage-prov.is-active {
    fill: #84cc16;
}

.coverage-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 26px;
    fill: #374151;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.coverage-label.is-active {
    fill: #ffffff;
}

.coverage-marker-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 22px;
    fill: #111827;
    pointer-events: none;
}

.coverage-marker {
    fill: #dc2626;
    stroke: #ffffff;
    stroke-width: 3px;
}

.coverage-marker-ring {
    fill: rgba(220, 38, 38, 0.25);
}

#coverage-almagro {
    cursor: pointer;
    outline: none;
}

#coverage-almagro:focus-visible .coverage-marker {
    stroke: #84cc16;
    stroke-width: 5px;
}

#coverage-almagro.is-active .coverage-marker {
    fill: #84cc16;
}

#coverage-almagro.is-active .coverage-marker-ring {
    fill: rgba(132, 204, 22, 0.3);
}

#coverage-almagro.is-active + .coverage-marker-label {
    fill: #65a30d;
}

@keyframes markerPulse {
    0%   { transform: scale(0.7); opacity: 0.9; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

.coverage-marker-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: markerPulse 2.4s ease-out infinite;
}

/* Leyenda del mapa */
.coverage-legend {
    list-style: none;
}

.coverage-legend li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: #4b5563;
}

.coverage-legend .dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 9999px;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.15);
}

.coverage-legend .dot-base { background: #84cc16; }
.coverage-legend .dot-prov { background: #a3e635; }
.coverage-legend .dot-clm   { background: #e4e4e7; }

@media (prefers-reduced-motion: reduce) {
    .coverage-marker-ring {
        animation: none;
        opacity: 0.5;
    }
}
