@charset "utf-8";
/* CSS Document */

/* ===== VARIABLES DE COLOR ===== */
:root {
    --primary-blue: #3171af;
	--dark-blue: #708CC2;
    --light-blue: #b0bedc;
	--dark-green: #7BBBB0;
	--light-green: #D1E8E4;
	--dark-brown: #FAFDD6;
	--light-brown: #FBFDE6;
	--dark-gris: #1E93AB;
	--light-gris: #31BEDA;	
    --light-gray: #f5f5f5;
	--whiteDropMenu: #3171af;
    --white: #ffffff;
    --dark-gray: #333333;
    --text-gray: #666666;
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--light-gray);
}

html {
    scroll-behavior: smooth;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(49, 113, 175, 0.3);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-content .logo {
    max-width: 200px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.slogan {
    font-style: italic;
    margin-top: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-content h1,
.hero-content p {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* ===== NAVEGACIÓN Y HEADER ===== */
.w3-top {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    position: fixed;
    width: 100%;
    background-color: var(--primary-blue) !important;
}

#myNavbar {
    padding: 8px 16px;
}

.w3-bar .w3-button {
    padding: 8px 16px;
    transition: all 0.3s ease;
    color: white !important;
}

.w3-bar .w3-button:hover {
    background-color: var(--light-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: var(--dark-gray) !important;
}

.w3-bar .w3-button.active {
    background-color: var(--light-blue) !important;
    color: var(--dark-gray) !important;
}

.w3-bar .w3-button img {
    height: 30px;
    margin-right: 10px;
}

.w3-dropdown-content {
    margin-top: 0;
    border: 1px solid var(--light-blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    background-color: var(--whiteDropMenu);
}

.w3-dropdown-content .w3-bar-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--dark-gray);
}

.w3-dropdown-content .w3-bar-item:hover {
    background-color: var(--light-blue);
}

/* ===== SIDEBAR MÓVIL ===== */
.w3-sidebar {
    width: 200px;
    background-color: var(--light-gray);
    z-index: 1002;
}

.w3-sidebar .w3-bar-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-blue);
    color: var(--dark-gray);
}

.w3-sidebar .w3-bar-item:hover {
    background-color: var(--light-blue);
}

.w3-sidebar .w3-hide {
    display: none;
}

.w3-sidebar .w3-show {
    display: block;
}

.w3-sidebar .w3-bar-item.w3-small {
    padding-left: 32px;
    font-size: 14px;
}

/* ===== BOTONES ===== */
.w3-button.w3-round {
    border-radius: 20px;
}

.w3-button.w3-round-large {
    border-radius: 25px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

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

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-success {
    background-color: #4CAF50;
    color: white;
}

.w3-blue {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

.w3-light-blue {
    background-color: var(--light-blue) !important;
    color: var(--dark-gray) !important;
}

/* ===== SECCIÓN ABOUT MEJORADA ===== */
.about-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
}

.about-card {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: none;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.advantages-grid {
    margin-top: 20px;
}

.advantage-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border-radius: 12px;
    padding: 15px;
    background: var(--light-gray);
}

.advantage-item:hover {
    border-left-color: var(--primary-blue);
    background-color: var(--white);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.advantage-icon {
    transition: all 0.3s ease;
    padding: 12px;
    color: var(--primary-blue) !important;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.3);
    color: var(--primary-blue) !important;
}

.icon-container {
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(49, 113, 175, 0.3);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5f95 100%);
}

.about-card:hover .icon-container {
    transform: rotate(10deg) scale(1.1);
}

/* ===== SECCIÓN BUSCADOR MEJORADA ===== */
.search-section {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--light-green) 100%);
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle fill="%23ffffff" fill-opacity="0.05" cx="500" cy="500" r="400"/></svg>');
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border-radius: 25px 0 0 25px !important;
    padding: 15px 20px !important;
    border: 2px solid var(--light-blue) !important;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(49, 113, 175, 0.1);
}

.search-button {
    border-radius: 0 25px 25px 0 !important;
    padding: 15px 25px !important;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5f95 100%) !important;
    border: 2px solid var(--primary-blue) !important;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 113, 175, 0.4);
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid var(--light-blue);
}

/* ===== SECCIÓN EMPRENDEDORES MEJORADA ===== */
.emprendedores-section {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--light-blue) 100%);
    position: relative;
}

.emprendedores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect fill="%23ffffff" fill-opacity="0.05" x="200" y="200" width="600" height="600" rx="50"/></svg>');
}

.emprendedor-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: none;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--light-blue);
}

.emprendedor-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

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

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

.emprendedor-card:hover .card-image img {
    transform: scale(1.1);
}

.placeholder-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.placeholder-image i {
    font-size: 64px;
    opacity: 0.8;
}

.card-content {
    padding: 25px;
}

.category {
    color: var(--primary-blue);
    font-weight: bold;
    margin: 10px 0;
}

.description {
    color: var(--text-gray);
    line-height: 1.6;
}

.card-actions {
    margin-top: 20px;
}

.view-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5f95 100%);
    border: none;
    padding: 10px 25px;
    transition: all 0.3s ease;
    color: white;
}

.view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 113, 175, 0.4);
    background: linear-gradient(135deg, #2a5f95 0%, var(--primary-blue) 100%);
}

.empty-state {
    border-radius: 20px;
    text-align: center;
    background: var(--white);
    border: 2px solid var(--light-blue);
}

/* ===== SECCIÓN ESTADÍSTICAS MEJORADA ===== */
.stats-section {
    background: linear-gradient(135deg, var(--dark-gris) 0%, var(--light-gris) 100%);
    position: relative;
    color: var(--white);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,0 1000,0 500,1000"/></svg>');
}

.stat-card {
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.stat-icon i {
    font-size: 36px;
    color: var(--white);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

/* ===== SECCIÓN CONTACTO MEJORADA ===== */
.contact-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--light-blue) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%23ffffff" fill-opacity="0.05" d="M0,500 Q250,300 500,500 T1000,500 L1000,1000 L0,1000 Z"/></svg>');
}

.contact-info-card, .contact-form-card {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: var(--white);
    height: 100%;
    border: 1px solid var(--light-blue);
}

.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.contact-description {
    font-size: 1.1em;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background: var(--light-gray);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    background: var(--light-blue);
    transform: translateX(5px);
    border-left-color: var(--primary-blue);
}

.contact-item i {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    color: var(--primary-blue);
}

.form-input, .form-textarea {
    border-radius: 10px !important;
    padding: 15px !important;
    border: 2px solid var(--light-blue) !important;
    transition: all 0.3s ease;
    background-color: var(--light-gray);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(49, 113, 175, 0.1);
    background-color: var(--white);
}

.submit-button {
    border-radius: 25px !important;
    padding: 15px !important;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5f95 100%) !important;
    border: none !important;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 113, 175, 0.4);
}

/* ===== FOOTER MEJORADO ===== */
.footer-section {
    color: var(--white);
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.03" points="0,1000 1000,500 1000,1000"/></svg>');
}

.footer-content {
    padding: 50px 0 30px;
}

.footer-column {
    text-align: center;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-link {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin: 8px 0;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: var(--light-blue);
}

/* ===== COMPONENTES DE TARJETAS ===== */
.emprendedor-card {
    transition: all 0.3s ease;
    border: none;
}

.emprendedor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===== BUSCADOR ===== */
#searchInput {
    border-radius: 25px 0 0 25px;
}

#searchForm button {
    border-radius: 0 25px 25px 0;
}

#searchResults {
    z-index: 1000;
    position: absolute;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: var(--white);
    border: 1px solid var(--light-blue);
}

.search-result {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--dark-gray);
}

.search-result:hover {
    background-color: var(--light-blue);
}

.search-result:last-child {
    border-bottom: none;
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    background-color: var(--light-gray);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
}

/* ===== DASHBOARD ===== */
.sidebar {
    height: 100%;
    background-color: var(--light-gray);
    position: fixed;
    z-index: 1;
    overflow: auto;
    border-right: 1px solid var(--light-blue);
}

.main-content {
    margin-left: 200px;
    padding: 20px;
    background-color: var(--light-gray);
}

/* ===== GALERÍA DE PRODUCTOS ===== */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-item {
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.product-item img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
}

/* ===== LANDING PAGE ===== */
.landing-header {
    background: linear-gradient(rgba(49, 113, 175, 0.8), rgba(49, 113, 175, 0.9)), url('../uploads/pattern.jpg');
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-blue);
}

/* ===== SECCIONES GENERALES ===== */
section {
    scroll-margin-top: 80px;
}

/* ===== ESTADÍSTICAS ===== */
.w3-blue .w3-xxlarge {
    font-weight: bold;
    display: block;
}

/* ===== FOOTER ===== */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== ELEMENTOS COMUNES ===== */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #3C3C3C;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em !important;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5f95 100%);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(49, 113, 175, 0.4);
    background: linear-gradient(135deg, #2a5f95 0%, var(--primary-blue) 100%);
}

/* ===== MENSAJES DE ALERTA ===== */
.w3-panel {
    animation: fadeIn 0.5s;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-blue);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.w3-animate-top {
    position: relative;
    animation: animatetop 0.8s;
}

@keyframes animatetop {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

/* ===== MEJORAS VISUALES ===== */
.w3-ul .w3-padding-16 {
    transition: background-color 0.3s;
}

.w3-ul .w3-padding-16:hover {
    background-color: var(--light-gray);
}

.w3-text-blue {
    color: var(--primary-blue) !important;
}

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

.about-card, .emprendedor-card, .stat-card, .contact-info-card, .contact-form-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de hover para botones */
.w3-button.w3-hover-deep-purple:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
    transform: translateY(-2px);
}

.w3-white {
    background-color: var(--white) !important;
    color: var(--dark-gray) !important;
}

.w3-light-grey {
    background-color: var(--light-gray) !important;
    color: var(--dark-gray) !important;
}

/* ===== MEDIA QUERIES ===== */

/* Móviles pequeños */
@media screen and (max-width: 600px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2.5em !important;
    }
    
    .w3-col.m4 {
        margin-bottom: 20px;
    }
    
    #searchInput {
        border-radius: 25px;
        margin-bottom: 10px;
    }
    
    #searchForm button {
        border-radius: 25px;
        width: 100%;
    }
    
    .w3-top .w3-bar-item {
        padding: 8px 12px;
    }
    
    .w3-sidebar {
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
}

/* Tablets y móviles grandes */
@media screen and (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-video {
        object-fit: cover;
    }
    
    .video-overlay {
        background: rgba(49, 113, 175, 0.4);
    }
    
    .hero-content h1 {
        font-size: 2em !important;
    }
}

/* Tablets */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .hero-section {
        height: 100vh;
    }
}

/* Prevenir que el video se reproduzca en modo low-power */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    
    .hero-background {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    }
    
    .hero-background img {
        display: block;
    }
}