/* ============================================
   assets/css/estilo.css - Estilos globales AMET
   (IDÉNTICO al diseño del index.html)
   ============================================ */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --azul-amet: #1a237e;
    --azul-amet-claro: #283593;
    --azul-amet-oscuro: #0d1445;
    --dorado-amet: #ffc107;
    --dorado-amet-oscuro: #e6a800;
    --gris-claro: #f8f9fc;
    --gris-borde: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333333;
}

a {
    text-decoration: none;
    color: var(--azul-amet);
}

a:hover {
    color: var(--azul-amet-oscuro);
}

/* ============================================
   TOP BAR - Información de contacto
   ============================================ */
.top-bar {
    background: var(--azul-amet-oscuro);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 2px solid var(--dorado-amet);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar .info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
}

.top-bar .info-item i {
    color: var(--dorado-amet);
    font-size: 14px;
}

.top-bar .redes-sociales a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.top-bar .redes-sociales a:hover {
    color: var(--dorado-amet);
    transform: translateY(-2px);
}

/* ============================================
   NAVBAR PRINCIPAL
   ============================================ */
.navbar-principal {
    background: linear-gradient(135deg, var(--azul-amet), var(--azul-amet-claro));
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-principal .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.navbar-principal .navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-principal .navbar-brand span {
    color: var(--dorado-amet);
}

.navbar-principal .navbar-brand small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

/* ============================================
   MENÚ DE NAVEGACIÓN
   ============================================ */
.navbar-principal .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.navbar-principal .navbar-nav .nav-link:hover,
.navbar-principal .navbar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-principal .navbar-nav .nav-link i {
    margin-right: 6px;
    font-size: 13px;
}

.navbar-principal .navbar-nav .nav-link .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.navbar-principal .navbar-nav .nav-link:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Item destacado - AFILIACIÓN */
.navbar-principal .navbar-nav .nav-link.btn-afiliacion {
    background: var(--dorado-amet);
    color: var(--azul-amet-oscuro);
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s;
}

.navbar-principal .navbar-nav .nav-link.btn-afiliacion:hover {
    background: var(--dorado-amet-oscuro);
    color: var(--azul-amet-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.navbar-principal .navbar-nav .nav-link.btn-afiliacion i {
    color: var(--azul-amet-oscuro);
}

/* ============================================
   DROPDOWN MENÚS
   ============================================ */
.navbar-principal .dropdown-menu {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 200px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-principal .dropdown-menu .dropdown-item {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-principal .dropdown-menu .dropdown-item i {
    color: var(--azul-amet);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.navbar-principal .dropdown-menu .dropdown-item:hover {
    background: var(--gris-claro);
    color: var(--azul-amet);
}

.navbar-principal .dropdown-menu .dropdown-item.active {
    background: var(--gris-claro);
    color: var(--azul-amet);
}

.navbar-principal .dropdown-menu .dropdown-divider {
    border-color: var(--gris-borde);
}

/* ============================================
   BOTÓN HAMBURGUESA (móvil)
   ============================================ */
.navbar-principal .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar-principal .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.navbar-principal .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   BOTÓN LOGIN
   ============================================ */
.btn-login {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ============================================
   HERO / BANNER PRINCIPAL
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--azul-amet), var(--azul-amet-claro));
    padding: 60px 0 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(15deg);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-section h1 span {
    color: var(--dorado-amet);
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.7;
}

.hero-section .btn-hero {
    background: var(--dorado-amet);
    color: var(--azul-amet-oscuro);
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    margin-top: 10px;
    display: inline-block;
}

.hero-section .btn-hero:hover {
    background: var(--dorado-amet-oscuro);
    color: var(--azul-amet-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.35);
}

.hero-section .estadisticas {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-section .estadisticas .numero {
    font-size: 28px;
    font-weight: 800;
    color: var(--dorado-amet);
}

.hero-section .estadisticas .label {
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================
   SECCIÓN DE NOTICIAS
   ============================================ */
.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--azul-amet);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--dorado-amet);
    border-radius: 4px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.tarjeta-noticia {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--gris-borde);
}

.tarjeta-noticia:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.tarjeta-noticia .card-body {
    padding: 20px;
}

.tarjeta-noticia .categoria {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--azul-amet);
    background: rgba(26, 35, 126, 0.08);
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}

.tarjeta-noticia h5 {
    font-weight: 700;
    font-size: 18px;
    color: var(--azul-amet);
    margin-bottom: 8px;
}

.tarjeta-noticia h5 a {
    color: var(--azul-amet);
}

.tarjeta-noticia h5 a:hover {
    color: var(--azul-amet-oscuro);
}

.tarjeta-noticia .copete {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.tarjeta-noticia .fecha {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.tarjeta-noticia .fecha i {
    margin-right: 4px;
}

/* ============================================
   SECCIÓN DE BENEFICIOS
   ============================================ */
.beneficios-resumen {
    background: var(--gris-claro);
    padding: 60px 0;
}

.beneficio-item {
    text-align: center;
    padding: 25px 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--gris-borde);
}

.beneficio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.beneficio-item .icono {
    font-size: 40px;
    color: var(--azul-amet);
    margin-bottom: 12px;
    display: block;
}

.beneficio-item h6 {
    font-weight: 700;
    color: var(--azul-amet);
    font-size: 16px;
}

.beneficio-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* ============================================
   SECCIÓN DE CAPACITACIONES
   ============================================ */
.tarjeta-capacitacion {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--gris-borde);
    padding: 20px;
}

.tarjeta-capacitacion:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.tarjeta-capacitacion .modalidad {
    font-size: 12px;
    font-weight: 700;
    color: white;
    padding: 3px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    background: var(--azul-amet);
}

.tarjeta-capacitacion .modalidad.virtual {
    background: #0d6efd;
}

.tarjeta-capacitacion .modalidad.presencial {
    background: #198754;
}

.tarjeta-capacitacion h5 {
    font-weight: 700;
    font-size: 17px;
    color: var(--azul-amet);
    margin-bottom: 8px;
}

.tarjeta-capacitacion .detalle {
    font-size: 13px;
    color: #666;
}

.tarjeta-capacitacion .detalle i {
    width: 20px;
    color: var(--azul-amet);
}

.tarjeta-capacitacion .estado-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    display: inline-block;
}

.estado-badge.abierta {
    background: #d4edda;
    color: #155724;
}

.estado-badge.cerrada {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   CTA SECTION - LLAMADO A LA ACCIÓN
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--azul-amet), var(--azul-amet-claro));
    color: white;
    padding: 50px 0;
    text-align: center;
}

.cta-section h2 {
    font-weight: 800;
    font-size: 32px;
}

.cta-section p {
    opacity: 0.85;
    font-size: 18px;
    max-width: 600px;
    margin: 10px auto 25px;
}

.cta-section .btn-cta {
    background: var(--dorado-amet);
    color: var(--azul-amet-oscuro);
    font-weight: 700;
    padding: 14px 50px;
    border-radius: 50px;
    font-size: 18px;
    display: inline-block;
    transition: all 0.3s;
}

.cta-section .btn-cta:hover {
    background: var(--dorado-amet-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.35);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float .tooltip-wa {
    position: absolute;
    right: 70px;
    background: #1a1a2e;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.whatsapp-float:hover .tooltip-wa {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.whatsapp-float .tooltip-wa::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #1a1a2e;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-amet {
    background: var(--azul-amet-oscuro);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-amet h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-amet a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.footer-amet a:hover {
    color: var(--dorado-amet);
}

.footer-amet .redes-footer a {
    display: inline-block;
    margin-right: 12px;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.footer-amet .redes-footer a:hover {
    color: var(--dorado-amet);
    transform: translateY(-3px);
}

.footer-amet .copy {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 15px;
    margin-top: 25px;
    font-size: 13px;
    text-align: center;
}

/* ============================================
   BOTONES AMET
   ============================================ */
.btn-amet-primary {
    background: var(--azul-amet);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-amet-primary:hover {
    background: var(--azul-amet-oscuro);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn-amet-outline {
    border: 2px solid var(--azul-amet);
    color: var(--azul-amet);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-amet-outline:hover {
    background: var(--azul-amet);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .top-bar .container {
        justify-content: center;
        font-size: 12px;
    }
    
    .top-bar .info-item {
        margin-right: 10px;
    }
    
    .top-bar .redes-sociales {
        margin-top: 4px;
    }
    
    .navbar-principal .navbar-nav .nav-link {
        padding: 10px 14px;
    }
    
    .navbar-principal .navbar-nav .nav-link.btn-afiliacion {
        margin-top: 8px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 30px;
    }
    
    .hero-section .estadisticas {
        gap: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float .tooltip-wa {
        display: none;
    }
    
    .btn-login {
        margin-top: 8px;
        text-align: center;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section .btn-cta {
        font-size: 16px;
        padding: 12px 35px;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
        gap: 4px;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section .btn-cta {
        font-size: 15px;
        padding: 12px 30px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
    
    .navbar-principal .navbar-brand {
        font-size: 18px;
    }
    
    .navbar-principal .navbar-brand img {
        height: 40px;
    }
    
    .navbar-principal .navbar-brand small {
        font-size: 9px;
    }
}