/*
Theme Name: Tu Profe Online - Actualizado 2026
Description: Estilos globales con soporte para mobile-nav con 5 íconos, footer compacto, carrusel testimonios mejorado y full-width sections.
*/
/* ==========================================================================
   Variables globales
   ========================================================================== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #ff6b35;
    --green-ahorro: #16a34a;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}
/* ==========================================================================
   Estilos generales
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}
/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header - Uniforme en todo el sitio */
header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    height: 80px;
    width: auto;
}
.logo-link {
    display: block;
    line-height: 0;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}
nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: var(--secondary-color);
}
.lang-switch button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.lang-switch button:disabled {
    opacity: 0.6;
    cursor: default;
}
/* Footer - Más compacto, sin enlace a Contacto */
.footer {
    background: #0f172a;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}
.footer-bottom-text {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.footer-contact-info {
    margin: 10px 0;
}
.footer-email {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}
.footer-links {
    margin: 15px 0;
}
.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--secondary-color);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.social-links .social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    transition: transform 0.3s;
    text-decoration: none;
}
.social-links .social-link:hover {
    transform: translateY(-5px);
}
/* Forzar fondos de íconos sociales con !important para sobreescribir cualquier inline conflictivo */
.social-links .bg-sms { background-color: #00bb2d !important; }
.social-links .bg-tiktok { background-color: #000 !important; }
.social-links .bg-facebook { background-color: #1877f2 !important; }
.social-links .bg-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
}
/* WhatsApp flotante - CORREGIDO para círculo perfecto y sin distorsión */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    overflow: hidden; /* evita que la imagen se salga del círculo */
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* mantiene proporción sin estirar */
    object-position: center;
}

/* En móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
/* Mobile Nav - 5 ítems */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
    z-index: 999;
    justify-content: space-evenly;
    padding: 10px 0;
}
.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: clamp(0.85rem, 3.8vw, 1rem);
    font-weight: 700;
    line-height: 1.2;
}
.mobile-nav a img {
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    margin-bottom: 6px;
    object-fit: contain;
}
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--secondary-color);
}
/* Responsive */
@media (max-width: 768px) {
    .logo { height: 65px; }
    nav ul { display: none !important; }
    .mobile-nav { display: flex !important; }
    body { padding-bottom: 90px; }
    footer { padding-bottom: 100px; }
}
/* Carrusel testimonios */
.testimonios .swiper-slide img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--secondary-color);
}
.testimonios .swiper-slide p {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    line-height: 1.6;
    color: #475569;
    margin: 0 10px;
}
.testimonios .swiper-pagination {
    margin-top: 20px;
}
.testimonios .swiper-slide {
    padding-bottom: 40px;
}
/* Full-width counter verde */
.counter .full-width-bg {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--green-ahorro);
    padding: 60px 20px;
    color: white;
    text-align: center;
}
.counter .counter-box {
    background: transparent;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
}

/* ==========================================================================
   Estilos para logos de pago (ya incluido en versiones anteriores)
   ========================================================================== */
.payment-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin: 0 15px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .payment-logos img {
        height: 32px;
        margin: 0 10px;
    }
}