/* =====================================================
   EKOBITS - Sistema de Estilos Optimizado
   Tema Ocean Fijo - Versión Responsive
   ===================================================== */

/* =====================================================
   TEMA OCEAN (ÚNICO Y FIJO)
   ===================================================== */

:root {
    --color-primary: #0077BE;
    --color-secondary: #00B4D8;
    --color-accent: #48CAE4;
    --color-dark: #03045E;
    --color-light: #CAF0F8;
    --color-bg-main: #ffffff;
    --color-bg-alt: #E8F4F8;
    --color-text: #03045E;
    --color-text-light: #0077BE;
    --shadow-sm: 0 2px 8px rgba(0,119,190,0.15);
    --shadow-md: 0 5px 20px rgba(0,119,190,0.2);
    --shadow-lg: 0 15px 40px rgba(0,119,190,0.3);
}

/* Asegurar que el tema ocean siempre esté activo */
body {
    --color-primary: #0077BE;
    --color-secondary: #00B4D8;
    --color-accent: #48CAE4;
    --color-dark: #03045E;
    --color-light: #CAF0F8;
    --color-bg-main: #ffffff;
    --color-bg-alt: #E8F4F8;
    --color-text: #03045E;
    --color-text-light: #0077BE;
}

/* =====================================================
   ESTILOS BASE
   ===================================================== */

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-main);
    overflow-x: hidden;
}

/* =====================================================
   NAVEGACIÓN
   ===================================================== */

.navbar {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: clamp(1.2rem, 4vw, 1.9rem);
    color: white !important;
    transition: transform 0.3s ease;
}

.navbar-brand img {
    height: clamp(40px, 8vw, 55px);
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(360deg);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* =====================================================
   HERO SECTION - CENTRADO Y RESPONSIVE
   ===================================================== */

.hero {
    background: url('FONDO.jpg') no-repeat center center;
    background-size: cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 60px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 190, 0.1);
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    text-align: center;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.btn-primary-custom {
    background: white;
    color: var(--color-secondary);
    padding: clamp(12px, 2vw, 15px) clamp(25px, 4vw, 40px);
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-secondary);
}

.btn-outline-custom {
    background: transparent;
    color: white;
    padding: clamp(12px, 2vw, 15px) clamp(25px, 4vw, 40px);
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--color-secondary);
}

/* =====================================================
   ESTADÍSTICAS
   ===================================================== */

.stats {
    background: var(--color-bg-alt);
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: clamp(20px, 4vw, 30px);
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--color-text);
}

/* =====================================================
   SERVICIOS - CENTRADOS
   ===================================================== */

.services {
    padding: 80px 0;
    background: var(--color-bg-main);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--color-primary);
    text-align: center;
}

.service-card {
    background: var(--color-bg-main);
    padding: clamp(25px, 5vw, 40px);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 2px solid transparent;
}

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

.service-icon {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: white;
}

.service-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 15px;
    color: var(--color-text);
    font-weight: 700;
}

.service-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* =====================================================
   ABOUT (NOSOTROS) - CENTRADO
   ===================================================== */

.about {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.about-features {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.feature-item span {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--color-text);
    font-weight: 500;
}

.about-image {
    text-align: center;
    padding: 20px;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,119,190,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0,119,190,0.4);
}

@media (max-width: 768px) {
    .about-image {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .about-image img {
        max-width: 100%;
        border-radius: 15px;
    }
}

/* =====================================================
   PORTFOLIO
   ===================================================== */

.portfolio {
    padding: 80px 0;
    background: var(--color-bg-main);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: white;
}

.project-card {
    background: var(--color-bg-main);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

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

.project-image {
    padding: 40px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.project-info {
    padding: clamp(20px, 4vw, 30px);
}

.project-info h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 10px;
    color: var(--color-text);
    font-weight: 700;
}

.project-info p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--color-primary);
    color: white;
    border-radius: 20px;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    font-weight: 500;
}

/* =====================================================
   CONTACTO
   ===================================================== */

.contact {
    padding: 80px 0;
    background: var(--color-bg-main);
}

.contact-form {
    background: var(--color-bg-main);
    padding: clamp(25px, 5vw, 40px);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-control {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: var(--color-bg-main);
    color: var(--color-text);
    font-size: clamp(0.9rem, 2vw, 1rem);
    width: 100%;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0,119,190,0.25);
    outline: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    flex-shrink: 0;
}

.contact-item div h5 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 5px;
    color: var(--color-text);
    font-weight: 700;
}

.contact-item div p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--color-text-light);
    margin: 0;
}

/* =====================================================
   WHATSAPP FLOAT BUTTON
   ===================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 5px 20px rgba(37,211,102,0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

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

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.footer-section p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-section ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

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

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

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.logo-img { 
    height: 135px;
    width: auto;
    max-width: 100%;
}

/* =====================================================
   RESPONSIVE - MOBILE OPTIMIZADO
   ===================================================== */

@media (max-width: 992px) {
    .hero {
        min-height: 80vh;
        padding: 100px 15px 50px;
    }

    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }

    .nav-link {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 90px 15px 40px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 15px !important;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
    }

    .stats {
        padding: 40px 0;
    }

    .services,
    .portfolio,
    .contact,
    .about {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 10px 30px;
        min-height: 65vh;
    }

    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        font-size: 0.9rem;
        padding: 12px 25px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .service-card,
    .project-card {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .stat-card {
        padding: 15px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .logo-img {
        height: 100px;
    }
}

/* =====================================================
   ANIMACIONES
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* =====================================================
   UTILIDADES
   ===================================================== */

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

.text-secondary {
    color: var(--color-secondary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

/* =====================================================
   OPTIMIZACIÓN PARA IMPRESIÓN
   ===================================================== */

@media print {
    .navbar,
    .whatsapp-float,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}