/* Estilos generales y transiciones */
:root {
    --buttercare-primary-dark: #2c3e50;
            --buttercare-primary-light: #3498db;
            --buttercare-primary-lighter: #459fff;
            --buttercare-secondary: #2ecc71;
            --buttercare-accent: #e74c3c;
            --buttercare-success: #27ae60;
            --buttercare-gradient: linear-gradient(135deg, var(--buttercare-primary-dark) 0%, var(--buttercare-primary-light) 100%);
            --buttercare-glow: 0 0 30px rgba(52, 152, 219, 0.3);
            --buttercare-button-hover: #2980b9;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

/* Transiciones para enlaces y botones */
a,
.button,
.navbar-item {
    transition: all 0.3s ease-in-out;
}

/* Efectos hover para enlaces de navegación */
.navbar-item:hover,
.navbar-item:focus {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Un fondo sutil para el hover */
    color: #fff !important; /* Asegura que el texto sea visible */
    transform: translateY(-2px); /* Ligero movimiento hacia arriba */
}

/* LottieFiles container */
.hero-lottie {
    position: relative;
    top: 0; /* Alineado arriba */
    left: 20%; /* Alineado a la izquierda */
    width: 100%;
    height: 100%;
    z-index: 0; /* Detrás del contenido del hero-body */
    opacity: 0.2; /* Ajusta la opacidad para mejor legibilidad del texto */
    overflow: hidden; /* Evita que la animación se desborde */
}

.hero-lottie lottie-player {
    width: 100% !important; /* Asegura que el player ocupe todo el contenedor */
    height: 100% !important; /* Asegura que el player ocupe todo el contenedor */
}

.navbar.is-primary {
    background-color: var(--buttercare-primary-light); /* Color primario oscuro para la navbar */
}

.title,
.subtitle {
    color: inherit; /* Hereda el color del padre para mejor contraste en secciones coloreadas */
}

.footer {
    background-color: #f5f5f5;
    padding: 3rem 1.5rem 3rem; /* Ajuste de padding */
}

.card {
    border-radius: 8px; /* Bordes redondeados para las tarjetas */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra sutil */
}

.box {
    border-radius: 6px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
}

/* Iconos en las tarjetas de características */
#caracteristicas .card .icon i,
.card .icon .fa-3x { /* Asegurar que los iconos de FontAwesome en las tarjetas también tomen el color */
    color: var(--buttercare-primary-light);
    transition: transform 0.3s ease-in-out;
}

#caracteristicas .card .icon i {
    transition: transform 0.3s ease-in-out;
}

#caracteristicas .card:hover .icon i {
    transform: scale(1.2) rotate(5deg);
}

/* Ajustes para el logo en la barra de navegación */
.navbar-brand .navbar-item img {
    max-height: 40px; /* Aumentar un poco el tamaño del logo */
    margin-right: 10px;
}

.navbar-brand .navbar-item p {
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
}

/* Mejorar la visibilidad del navbar burger en móviles */
.navbar-burger span {
    background-color: #fff; /* Color blanco para las líneas del burger */
}

/* Estilo para el hero title y subtitle */
.hero .title.is-1 {
    font-size: 3.5rem; /* Tamaño más grande para el título principal */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero .subtitle.is-3 {
    font-size: 1.75rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Estilo para los títulos de sección */
.section .title.is-2 {
    margin-bottom: 2rem; /* Más espacio debajo de los títulos de sección */
    position: relative;
    padding-bottom: 0.5rem;
}

.section .title.is-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--buttercare-primary-light); /* Línea decorativa */
    border-radius: 2px;
}

/* Asegurar que el contenido del footer sea legible */
.footer .content p {
    color: #4a4a4a; /* Color de texto estándar de Bulma */
}

.footer .content a {
    color: #3273dc; /* Color de enlace estándar de Bulma */
}

.footer .content a:hover {
    text-decoration: underline;
}

/* Iconos sociales en el footer */
.footer .icon.has-text-dark:hover i {
    color: var(--buttercare-primary-light) !important; /* Color primario al hacer hover */
    transform: scale(1.3);
}

/* Placeholder image styling */
figure.image img {
    margin-top: 10%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 100%;
    max-height: 70% !important;
    transition: transform 0.3s ease-in-out;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero .title.is-1 {
        font-size: 2.5rem;
    }
    .hero .subtitle.is-3 {
        font-size: 1.25rem;
    }
    .section .title.is-2 {
        font-size: 1.75rem;
    }
    .navbar-brand .navbar-item p {
        font-size: 1rem;
    }
    .navbar-brand .navbar-item img {
        max-height: 30px;
    }
}

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

/* Enhanced Hero Section */
.hero.is-primary {
    background: var(--buttercare-gradient);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Animated background particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Lottie animation container */
.hero-lottie {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    z-index: 2;
    opacity: 0.15;
    transform: scale(1.2);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.2);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.2;
    }
}

/* Hero content */
.hero-body {
    position: relative;
    z-index: 3;
    padding: 4rem 1.5rem;
}

/* Typography enhancements */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Enhanced buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.6s both;
}

.hero-button {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-button:hover:before {
    left: 100%;
}

.hero-button-primary {
    background: var(--buttercare-primary-light);
    color: var(--buttercare-primary-dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: white;
}

.hero-button-primary:hover {
    background: var(--buttercare-primary-lighter);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: white;
}

.hero-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.hero-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: white;
}



/* Floating elements */
.floating-stats {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 2rem;
    z-index: 3;
    animation: fadeInLeft 1s ease-out 0.8s both;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    
    .hero-lottie {
        width: 100%;
        right: 0;
        top: 0;
        opacity: 0.08;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }
}

/* ===== NAVBAR OPTIMIZATIONS ===== */

/* Navbar brand mejorado */
.navbar-brand-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 0.75rem !important;
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin-left: 0.5rem;
    letter-spacing: -0.5px;
}



.navbar-icon {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.navbar-item-compact:hover .navbar-icon {
    opacity: 1;
}

/* Dropdown mejorado */
.navbar-dropdown {
    background-color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: none;
    min-width: 220px;
}

.navbar-dropdown .navbar-item {
    padding: 0.75rem 1rem;
    color: var(--buttercare-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0.25rem 0.5rem;
}

.navbar-dropdown .navbar-item:hover {
    color: var(--buttercare-primary-lighter) !important;
}

.navbar-dropdown .navbar-item i {
    width: 16px;
    font-size: 0.9rem;
}

/* Botón CTA en navbar */
.navbar-cta-button {
    background: white !important;
    color: var(--buttercare-primary-light) !important;
    border: none !important;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-cta-button:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}


/* Link del dropdown padre */
.navbar-link {
    color: white !important;
    background: none !important;
}

.navbar-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.navbar-link::after {
    border-color: white;
}

/* Responsive improvements */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--buttercare-primary-light);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-dropdown {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: none;
        border-left: 3px solid var(--buttercare-primary-light);
        margin-left: 1rem;
        border-radius: 0 8px 8px 0;
    }
    
    .navbar-item-compact {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }
    
    .navbar-cta-button {
        width: 100%;
        justify-content: center;
        margin: 0.5rem 1rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar-brand-text {
        font-size: 1.1rem;
    }
    
    .navbar-brand-item {
        padding: 0.5rem !important;
    }
    
    .navbar-icon {
        display: none;
    }
    
    .navbar-item-compact span {
        width: 100%;
    }
}

/* Animaciones suaves */
@keyframes navbarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-dropdown {
    animation: navbarSlideIn 0.3s ease-out;
}

/* Mejoras en el burger menu */
.navbar-burger {
    height: 3.25rem;
    width: 3.25rem;
}

.navbar-burger span {
    background-color: #fff;
    height: 2px;
    width: 18px;
}

.navbar-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para la tabla de planes de suscripción */
#planes-suscripcion .table th {
    background-color: var(--buttercare-primary-light);
    color: white;
    font-weight: bold;
}

#planes-suscripcion .table td,
#planes-suscripcion .table th {
    vertical-align: middle;
    border-color: #dbdbdb; /* Color de borde más suave */
}

#planes-suscripcion .table .fa-check {
    font-size: 1.2rem;
}

#planes-suscripcion .box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
}

#planes-suscripcion .table thead th {
    border-bottom-width: 2px;
}

#planes-suscripcion .table tbody tr:last-child td {
    border-bottom: none;
}

#planes-suscripcion .table.is-striped tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Un color de fondo ligeramente diferente para las filas pares */
}

#planes-suscripcion .table.is-hoverable tbody tr:hover {
    background-color: #e9ecef; /* Color de fondo al pasar el mouse */
}

/* Estado activo del navbar burger */
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}