/* =============================================
   wibcode - Estilos principales
   ============================================= */
:root {
    --color-primary: #0a192f;
    --color-primary-light: #112240;
    --color-accent: #0056b3;
    --color-accent-hover: #004494;
    --color-highlight: #64b5f6;
    --color-white: #ffffff;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-600: #6c757d;
    --color-gray-800: #343a40;
    --color-text: #333333;
    --color-text-light: rgba(255,255,255,0.85);
    --font-main: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Typography ---- */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: normal;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.section-title--dark { color: var(--color-primary); }
.section-title--light { color: var(--color-white); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn-wibcode {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-wibcode--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn-wibcode--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,86,179,0.4);
}

.btn-wibcode--outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-wibcode--outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-wibcode--outline-dark {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-wibcode--outline-dark:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ---- Navbar ---- */
.navbar-wibcode {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1030;
}

.navbar-wibcode.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-wibcode .navbar-brand {
    padding: 0;
    margin-right: 1rem;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    line-height: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.logo-wrap:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.navbar-logo {
    height: 38px;
    width: auto;
    max-width: 190px;
    display: block;
    object-fit: contain;
}

.footer-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

.navbar-wibcode .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.navbar-wibcode .nav-link:hover,
.navbar-wibcode .nav-link.active {
    color: var(--color-highlight) !important;
}

.navbar-wibcode .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-wibcode .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%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero ---- */
.hero-section {
    background: var(--color-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 100px;
    padding-bottom: 3rem;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border: 1px solid rgba(0, 86, 179, 0.25);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.08), transparent);
}

.hero-shape--1 {
    width: 180px;
    height: 180px;
    top: 12%;
    right: 8%;
    transform: rotate(25deg);
}

.hero-shape--2 {
    width: 120px;
    height: 120px;
    bottom: 18%;
    right: 22%;
    transform: rotate(-15deg);
    opacity: 0.7;
}

.hero-shape--3 {
    width: 260px;
    height: 260px;
    top: 35%;
    right: -40px;
    transform: rotate(12deg);
    border-color: rgba(100, 181, 246, 0.15);
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(0, 86, 179, 0.06) 12px,
        rgba(0, 86, 179, 0.06) 24px
    );
}

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

.hero-main-row {
    min-height: calc(100vh - 160px);
    align-items: flex-start !important;
}

.hero-main-row > .col-lg-7 {
    align-self: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 85% 40%, rgba(0, 86, 179, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(100, 181, 246, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.hero-section::after {
    display: none;
}

.hero-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    max-width: none;
}

.hero-title-line {
    display: block;
}

@media (min-width: 992px) {
    .hero-title-line {
        white-space: nowrap;
    }
}

.hero-title .highlight {
    color: var(--color-highlight);
}

.hero-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
    max-width: 500px;
    line-height: 1.75;
}

.hero-text--secondary {
    margin-bottom: 1.75rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    column-gap: 1.25rem;
    row-gap: 0.85rem;
    margin-top: 1.25rem;
    max-width: 100%;
    position: relative;
    z-index: 3;
}

@media (min-width: 992px) {
    .hero-main-row > .col-lg-5 {
        position: relative;
        z-index: 4;
        overflow: visible;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .hero-main-row > .col-lg-5 .animate-fade-in-left {
        display: flex;
        flex-direction: column;
        flex: 1;
        width: 100%;
    }

    .hero-main-row > .col-lg-7 {
        position: relative;
        z-index: 1;
    }

    .hero-features {
        width: min(960px, 220%);
        max-width: none;
        grid-template-columns: repeat(3, auto);
        column-gap: 1.5rem;
        margin-top: auto;
        padding-top: 3rem;
    }

    .hero-feature-text {
        flex: none;
        min-width: 0;
    }

    .hero-feature-text h6 {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    .hero-features {
        width: min(980px, 230%);
        column-gap: 1.75rem;
        padding-top: 3.5rem;
    }
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.hero-feature-text {
    flex: 1;
    min-width: 0;
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.hero-feature-text h6 {
    color: var(--color-white);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.hero-feature-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    padding-left: 0;
    overflow: visible;
    min-height: clamp(380px, 52vh, 560px);
    z-index: 1;
}

.hero-mockup {
    --mockup-shift-x: 4%;
    width: 155%;
    max-width: 860px;
    height: auto;
    display: block;
    background: transparent;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
    animation: hero-mockup-float 6s ease-in-out infinite;
    margin-right: -12%;
}

@keyframes hero-mockup-float {
    0%, 100% { transform: translateX(var(--mockup-shift-x)) translateY(0); }
    50% { transform: translateX(var(--mockup-shift-x)) translateY(-15px); }
}

@media (min-width: 1200px) {
    .hero-visual {
        min-height: clamp(420px, 58vh, 620px);
    }

    .hero-mockup {
        --mockup-shift-x: 6%;
        width: 170%;
        max-width: 920px;
        margin-right: -14%;
    }
}

@media (min-width: 1400px) {
    .hero-mockup {
        --mockup-shift-x: 8%;
        width: 185%;
        max-width: 980px;
        margin-right: -16%;
    }
}

/* ---- Services ---- */
.services-section {
    padding: 100px 0;
    background: var(--color-white);
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.service-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--color-accent-hover);
    gap: 0.5rem;
}

/* ---- Portfolio ---- */
.portfolio-section {
    padding: 100px 0;
    background: var(--color-primary);
}

/* ---- Testimonials ---- */
.testimonials-section {
    padding: 100px 0;
    background: var(--color-gray-100);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: normal;
    color: #3d4f5f;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.testimonial-author-info h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

.testimonial-author-info span {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.45;
    display: block;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: var(--color-gray-200);
}

/* ---- Products ---- */
.products-section {
    padding: 100px 0;
    background: var(--color-white);
}

.product-item {
    text-align: center;
    padding: 1.5rem 1rem;
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: var(--transition);
}

.product-item:hover .product-icon {
    background: var(--color-accent);
    color: var(--color-white);
}

.product-item h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-item p {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    margin: 0;
}

/* ---- Footer ---- */
.footer-wibcode {
    background: #060d1a;
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

.footer-wibcode .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-wibcode .footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-wibcode h5 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

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

.footer-wibcode ul li {
    margin-bottom: 0.6rem;
}

.footer-wibcode ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-wibcode ul li a:hover {
    color: var(--color-highlight);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--color-accent);
    margin-top: 3px;
}

.footer-newsletter .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-white);
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer-newsletter .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-accent);
    box-shadow: none;
    color: var(--color-white);
}

.footer-newsletter .btn-subscribe {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: var(--transition);
}

.footer-newsletter .btn-subscribe:hover {
    background: var(--color-accent-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--color-highlight);
}

/* ---- Page Header (inner pages) ---- */
.page-header {
    background: var(--color-primary);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,86,179,0.2) 0%, transparent 70%);
}

.page-header h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    position: relative;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    position: relative;
    max-width: 600px;
    margin: 1rem auto 0;
}

.breadcrumb-wibcode {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    position: relative;
}

.breadcrumb-wibcode li {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.breadcrumb-wibcode li a {
    color: var(--color-highlight);
    text-decoration: none;
}

.breadcrumb-wibcode li + li::before {
    content: '/';
    margin-right: 0.5rem;
    color: rgba(255,255,255,0.4);
}

/* ---- Contact Form ---- */
.contact-form-section {
    padding: 100px 0;
}

.contact-form-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-wibcode .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.form-wibcode .form-control,
.form-wibcode .form-select {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-wibcode .form-control:focus,
.form-wibcode .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0,86,179,0.15);
}

/* ---- Floating Contact Widget ---- */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1040;
    width: 320px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.4s ease;
}

.floating-contact.open {
    transform: translateX(0);
}

.floating-contact-header {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-contact-header h6 {
    margin: 0;
    font-weight: 600;
}

.floating-contact-body {
    padding: 1.25rem;
}

.floating-contact-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- WhatsApp & Chat ---- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-float-btn {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,86,179,0.4);
    transition: var(--transition);
    border: none;
}

.chat-float-btn:hover {
    transform: scale(1.1);
    background: var(--color-accent-hover);
}

.whatsapp-btn {
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--color-white);
    background: #20bd5a;
}

/* ---- About ---- */
.about-section { padding: 100px 0; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-item h3 { font-size: 2.5rem; font-weight: 700; color: var(--color-accent); margin-bottom: 0.25rem; }
.stat-item p { color: var(--color-gray-600); font-size: 0.9rem; margin: 0; }

/* ---- Blog ---- */
.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-gray-200);
}

.blog-card-body { padding: 1.5rem; }
.blog-card-date { font-size: 0.8rem; color: var(--color-accent); font-weight: 600; }
.blog-card-body h4 { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin: 0.5rem 0; }
.blog-card-body p { font-size: 0.9rem; color: var(--color-gray-600); }

/* ---- Utilities ---- */
.section-padding { padding: 100px 0; }
.bg-dark-section { background: var(--color-primary); }
.bg-light-section { background: var(--color-gray-100); }

.text-accent { color: var(--color-accent); }
.text-highlight { color: var(--color-highlight); }

.alert-wibcode {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

/* Placeholder images */
.img-placeholder {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 3rem;
}
