:root {
    --primary-color: #b21f1f; /* Rojo principal */
    --secondary-color: #1a1a1a; /* Negro como secundario */
    --text-color: #1a1a1a; /* Negro para texto principal */
    --text-muted: #666666; /* Gris oscuro para texto secundario */
    --light-color: #ffffff; /* Blanco como color claro */
    --dark-bg: #0a0a0a; /* Negro para fondos oscuros */
    --border-color: #e0e0e0; /* Gris claro para bordes */
    --shadow-color: rgba(178, 31, 31, 0.15); /* Sombra roja suave */
}

/* ==========================
   HERO
========================== */
.hero {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(178, 31, 31, 0.7)),
                url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTU2rbgXhfgvRiP2U-V8GnJE3XBsKPEIvzc8A&s');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-hero {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-hero-primary {
    background: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}
.btn-hero-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-hero-primary:hover {
    background: #8b0000; /* Rojo más oscuro */
    border-color: #8b0000;
    box-shadow: 0 10px 25px rgba(178, 31, 31, 0.4);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ==========================
   PLANES
========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}
.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}
.section-title p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Grid con 3 columnas fijas en PC */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
}

/* Tarjetas */
.plan-card-modern {
    background: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px var(--shadow-color);
}
.plan-card-modern:hover {
    background: var(--secondary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.plan-card-modern:hover .promo-price-modern {
    color: var(--light-color);
}
.plan-card-modern:hover .plan-description-modern,
.plan-card-modern:hover .plan-features-modern li {
    color: #dddddd;
}

/* Descuento */
.discount-tag-modern {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Título */
.plan-title-modern {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

/* Precio */
.plan-price-modern {
    margin-bottom: 12px;
}
.promo-price-modern {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.old-price-modern {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #777;
    margin-left: 6px;
}
.per-month-modern {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Descripción */
.plan-description-modern {
    margin: 12px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Features */
.plan-features-modern {
    list-style: none;
    margin: 15px 0;
    padding: 0;
    text-align: left;
}
.plan-features-modern li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.plan-features-modern i {
    color: var(--primary-color);
    margin-right: 6px;
    transition: all 0.3s ease;
}
.plan-features-modern li:hover i {
    transform: scale(1.2);
    color: #ff5252; /* Rojo más claro */
}

/* Botón */
.btn-plan-modern {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 12px;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}
.btn-plan-modern:hover {
    background: var(--light-color);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(178, 31, 31, 0.3);
    transform: translateY(-2px);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* solo 1 por fila */
    }

    .plan-card-modern {
        max-width: 90%;   /* 👈 ocupa el 90% del ancho disponible */
        margin: 0 auto;   /* 👈 centrada */
    }
}

@media (max-width: 576px) {
    .plan-card-modern {
        max-width: 95%;   /* 👈 en móviles muy pequeños, un poco más ancho */
        padding: 25px 15px; /* 👈 ajustamos padding para mejor lectura */
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

/* ==========================
   FOOTER CON PALETA NEGRO, BLANCO Y ROJO
========================== */

/* Asegurarnos de que el footer tenga fondo oscuro */
footer {
    background: var(--dark-bg);
    color: var(--light-color);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--light-color);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(178, 31, 31, 0.4);
}

/* Secciones del footer */
.footer-contact,
.footer-links,
.footer-cta {
    animation: fadeInUp 0.8s ease-out;
}

.footer-contact { animation-delay: 0.3s; animation-fill-mode: both; }
.footer-links { animation-delay: 0.4s; animation-fill-mode: both; }
.footer-cta { animation-delay: 0.5s; animation-fill-mode: both; }

.footer-contact h4,
.footer-links h4,
.footer-cta h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-contact h4:hover,
.footer-links h4:hover,
.footer-cta h4:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

.footer-contact h4::after,
.footer-links h4::after,
.footer-cta h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-contact h4:hover::after,
.footer-links h4:hover::after,
.footer-cta h4:hover::after {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Contacto con Animaciones */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    color: var(--light-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 12px;
    margin-top: 3px;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #ff5252; /* Rojo más claro */
}

/* Enlaces Rápidos con Animaciones */
.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

.footer-links a::before {
    content: '▸';
    color: var(--primary-color);
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(178, 31, 31, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.footer-links a:hover {
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(15px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-links a:hover::before {
    transform: rotate(90deg);
    margin-right: 15px;
    color: #ff5252; /* Rojo más claro */
}

.footer-links a:hover::after {
    left: 100%;
}

/* CTA Section con Animaciones */
.footer-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(178, 31, 31, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(178, 31, 31, 0.3);
}

.footer-cta:hover::before {
    opacity: 1;
    animation: rotateBackground 10s linear infinite;
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.footer-cta h4 {
    margin-top: 0;
}

.footer-cta > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Botón de WhatsApp Mejorado */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--light-color);
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 70%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejora para el texto en hero cuando hay hover en tarjetas */
.plan-card-modern:hover .per-month-modern {
    color: #bbbbbb;
}