/* styles.css - Diseño moderno y responsive MEJORADO */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --bg-lighter: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-lighter);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header y navegación */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Contenedores - REDUCIR MÁRGENES EN MÓ¥IL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem; /* Reducido de 3rem 2rem */
}

/* Hero Section MEJORADO - RESPONSIVE */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 1rem; /* Reducido de 6rem 2rem */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem; /* Reducido de 3rem para móvil */
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.1rem; /* Reducido de 1.35rem */
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}



/* Botones MEJORADOS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem; /* Reducido ligeramente */
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem; /* Ligeramente más pequeño */
    letter-spacing: -0.3px;
    position: relative;
    overflow: hidden;
    border-color: var(--primary-color);
}

.btn-large {
    padding: 0.875rem 2rem; /* Reducido de 1rem 2.5rem */
    font-size: 1rem; /* Reducido de 1.1rem */
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--bg-lighter);
    border-color: var(--bg-lighter);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--bg-lighter);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Cards y secciones */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem; /* Reducido de 2.5rem */
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card h2 {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-size: 1.5rem; /* Reducido de 1.75rem */
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 1.75rem; /* Reducido de 2.25rem */
    font-weight: 800;
    margin-bottom: 2rem; /* Reducido de 3rem */
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Features List MEJORADO - DOS LÍ¥NEAS */
.features-list {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column; /* CAMBIO: apilar en dos líneas */
    gap: 0.25rem;
    font-size: 0.95rem; /* Ligeramente más pequeño */
    color: var(--text-medium);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li strong {
    color: var(--text-dark);
    font-weight: 600;
    display: block; /* Fuerza salto de línea */
    margin-bottom: 0.25rem;
}

/* Pricing MEJORADO */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reducido de 320px */
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem; /* Reducido de 2.5rem */
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    transform: scale(1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card h3 {
    font-size: 1.35rem; /* Reducido de 1.5rem */
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pricing-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.75rem; /* Reducido de 3.5rem */
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
    letter-spacing: -2px;
    line-height: 1;
}

.price span {
    font-size: 1rem; /* Reducido de 1.1rem */
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0;
}



.feature-card {
    background: var(--bg-white);
    padding: 1.5rem; /* Reducido de 2rem */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.15rem; /* Reducido de 1.25rem */
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Step Cards - REDUCIR TAMAÑ¥O */
.step-card {
    min-width: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;

}

.step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.step-icon {
    font-family: "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 3.5rem; /* Reducido de 5rem */
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}



.step-card h3 {
    font-size: 1.15rem; /* Reducido de 1.25rem */
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.step-card p {
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* CTA Section MEJORADO */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3.5rem 1.5rem; /* Reducido de 5rem 2rem */
    text-align: center;
    margin-top: 3rem; /* Reducido de 4rem */
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2rem; /* Reducido de 2.5rem */
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.1rem; /* Reducido de 1.25rem */
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}



/* =========================================
   MEDIA QUERIES - RESPONSIVE MEJORADO
   ========================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    
}

/* Móvil grande (max-width: 768px) */
@media (max-width: 768px) {
    /* Navegació¥»®n */
    nav {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 1.5rem 1rem;
    }
    
    
    .hero h1 {
        font-size: 1.75rem; /* Tí¥¡tulo más pequeño en móvil */
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Contenedores */
    .container {
        padding: 1.5rem 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem 1rem;
    }
    
    .card h2 {
        font-size: 1.35rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Features List */
    .features-list li {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .pricing-card.featured {
        transform: scale(1); /* Quitar zoom en móvil */
    }
    
    .price {
        font-size: 2.5rem;
    }
    
 
    
    .feature-card {
        padding: 1.25rem;
    }
    
    /* Steps - Cómo funciona */
    .step-card {
        padding: 1.25rem;
    }
    
    .step-icon {
        font-size: 3rem;
    }
    
    .step-card h3 {
        font-size: 1.1rem;
    }
    
    .step-card p {
        font-size: 0.85rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.65rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
 

    
   
}

/* Móvil pequeño (max-width: 480px) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero h1 {
        font-size: 1.5rem; /* Aún más pequeño */
    }
    .container{
        width:100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .main-content {
        padding: 0rem !important;
    }
    .hero p {
        font-size: 0.95rem;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.35rem;
    }
    
    /* Cards */
    .card h2 {
        font-size: 1.25rem;
    }
    
    /* Features List */
    .features-list li {
        font-size: 0.85rem;
    }
    
    /* Pricing */
    .price {
        font-size: 2.25rem;
    }
    
    /* Step Cards */
    .step-icon {
        font-size: 2.5rem;
    }
    
    .step-card h3 {
        font-size: 1rem;
    }
    
    .step-card p {
        font-size: 0.8rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }


}
/*-----------------------------------------------------------------------------------------*/
/*list-pasos*/
/*-----------------------------------------------------------------------------------------*/

.list-pasos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) ;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.step-card {
    min-width: 0;
    width: 100%;
    height: 100%;
}

/* Features Grid MEJORADO */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) ;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .list-pasos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
       /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .list-pasos {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .step-card {
        padding: 1.25rem;
    }
       /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr; /* Una columna */
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .list-pasos {
        gap: 0.75rem;
    }

    .step-card {
        padding: 1rem;
    }
}



/*-----------------------------------------------------------------------------------------*/
/*footer*/
/*-----------------------------------------------------------------------------------------*/

/* Footer */
footer {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer principal */
.main-footer {
    background: #111827;
    color: #ffffff;
    margin-top: 3rem;
    padding: 3rem 0 1.25rem;
}

.main-footer .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Columnas del footer */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
}

/* Secciones */
.footer-section h4 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Línea inferior */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 768px) {
    .main-footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .main-footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .footer-section {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-bottom {
        gap: 0.5rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}
/*-----------------------------------------------------------------------------------------*/
/* Formularios */
/*-----------------------------------------------------------------------------------------*/
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/*-----------------------------------------------------------------------------------------*/
/* scroll precios */
/*-----------------------------------------------------------------------------------------*/

#precios {
    scroll-margin-top: 100px; /* ajusta según la altura de tu header/menú fijo */
}

/*-----------------------------------------------------------------------------------------*/
/* carrusel precios */
/*-----------------------------------------------------------------------------------------*/

/* Desktop: grid */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Móvil: comportamiento de carrusel */


/* Contenedor base */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Estilo de las tarjetas (ajusta según tu diseño actual) */
.pricing-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

/* Navegación (oculta en desktop) */


/* Responsive: carrusel en móvil */
@media (max-width: 900px) {
    .pricing-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem 0.5rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .pricing-container::-webkit-scrollbar {
        display: none;
    }
    
    .pricing-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .pricing-card {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
    }
    /* Ocultar scrollbar pero mantener scroll */
    .pricing-container::-webkit-scrollbar {
        display: none;
    }
    .pricing-card:hover {
    transform: translateY(0px) !important;
    }
    
    
    /* Gradiente fade derecho */
    .pricing-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100px;
        background: linear-gradient(to left, var(--bg-lighter) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
        z-index: 10;
    }
    

}


/*carrusel dots*/

.pricing-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

@media (max-width: 900px) {
    .pricing-dots {
        display: flex;
    }
}

/*sidebar*/
/* Layout principal */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr; /* sidebar | contenido */
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Sidebar */
/* Layout principal */
.dashboard {
    display: grid;
    grid-template-columns: 240px 1fr; /* sidebar | contenido */
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
}

/* Sidebar - color suave */
.sidebar {
    background: var(--bg-lighter);        /* #f9fafb, muy suave */
    color: var(--text-medium);           /* #4b5563 */
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar nav a {
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--bg-light);          /* #f3f4f6 */
    color: var(--primary-color);          /* #2563eb para el activo */
}

/* Contenido principal */
.main-content {
    padding: 2rem;
    background: var(--bg-light);
}

/* Responsive: en móvil, sidebar arriba */
@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        position: static;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}