/* ===== Global Styles ===== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Navigation ===== */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.whatsapp-btn {
    background-color: var(--success-color);
    border-radius: 4px;
    padding: 0.5rem 1rem !important;
}

.whatsapp-btn:hover {
    background-color: #218838;
    color: #fff !important;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: slideInDown 0.8s ease;
}

.hero-section .lead {
    font-size: clamp(1rem, 2vw, 1.5rem);
    animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero-section p:last-of-type {
    animation: slideInUp 0.8s ease 0.4s backwards;
}

.hero-section .btn {
    animation: slideInUp 0.8s ease 0.6s backwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover,
.btn-success:active {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-outline-light {
    border-width: 2px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== Benefit Cards ===== */
.benefit-card {
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.benefit-card .icon {
    transition: transform 0.3s ease;
}

.benefit-card:hover .icon {
    transform: scale(1.1);
}

.benefit-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== Feature Items ===== */
.feature-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-item h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== Pricing Section ===== */
.pricing-card {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
    transform: scale(1.02);
}

.badge-popular {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 1;
}

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.pricing-header .small {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.price-features {
    text-align: left;
}

.price-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li:hover {
    padding-left: 0.25rem;
    color: var(--primary-color);
}

.price-features i {
    margin-right: 0.75rem;
    min-width: 20px;
}

.pricing-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
}

.price-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===== Service Cards ===== */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-card i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-dark);
}

.service-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== Contact Info ===== */
.contact-info {
    margin-bottom: 2rem;
}

.info-item h5 {
    font-weight: 700;
    color: #fff;
}

.info-item i {
    margin-right: 0.5rem;
    color: #ffc107;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) translateY(-5px);
}

/* ===== Form Styles ===== */
.form-control {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* ===== Accordion ===== */
.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary-color);
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-button:hover {
    background-color: var(--light-bg);
    color: var(--primary-dark);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #25a335;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ===== Sections ===== */
section {
    scroll-margin-top: 80px;
}

section h2 {
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 1rem;
}

section p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== Utility Classes ===== */
.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

/* ===== Alert Animations ===== */
.alert {
    animation: slideInDown 0.4s ease;
    border-radius: 8px;
}

/* ===== Loading & Performance ===== */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .hero-section,
    .btn,
    #contact,
    .whatsapp-float {
        display: none;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .pricing-card.featured {
        transform: scale(1);
        margin: -1rem 0;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
    }

    .d-flex.justify-content-center.gap-3 .btn {
        width: 100%;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
        line-height: 50px;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1rem;
    }

    section {
        padding: 3rem 1rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .badge-popular {
        font-size: 0.65rem;
        top: 15px;
        right: -30px;
        padding: 3px 35px;
    }

    .pricing-card {
        border-radius: 8px;
    }

    .pricing-header {
        padding: 1.5rem 1rem;
    }

    .pricing-header h3 {
        font-size: 1.5rem;
    }

    .pricing-amount {
        font-size: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem !important;
    }

    .feature-item {
        padding: 0.75rem;
    }

    .feature-item h5 {
        font-size: 1rem;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    footer {
        font-size: 0.9rem;
    }

    section p {
        font-size: 0.95rem;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .form-control {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
        color: #e0e0e0;
    }

    .form-control:focus {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .benefit-card,
    .service-card,
    .pricing-card {
        background-color: #2a2a2a;
        border-color: #404040;
    }

    .feature-item {
        background-color: #2a2a2a;
        border-color: #404040;
    }

    .feature-item:hover {
        background-color: #333;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Focus Visible for Keyboard Navigation ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Text Selection ===== */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}
