@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

p.text-justify {
    text-align: justify;
}

#slogan-bar {
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, border 0.3s ease-in-out;
    max-height: 40px; /* Altura aproximada para la transición */
    overflow: hidden;
}

#app-title-bar {
    background-color: white;
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
}

/* Estilos para los botones de acción flotantes */
.fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem; /* 56px */
    height: 3.5rem; /* 56px */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.fab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

#back-to-top-btn {
    display: none; /* La visibilidad es controlada por JavaScript */
}


/* Estilos para los botones de la cabecera en móvil */
.mobile-header-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem; /* Reducido */
    font-weight: 500;
    color: white;
    border-radius: 0.375rem;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    border: 1px solid #38bdf8; /* sky-500 */
}

.mobile-header-btn.bg-sky-600 {
    background-color: #0284c7; /* sky-600 */
    border-color: transparent;
}


/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

/* Efecto hover para las tarjetas de características */
.feature-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

/* --- Estilos de Foco Globales para Mejorar la Visibilidad --- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0ea5e9; /* sky-500 */
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.4);
}

/* --- Estilos para las tarjetas de precios --- */
.pricing-card {
    background-color: #f8fafc; /* slate-50 */
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    border: 2px solid #0284c7; /* sky-600 - Borde azul oscuro por defecto */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07);
}

.pricing-card.annual-offer {
    border: 2px solid #10b981; /* emerald-500 */
    background-color: #ecfdf5; /* emerald-50 */
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1), 0 4px 6px -4px rgba(16, 185, 129, 0.1);
}

@media (min-width: 1024px) {
    .pricing-card.annual-offer {
        transform: scale(1.05);
    }
    .pricing-card.annual-offer:hover {
        transform: scale(1.08) translateY(-5px);
    }
}

/* --- Estilos para la sección de almacenamiento de datos --- */
.data-storage-highlight {
    background-color: #f0f9ff; /* sky-50 */
    border-left-width: 4px;
    border-color: #0ea5e9; /* sky-500 */
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 56rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

/* --- Estilos para el selector de idioma y el nuevo indicador --- */
#language-selector option, #mobile-language-selector option {
    color: #1e293b; /* slate-800 */
    background-color: #ffffff;
}


/* --- ESTILOS PARA MODAL LEGAL (PRESERVADO) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 32rem; /* ajustado para mejor visualización */
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
}

.modal-content .overflow-y-auto {
    flex-shrink: 1;
}

.modal-overlay.hidden {
    display: none;
}


/* --- ESTILOS PARA ACORDEÓN DE FAQs --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    padding: 0 1rem; /* p-4 horizontal */
}

.faq-item.open .faq-answer {
    max-height: 500px; /* Un valor suficientemente grande */
    padding-top: 1rem; /* pt-4 */
    padding-bottom: 1rem; /* pb-4 */
}

.faq-icon {
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-group-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #1e293b; /* slate-800 */
    margin-bottom: 1rem; /* mb-4 */
    padding-bottom: 0.5rem; /* pb-2 */
    border-bottom: 2px solid #0ea5e9; /* border-sky-500 */
}

.faq-summary {
    margin-top: 2.5rem; /* mt-10 */
    padding: 1.5rem; /* p-6 */
    background-color: #f0f9ff; /* sky-50 */
    border-left: 4px solid #0ea5e9; /* border-sky-500 */
    border-radius: 0.5rem; /* rounded-lg */
}

.faq-summary h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #0c4a6e; /* sky-800 */
}

.faq-summary p {
    margin-top: 0.5rem; /* mt-2 */
    color: #334155; /* slate-700 */
    text-align: justify;
}