/* ============================================
   MEGAPEL - Landing Page Styles
   ============================================ */

:root {
    --primary: #0d47a1;
    --primary-dark: #0a3680;
    --primary-light: #1565c0;
    --secondary: #ff6f00;
    --secondary-dark: #e65100;
    --accent: #00c853;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 12px;
    border-radius: 2px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- BUTTONS ---------- */
.btn-megapel {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-megapel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.5);
    background: linear-gradient(135deg, var(--secondary-dark), #bf360c);
    color: var(--white);
}

.btn-megapel-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
}

.btn-megapel-primary:hover {
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), #082b6b);
    color: var(--white);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

/* ---------- NAVBAR ---------- */
.navbar-megapel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    z-index: 1050;
}

.navbar-megapel.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-megapel .navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

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

.navbar-megapel .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.navbar-megapel .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-megapel .nav-link:hover::after,
.navbar-megapel .nav-link.active::after {
    width: 60%;
}

.navbar-megapel .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-toggler {
    border: none;
    padding: 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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='%230d47a1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- HERO ---------- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.45), rgba(10, 54, 128, 0.55)),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.hero-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features li i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    background: rgba(0, 200, 83, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-form-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.hero-form-card .form-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-form-card .form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.hero-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    background-color: var(--white);
}

.hero-form-card .form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.hero-form-card select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.hero-form-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.2rem;
}

.hero-form-buttons .btn-megapel,
.hero-form-buttons .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ---------- WHO WE ARE ---------- */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), transparent);
    pointer-events: none;
}

.about-text p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text .lead {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(13, 71, 161, 0.02));
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 4px;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 3rem;
    border: 4px solid var(--white);
}

.map-wrapper iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* ---------- DIFFERENTIALS ---------- */
.differentials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f4ff 0%, var(--white) 100%);
    position: relative;
}

.differentials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.differential-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    padding: 3rem;
    color: var(--white);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.differential-highlight::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.differential-highlight::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 111, 0, 0.15);
    border-radius: 50%;
}

.differential-highlight h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.differential-highlight p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.differential-highlight .badge-factory {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 111, 0, 0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.differential-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

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

.differential-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    transition: var(--transition);
}

.differential-card:nth-child(1) .icon-wrapper {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(13, 71, 161, 0.05));
    color: var(--primary);
}

.differential-card:nth-child(2) .icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 200, 83, 0.05));
    color: var(--accent);
}

.differential-card:nth-child(3) .icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1), rgba(255, 111, 0, 0.05));
    color: var(--secondary);
}

.differential-card:nth-child(4) .icon-wrapper {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.05));
    color: #9c27b0;
}

.differential-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.differential-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.differential-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

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

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

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

.product-card .product-image {
    height: 220px;
    background: linear-gradient(135deg, #f0f4ff, #e3edfa);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card .product-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .product-image .product-icon-placeholder {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.4;
}

.product-card .product-image .product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card .product-body {
    padding: 1.5rem;
}

.product-card .product-body h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--dark);
}

.product-card .product-body p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-card .product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem;
}

.product-card .product-features li {
    font-size: 0.85rem;
    color: #555;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card .product-features li i {
    color: var(--accent);
    font-size: 0.75rem;
}

.product-card .product-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.product-card .product-link:hover {
    color: var(--secondary);
    gap: 10px;
}

/* ---------- FAQ ---------- */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f4ff 0%, var(--white) 100%);
}

.faq-accordion .accordion-item {
    border: 2px solid var(--gray-light);
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-accordion .accordion-item:hover {
    border-color: var(--primary);
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    padding: 1.2rem 1.5rem;
    background: var(--white);
    transition: var(--transition);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(13, 71, 161, 0.02));
    color: var(--primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    border-color: var(--primary);
}

.faq-accordion .accordion-button::after {
    width: 20px;
    height: 20px;
    background-size: 20px;
    transition: var(--transition);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d47a1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.2rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

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

.footer-brand img {
    height: 55px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    margin-right: 8px;
    transition: var(--transition);
    font-size: 1rem;
}

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

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

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

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

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

.footer-links a i {
    font-size: 0.8rem;
    color: var(--secondary);
}

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

.footer-contact-item i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

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

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- ANIMATIONS ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-form-card {
        margin-top: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .differential-highlight h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero-content p {
        text-align: center;
    }

    .hero-features li {
        justify-content: center;
    }

    .hero-form-card {
        padding: 1.8rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-item .stat-number {
        font-size: 1.5rem;
    }

    .differential-highlight {
        padding: 2rem;
        text-align: center;
    }

    .differential-highlight p {
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .footer {
        padding: 60px 0 0;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-form-card h3 {
        font-size: 1.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---------- FORM SUCCESS ---------- */
.form-success-message {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success-message.show {
    display: block;
}

.form-success-message i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.form-success-message h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-success-message p {
    color: var(--gray);
}
