/* ============================================================
   Portal Emprendedores — Alcaldía de Sucre, Cauca
   CSS Principal — Sistema de Diseño Completo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;600;700;800&display=swap');

/* ---- Variables de color ---- */
:root {
    --primary: #177633;
    --primary-light: #20a045;
    --primary-dark: #0d491f;
    --secondary: #006CDF;
    --accent: #F3BD40;
    --accent-dark: #E19D22;
    --accent-light: #FFE171;
    --accent-gold-gradient: linear-gradient(135deg, #e19d22 0%, #f3bd40 50%, #ffe171 100%);
    --accent-gold-hover: linear-gradient(135deg, #c88719 0%, #e19d22 50%, #f3bd40 100%);
    --dark: #1a2332;
    --dark-2: #2D3748;
    --gray-100: #f7f9fc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --text: #2D3748;
    --text-light: #718096;
    --white: #ffffff;
    --success: #38A169;
    --warning: #DD6B20;
    --danger: #E53E3E;
    --info: #3182CE;
    --overlay: rgba(2, 122, 87, 0.82);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.13);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---- Contenedor ---- */
.container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Grillas Dinámicas */
.responsive-grid {
    display: grid;
    grid-template-columns: var(--grid-cols, 1fr 1fr);
    align-items: start;
}

@media (max-width: 992px) {
    .responsive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gold-gradient);
    color: var(--primary-dark);
    border: none;
    /* border-color: var(--accent-gold-gradient); */
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.btn-green {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-green:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 122, 87, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn-outline-green {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-green:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.branding .logo {
    height: 54px;
    width: auto;
}

.branding-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.branding-text p {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--primary);
    background: rgba(2, 122, 87, 0.07);
}

.nav-menu li.active a,
.nav-menu li a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-register-btn {
    margin-left: 8px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    font-size: 1.4rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    position: relative;
    /* Transición natural usando el verde medio al verde oscuro de tu paleta */
    background: linear-gradient(180deg, #177633 0%, #0E4B20 100%);
    color: #FFFFFF;
    padding: 60px 0 0;
    overflow: hidden;
    /* Borde superior en el verde más claro de la paleta para enmarcar con sutileza */
    border-top: 4px solid #6FA77E;
}

/* --- TEXTURA GEOMÉTRICA CON LA PALETA DE VERDES --- */
/* Diagonal superior en verde medio-claro (Tono 2) */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 139, 83, 0.25) 0%, transparent 70%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}

/* Franja/Acento sutil inferior en el verde más claro (Tono 1) */
.main-footer::after {
    content: '';
    position: absolute;
    bottom: 50px;
    /* Se sitúa justo arriba del área de copyright */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6FA77E 0%, #3A8B53 50%, transparent 100%);
    pointer-events: none;
}

/* --- DETALLES DE LOS ELEMENTOS --- */

/* Títulos con el verde claro de la paleta para un alto contraste y frescura */
.main-footer h4,
.main-footer .footer-title {
    color: #6FA77E;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Iconos de las redes sociales e información de contacto en verde medio-claro */
.main-footer .contact-icon,
.main-footer .social-icon {
    background: #3A8B53;
    color: #FFFFFF;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.main-footer .social-icon:hover {
    background: #6FA77E;
}

/* --- ÁREA DE COPYRIGHT (Verde más profundo) --- */
/* Usamos el verde más oscuro (Tono 4) para la franja final */
.main-footer .footer-bottom,
.main-footer .copyright-bar {
    background: #083315;
    /* Un tono aún más enfocado de la base oscura */
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(111, 167, 126, 0.2);
    /* Detalle con el verde claro */
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer-logo {
    max-width: 130px;
    margin-bottom: 16px;
}

.footer-motto {
    font-style: italic;
    opacity: 0.75;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-contact ul li i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

.legal-links {
    display: flex;
    gap: 16px;
}

.legal-links a {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: var(--transition);
}

.legal-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* ============================================================
   SECCIÓN HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(var(--overlay), var(--overlay)),
        url('/images/hero_bg.jpg') center/cover no-repeat fixed;
    color: var(--white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--accent);
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h2 span {
    color: var(--accent);
    display: block;
}

.hero-text {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stat .label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 10px;
    max-width: 550px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ============================================================
   TARJETAS DE PRODUCTO
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 1;
}

.product-img-container {
    height: 210px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-info {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-unit {
    font-size: 0.82rem;
    color: var(--text-light);
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* ============================================================
   TARJETAS DE NOTICIAS
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date-bubble {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: var(--primary-dark);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.news-date-bubble .day {
    font-size: 1.2rem;
}

.news-date-bubble .month {
    font-size: 0.72rem;
    text-transform: uppercase;
}

.news-content {
    padding: 22px;
}

.news-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.87rem;
    color: var(--primary);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ============================================================
   TARJETAS DE EMPRENDEDOR
   ============================================================ */
.entrepreneurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.entrepreneur-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    text-align: center;
}

.entrepreneur-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.entrepreneur-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--primary-light);
}

.entrepreneur-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
}

.entrepreneur-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.entrepreneur-type {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.entrepreneur-location {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
}

.entrepreneur-desc {
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.form-section-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gray-200);
}

.form-section-card h3 i {
    color: var(--secondary);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label .req {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 122, 87, 0.12);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control:focus.is-invalid {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* File upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-100);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(2, 122, 87, 0.04);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary);
}

.file-upload-label span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.image-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gray-300);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Checkbox custom */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

.terms-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   ALERTAS Y NOTIFICACIONES
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

.alert-warning {
    background: #fffaf0;
    border: 1px solid #fbd38d;
    color: #744210;
}

.alert-danger {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #822727;
}

.alert-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2a4365;
}

/* ============================================================
   BADGES DE ESTADO
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success {
    background: #c6f6d5;
    color: #276749;
}

.badge-warning {
    background: #fbd38d;
    color: #744210;
}

.badge-danger {
    background: #fed7d7;
    color: #822727;
}

.badge-info {
    background: #bee3f8;
    color: #2a4365;
}

/* ============================================================
   FILTROS / TABS
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--gray-100);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.filter-bar form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.filter-bar .form-control {
    max-width: 220px;
}

.filter-bar select.form-control {
    max-width: 180px;
}

/* ============================================================
   PÁGINA DE ÉXITO DE REGISTRO
   ============================================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: var(--gray-100);
}

.success-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    text-align: center;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin: 0 auto 24px;
}

.success-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.success-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-wrapper nav ul {
    display: flex;
    gap: 6px;
}

.pagination-wrapper nav ul li a,
.pagination-wrapper nav ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-300);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.pagination-wrapper nav ul li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-wrapper nav ul li.active span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================================
   HERO DE PÁGINA INTERIOR
   ============================================================ */
.page-hero {
    position: relative;
    /* Degradado principal usando la paleta verde institucional */
    background: linear-gradient(135deg, #0d431c 0%, #177633 50%, #1e873e 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 79px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* Evita que las formas circulares sobresalgan del héroe */
}

/* Forma circular superior derecha (Textura 1) */
.page-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 45px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* Forma circular inferior izquierda (Textura 2) */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 35px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.page-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 750px;
    margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.4rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .branding-text {
        display: none;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 79px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--gray-300);
        box-shadow: var(--shadow);
        gap: 4px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 8px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.7rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .entrepreneurs-grid {
        grid-template-columns: 1fr;
    }

    .success-card {
        padding: 40px 24px;
    }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(2, 122, 87, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(2, 122, 87, 0);
    }
}

.pulse {
    animation: pulse-green 2s infinite;
}

/* ============================================================
   MARQUEE / SLIDER DE TEXTO
   ============================================================ */
.slider-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 16px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    width: max-content;
}

.slider-track.left {
    animation: scrollLeft 35s linear infinite;
}

.slider-track.right {
    animation: scrollRight 35s linear infinite;
}

.slider-track span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0.9;
}

.slider-track span i {
    color: var(--accent);
    font-size: 1rem;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}
/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       S K E L E T O N   L O A D I N G   A N I M A T I O N 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 @ k e y f r a m e s   s k e l e t o n - l o a d i n g   { 
         0 %   {   b a c k g r o u n d - c o l o r :   v a r ( - - g r a y - 3 0 0 ) ;   } 
         1 0 0 %   {   b a c k g r o u n d - c o l o r :   v a r ( - - g r a y - 2 0 0 ) ;   } 
 } 
 
 . s k e l e t o n , 
 . s k e l e t o n - b o x , 
 b o d y . i s - l o a d i n g   i m g : n o t ( . l o g o ) , 
 b o d y . i s - l o a d i n g   . n e w s - c a r d , 
 b o d y . i s - l o a d i n g   . p r o d u c t - c a r d , 
 b o d y . i s - l o a d i n g   . e n t r e p r e n e u r - c a r d   { 
         a n i m a t i o n :   s k e l e t o n - l o a d i n g   1 s   l i n e a r   i n f i n i t e   a l t e r n a t e   ! i m p o r t a n t ; 
         b a c k g r o u n d :   v a r ( - - g r a y - 2 0 0 )   ! i m p o r t a n t ; 
         c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ; 
         b o r d e r - c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ; 
         b o x - s h a d o w :   n o n e   ! i m p o r t a n t ; 
         p o s i t i o n :   r e l a t i v e ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 
 . s k e l e t o n : : a f t e r , 
 . s k e l e t o n - b o x : : a f t e r , 
 b o d y . i s - l o a d i n g   . n e w s - c a r d : : a f t e r , 
 b o d y . i s - l o a d i n g   . p r o d u c t - c a r d : : a f t e r , 
 b o d y . i s - l o a d i n g   . e n t r e p r e n e u r - c a r d : : a f t e r   { 
         c o n t e n t :   ' ' ; 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   0 ; 
         l e f t :   - 1 0 0 % ; 
         w i d t h :   5 0 % ; 
         h e i g h t :   1 0 0 % ; 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 9 0 d e g ,   t r a n s p a r e n t ,   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 4 ) ,   t r a n s p a r e n t ) ; 
         a n i m a t i o n :   s k e l e t o n - s h i m m e r   1 . 5 s   i n f i n i t e ; 
 } 
 
 @ k e y f r a m e s   s k e l e t o n - s h i m m e r   { 
         1 0 0 %   {   l e f t :   1 0 0 % ;   } 
 } 
 
 b o d y . i s - l o a d i n g   *   { 
         t r a n s i t i o n :   n o n e   ! i m p o r t a n t ; 
 } 
 
 b o d y . i s - l o a d i n g   i m g : n o t ( . l o g o )   { 
         o p a c i t y :   0 ; 
 } 
  
 
 b o d y . i s - l o a d i n g   m a i n   p , 
 b o d y . i s - l o a d i n g   m a i n   h 1 , 
 b o d y . i s - l o a d i n g   m a i n   h 2 , 
 b o d y . i s - l o a d i n g   m a i n   h 3 , 
 b o d y . i s - l o a d i n g   m a i n   . b t n   { 
         a n i m a t i o n :   s k e l e t o n - l o a d i n g   1 s   l i n e a r   i n f i n i t e   a l t e r n a t e   ! i m p o r t a n t ; 
         b a c k g r o u n d :   v a r ( - - g r a y - 2 0 0 )   ! i m p o r t a n t ; 
         c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ; 
         b o r d e r - c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ; 
         b o x - s h a d o w :   n o n e   ! i m p o r t a n t ; 
         p o s i t i o n :   r e l a t i v e ; 
         o v e r f l o w :   h i d d e n ; 
         b o r d e r - r a d i u s :   4 p x ; 
 } 
 
 b o d y . i s - l o a d i n g   m a i n   p : : a f t e r , 
 b o d y . i s - l o a d i n g   m a i n   h 1 : : a f t e r , 
 b o d y . i s - l o a d i n g   m a i n   h 2 : : a f t e r , 
 b o d y . i s - l o a d i n g   m a i n   h 3 : : a f t e r , 
 b o d y . i s - l o a d i n g   m a i n   . b t n : : a f t e r   { 
         c o n t e n t :   ' ' ; 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   0 ; 
         l e f t :   - 1 0 0 % ; 
         w i d t h :   5 0 % ; 
         h e i g h t :   1 0 0 % ; 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 9 0 d e g ,   t r a n s p a r e n t ,   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 4 ) ,   t r a n s p a r e n t ) ; 
         a n i m a t i o n :   s k e l e t o n - s h i m m e r   1 . 5 s   i n f i n i t e ; 
 } 
  
 