@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

:root { 
    --primary: #2F5E48; 
    --secondary: #6FA382; 
    --white: #ffffff; 
    --text-dark: #2C3E50;
    --text-light: #64748b;
    --shadow: 0 10px 30px rgba(47, 94, 72, 0.08);
}

body { background-color: #f8f9fa; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* REGLAS VISIBILIDAD */
.menu-toggle { display: none !important; }
.mobile-admin-link { display: none !important; }
.nav-buttons { display: block !important; }

/* NAVBAR */
.navbar { background: var(--white); height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 8%; box-shadow: 0 2px 15px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 1000; }
.logo-img { height: 55px; }
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.btn-admin { border: 1px solid var(--text-dark); padding: 10px 25px; border-radius: 50px; color: var(--text-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.btn-admin:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* CONTENIDO */
.planes-header { background-color: var(--primary); color: white; text-align: center; padding: 100px 20px; background-image: linear-gradient(135deg, #2F5E48 0%, #244a38 100%); }
.planes-header h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; letter-spacing: 1px; }
.planes-header p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; }

.pricing-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 60px 2%; max-width: 100%; margin: 0 auto; }

.plan-card { background: white; padding: 25px 15px; border-radius: 15px; border: none; box-shadow: var(--shadow); transition: transform 0.3s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.plan-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(47, 94, 72, 0.15); }
.plan-card.popular { border: 2px solid var(--secondary); background: #ffffff; transform: scale(1.02); z-index: 2; }
.plan-card.popular:hover { transform: scale(1.02) translateY(-10px); }
.badge-popular { position: absolute; top: 20px; right: -32px; background: var(--secondary); color: white; padding: 5px 35px; transform: rotate(45deg); font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.plan-title { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 700; min-height: 45px; display: flex; align-items: center; justify-content: center; text-align: center; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; line-height: 1; text-align: center; }
.currency { font-size: 1rem; vertical-align: super; font-weight: 600; }
.period { font-size: 0.8rem; color: #999; font-weight: 400; }
.plan-desc { color: var(--text-light); margin-bottom: 20px; font-size: 0.85rem; line-height: 1.4; text-align: center; min-height: 40px; }
.plan-features { margin-bottom: 20px; flex-grow: 1; padding: 0 10px; }
.plan-features li { margin-bottom: 8px; color: var(--text-dark); display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; }
.plan-features li i { color: var(--secondary); font-size: 0.9rem; margin-top: 4px; flex-shrink: 0;}
.btn-plan { display: block; text-align: center; padding: 10px; border: 1px solid var(--primary); border-radius: 50px; color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; margin-top: auto; }
.btn-plan:hover { background: var(--primary); color: white; box-shadow: 0 5px 15px rgba(47, 94, 72, 0.2); }
.btn-filled { background: var(--primary); color: white; border: none; }
.btn-filled:hover { background: #244a38; }

footer { background-color: var(--primary); color: var(--white); padding: 70px 10%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; font-size: 0.95rem; border-top: 5px solid var(--secondary); }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { margin-bottom: 25px; color: var(--secondary); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.footer-col p { color: rgba(255,255,255,0.85); margin-bottom: 12px; line-height: 1.6; display: flex; align-items: center; gap: 10px; }
.footer-col a { display: block; color: rgba(255,255,255,0.85); margin-bottom: 12px; transition: all 0.3s ease; text-decoration: none; }
.footer-col a:hover { color: var(--white); padding-left: 8px; color: var(--secondary); }
.socials a { display: inline-block; font-size: 1.4rem; margin-right: 20px; color: var(--white); opacity: 0.8; transition: 0.3s; background: transparent; width: auto; height: auto; line-height: normal; border-radius: 0; text-align: left; }
.socials a:hover { opacity: 1; color: var(--secondary); transform: translateY(-3px); background: transparent; padding-left: 0; }

/* === MÓVIL === */
@media (max-width: 1150px) { .pricing-container { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 900px) {
    /* Navbar Fija */
    .navbar { position: fixed !important; top: 0; left: 0; width: 100%; z-index: 2000; padding: 0 20px; }
    body { padding-top: 80px; }

    .menu-toggle { display: block !important; font-size: 1.8rem; cursor: pointer; color: var(--primary); }
    .nav-buttons { display: none !important; }
    .mobile-admin-link { display: block !important; margin-top: 15px; }
    .mobile-admin-link a { border: 2px solid var(--primary); padding: 8px 20px; border-radius: 50px; color: var(--primary) !important; font-weight: 700; }

    .nav-links {
        display: none; position: fixed; top: 80px; left: 0; width: 100%;
        background-color: var(--white); flex-direction: column; align-items: center; padding: 30px 0; gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); z-index: 1000; border-top: 1px solid #eee; overflow-y: auto; max-height: 80vh;
    }
    .nav-links.active { display: flex !important; }

    .pricing-container { grid-template-columns: repeat(2, 1fr); padding: 50px 5%; }
    .planes-header h1 { font-size: 2.2rem; }
    
    /* CORRECCIÓN FOOTER: Forzar centrado de texto e ICONOS */
    footer { flex-direction: column; text-align: center; padding: 40px 20px; }
    .footer-col { 
        width: 100%; margin-bottom: 30px; 
        display: flex; flex-direction: column; align-items: center;
    }
    /* ESTA ES LA CLAVE: Centrar los párrafos que tienen iconos */
    .footer-col p {
        justify-content: center;
        text-align: center;
    }
    .socials { justify-content: center; display: flex; }
}

@media (max-width: 600px) {
    .pricing-container { grid-template-columns: 1fr; padding: 40px 5%; }
}