/* ========================================
   IO Group - Estilos Personalizados
   ======================================== */

:root {
    --primary-color: #0f172a;
    --secondary-color: #ca8a04;
    --accent-color: #1e40af;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #475569;
    --gold: #d4af37;
    --gold-light: #f0d77a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    max-width: 200px;
}

/* Imágenes con fondo transparente */
.contenedor-imagen,
.contenedor-imagen img,
img.sin-fondo,
.navbar-brand img,
.hero-section img,
.footer-logo {
    background-color: transparent !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

.navbar-scrolled {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212,175,55,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30,64,175,0.15) 0%, transparent 50%);
    opacity: 1;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: #a16207;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(202,138,4,0.4);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Pitch Section */
.pitch-section {
    background: linear-gradient(90deg, var(--primary-color) 0%, #1e3a5f 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.pitch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pitch-title {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pitch-title strong {
    color: var(--secondary-color);
}

.pitch-text {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    margin-bottom: 3rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color), #a16207);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Services Tabs */
.nav-pills .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    background: #f1f5f9;
}

.nav-pills .nav-link.active {
    background: var(--secondary-color);
    color: #fff;
}

.nav-pills .nav-link:hover:not(.active) {
    background: #e2e8f0;
    color: var(--primary-color);
}

.nav-pills .nav-link i {
    font-size: 1.2rem;
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Commodities Section */
.commodities-header h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.commodities-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.commodities-pillars {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.commodities-pillars h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.commodities-pillars p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Ecosystem Section */
.ecosystem-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ecosystem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212,175,55,0.15) 0%, transparent 60%);
}

.ecosystem-section .section-title {
    color: #fff;
}

.ecosystem-section .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.ecosystem-item {
    padding: 1.5rem;
}

.ecosystem-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--secondary-color);
}

.ecosystem-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.ecosystem-item h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ecosystem-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.ecosystem-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background: var(--primary-color);
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-subtitle {
    color: rgba(255,255,255,0.8);
}

/* CTA Buttons */
.cta-button {
    display: block;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.cta-button i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--secondary-color);
}

.cta-button {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.cta-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-top: 0.25rem;
}

.contact-info {
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-info h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.contact-form h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

.btn-submit {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #a16207;
    color: #fff;
}

/* Footer */
footer {
    background: #0a0f1a;
    padding: 3rem 0 1rem;
    color: rgba(255,255,255,0.7);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: #fff;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(15,23,42,0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.scroll-top:hover {
    background: var(--secondary-color);
    color: #fff;
}

.scroll-top.active {
    display: flex;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:first-child {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.lang-btn:last-child {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

.lang-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.2);
}

.navbar-scrolled .lang-btn {
    border-color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .pitch-title {
        font-size: 1.4rem;
    }
    
    .pitch-text {
        font-size: 1.1rem;
    }
    
    .ecosystem-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .nav-pills .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 1.25rem 1rem;
    }
    
    .ecosystem-item {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}