:root {
    /* Paleta de colores principal */
    --primary-color: rgb(220, 53, 69);    /* Rojo principal */
    --primary-dark: rgb(200, 35, 51);     /* Rojo oscuro para hover */
    --primary-light: rgb(240, 73, 89);    /* Rojo claro para acentos */
    --secondary-color: #6c757d;           /* Gris para elementos secundarios */
    --accent-color: rgb(220, 53, 69);     /* Rojo para acentos */
    --success-color: #28a745;             /* Verde para acciones exitosas */
    --warning-color: #ffc107;             /* Amarillo para advertencias */
    --danger-color: #dc3545;              /* Rojo para errores */
    
    /* Colores de fondo */
    --light-bg: #f8f9fa;                  /* Fondo claro */
    --dark-bg: #343a40;                   /* Fondo oscuro */
    --card-bg: #ffffff;                   /* Fondo de tarjetas */
    
    /* Colores de texto */
    --text-light: #ffffff;                /* Texto claro */
    --text-dark: #212529;                 /* Texto oscuro */
    --text-muted: #6c757d;                /* Texto secundario */
    
    /* Efectos */
    --border-radius: 0.5rem;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition-base: all 0.3s ease;
}

body {
    background-color: #f5f6fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    background-color: var(--card-bg);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: var(--text-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--card-bg) 100%);
}

.hero-button-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    font-weight: 500;
    display: inline-block;
}

.hero-button-primary:hover,
.hero-button-primary:focus,
.hero-button-primary:active {
    background-color: var(--primary-dark) !important;
    color: var(--text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--card-bg);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.benefit-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.benefit-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.benefit-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
}

.pricing-controls {
    margin-bottom: 3rem;
}

.pricing-controls .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Card Styles */
.equal-height-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1); /* Usar un borde sutil */
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem; /* Mantener margen inferior */
    transition: var(--transition-base);
    display: flex; /* Asegurar flex para equal height */
    flex-direction: column;
}

.equal-height-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.equal-height-card .card-header {
    border-bottom: none;
    padding: 0.7rem 1rem; /* Reducir padding del header */
    font-size: 1.05rem; /* Ajustar tamaño del título del plan */
    font-weight: 600;
    text-align: center;
    /* Usar primary-color para el color de fondo del header en todas las tarjetas */
    background-color: var(--primary-color);
    color: var(--text-light);
}

.equal-height-card .card-body {
    flex: 1; /* Permite que el body ocupe el espacio restante */
    display: flex;
    flex-direction: column;
    padding: 1rem; /* Reducir padding del body */
}

/* Limites Styles */
.limites {
    background-color: var(--light-bg); /* Fondo claro */
    border-radius: var(--border-radius);
    padding: 0.5rem; /* Reducir padding */
    margin-bottom: 1rem; /* Reducir margen inferior */
}

.limites .limite-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem; /* Reducir margen inferior */
    padding: 0.3rem; /* Reducir padding */
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    background-color: rgba(0, 0, 0, 0.03); /* Fondo sutil */
}

.limites .limite-item:last-child {
    margin-bottom: 0;
}

.limites .limite-item i {
    margin-right: 0.6rem; /* Ajustar margen */
    color: var(--accent-color); /* Usar color de acento */
    font-size: 1rem; /* Ajustar tamaño del icono */
}

.limites .limite-item small {
    color: var(--text-dark); /* Usar texto oscuro para mayor visibilidad */
    font-size: 0.8rem; /* Ajustar tamaño del texto */
    font-weight: 500;
}

.limites .limite-item strong {
    color: var(--text-dark); /* Usar texto oscuro */
    font-size: 0.85rem; /* Ajustar tamaño del texto */
    font-weight: 600;
}

/* Caracteristicas Styles */
.caracteristicas {
    margin-top: 1rem; /* Reducir margen superior */
}

.caracteristicas li {
    margin-bottom: 0.5rem; /* Reducir margen inferior */
    color: var(--text-dark); /* Usar texto oscuro para mayor visibilidad */
    display: flex;
    align-items: center;
    padding: 0.3rem 0.5rem; /* Reducir padding */
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    background-color: rgba(0, 0, 0, 0.03); /* Fondo sutil */
     font-size: 0.85rem; /* Ajustar tamaño del texto */
}

.caracteristicas li:last-child {
     margin-bottom: 0;
}

.caracteristicas li:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(3px); /* Reducir desplazamiento */
    color: var(--text-dark);
}

.caracteristicas li i {
    margin-right: 0.6rem; /* Ajustar margen */
    color: var(--success-color); /* Usar color de éxito */
    font-size: 1rem; /* Ajustar tamaño del icono */
}

/* Button Styles (Asegurarse de que usen las variables) */
.button-primary.btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem; /* Ajustar padding del botón */
    border-radius: 25px; /* Mantener redondez si se desea */
    font-weight: 500;
    transition: var(--transition-base);
    width: 100%;
    text-align: center;
    font-size: 0.95rem; /* Ajustar tamaño de fuente del botón */
}

.button-primary.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Precio y Intervalo Styles */
.equal-height-card .card-body .h5 {
     font-size: 1.1rem; /* Ajustar tamaño del precio */
     color: var(--primary-color); /* Color principal para el precio */
     font-weight: 700;
}

.equal-height-card .card-body .badge {
    background-color: var(--accent-color); /* Usar color de acento */
    color: var(--text-light); /* Usar texto claro */
    font-size: 0.8rem; /* Ajustar tamaño del badge */
}

/* Animación para tarjetas de precios */
.fade-in-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    margin-bottom: 0;
    color: var(--text-custom-muted);
}

footer a {
    color: var(--text-light);
}

footer a:hover {
    color: var(--primary-light);
}

footer h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.hover-primary {
    transition: var(--transition-base);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* New custom class for muted text */
.custom-text-muted {
    color: var(--text-custom-muted) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .benefits-section {
        padding: 3rem 0;
        margin-bottom: 3rem;
    }

    .pricing-section {
        padding: 3rem 0;
    }

    .equal-height-card {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    .equal-height-card .card-body {
        padding: 1rem;
    }

    .equal-height-card .card-header {
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
    }

    .limites .limite-item i {
        font-size: 1rem;
        margin-right: 0.8rem;
    }

    .limites .limite-item small,
    .limites .limite-item strong {
        font-size: 0.9rem;
    }

    .caracteristicas li i {
        font-size: 1.1rem;
        margin-right: 0.8rem;
    }
     .caracteristicas li {
         font-size: 0.9rem;
     }

     .pricing-section .badge {
         font-size: 0.8rem;
     }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .benefits-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .pricing-section {
        padding: 2rem 0;
    }

    .pricing-controls .btn {
        padding: 0.4rem 1rem;
    }

    .equal-height-card {
        margin-bottom: 1rem;
        padding: 0.3rem;
    }

    .equal-height-card .card-body {
        padding: 0.8rem;
    }

     .equal-height-card .card-header {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
     }

    .limites .limite-item i {
        font-size: 0.9rem;
        margin-right: 0.6rem;
    }

     .limites .limite-item small,
    .limites .limite-item strong {
        font-size: 0.85rem;
    }

    .caracteristicas li i {
        font-size: 1rem;
        margin-right: 0.6rem;
    }
     .caracteristicas li {
         font-size: 0.85rem;
     }

     .pricing-section .badge {
         font-size: 0.75rem;
     }
}

/* Styles moved from inline <style> tag in home.blade.php */

.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) { /* Bootstrap's large breakpoint */
    .navbar-collapse {
        background-color: var(--card-bg, #ffffff); /* Asegurar fondo al desplegar */
        border-top: 1px solid rgba(0, 0, 0, 0.1); /* Separador sutil */
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar-nav {
        align-items: center; /* Centrar items en el menú colapsado */
    }

    .nav-link, .btn-outline-primary, .btn-primary {
        margin: 0.25rem 0; /* Espaciado vertical en menú colapsado */
        width: 100%; /* Botones ocupan ancho completo */
        text-align: center;
    }

    .navbar-toggler {
        padding: 0.25rem 0.75rem; /* Ajustar padding del toggler */
        font-size: 1.25rem; /* Ajustar tamaño del icono */
    }

    .navbar-brand {
         font-size: 1.4rem; /* Ajustar tamaño del brand */
    }
}
