:root {
    --red: #D32F2F;
    --red-dark: #B71C1C;
    --orange: #E65100;
    --blue: #039BE5;
    --blue-dark: #0277BD;
    --bg: #f5f5f5;
    --card: #fff;
    --text: #333;
    --text-muted: #666;
    --text-light: #777;
    --border: #e0e0e0;
    --shadow: rgba(0,0,0,0.08);
    --header-bg: #fff;
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border: #334155;
    --shadow: rgba(0,0,0,0.3);
    --header-bg: #1e293b;
    --footer-bg: #020617;
    --footer-text: #94a3b8;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 70px 0; }

/* Dark mode toggle */
.dark-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--card);
    box-shadow: 0 2px 8px var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    opacity: 0.8;
    flex-shrink: 0;
}
.dark-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow);
}
[data-theme="dark"] .dark-toggle { background: #1e293b; }

header .mobile-dark-toggle { display: none; }
 
/* Header */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.logo:hover .logo-img { transform: scale(1.02); }

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

nav a:hover, nav a.active { color: var(--red); }

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
}

.btn-primary {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(211,47,47,0.3);
}

.btn-white {
    display: inline-block;
    background: #fff;
    color: var(--red);
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.btn-white:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--red);
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid var(--red);
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--red);
    color: #fff;
}

[data-theme="dark"] .btn-white {
    background: #1e293b;
    color: var(--red);
}
[data-theme="dark"] .btn-white:hover { background: #334155; }
[data-theme="dark"] .btn-outline {
    border-color: var(--red);
    color: var(--red);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
    .header-container { padding: 8px 20px; flex-wrap: nowrap; }
    .logo-img { height: 52px; }
    .menu-toggle { display: flex; }
    .desktop-dark-toggle { display: none; }
    header .mobile-dark-toggle {
        display: flex;
        margin-left: auto;
    }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--header-bg);
        box-shadow: 0 12px 24px var(--shadow);
        transition: max-height 0.35s ease;
    }
    nav.open { max-height: 520px; }
    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 22px;
    }
    nav li { width: 100%; }
    nav a {
        display: block;
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
    }
    nav a.active::after { display: none; }
}

@media (max-width: 600px) {
    .logo-img { height: 44px; }
    .header-container { padding: 6px 16px; }
    nav ul { padding: 4px 16px 18px; }
}

@media (min-width: 901px) {
    .mobile-dark-toggle { display: none !important; }
}

/* Hero slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0277bd 100%);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(30,58,95,0.8) 50%, rgba(2,119,189,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-text { max-width: 600px; }

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-text h1 span { color: #039be5; }

.hero-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(3,155,229,0.25);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    color: #fff;
    border: 1px solid rgba(3,155,229,0.4);
    font-weight: 500;
}

.hero-badge.logo-badge {
    background: #fff;
    padding: 6px 14px;
    display: flex;
    align-items: center;
}

.hero-badge.logo-badge img {
    max-height: 22px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    display: block;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.hero-dot.active { background: var(--blue); transform: scale(1.2); }

@media (max-width: 900px) {
    .hero-slider { height: 500px; }
    .hero-text h1 { font-size: 38px; }
}

@media (max-width: 600px) {
    .hero-slider { height: 450px; }
    .hero-text h1 { font-size: 30px; }
    .hero-badges { display: none; }
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0277bd 100%);
    padding: 90px 20px;
    text-align: center;
    color: #fff;
}
.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}
.page-header h1 span { color: #039be5; }
.page-header p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .page-header { padding: 70px 20px; }
    .page-header h1 { font-size: 32px; }
}

/* Section titles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.section-header h2 span { color: var(--blue); }
.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--card);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow);
    border-color: var(--blue);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3,155,229,0.1);
    border-radius: 50%;
    font-size: 28px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
}

/* CTA section */
.cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
    padding: 60px 20px;
    color: #fff;
}
.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.cta-text h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-text p { opacity: 0.9; font-size: 16px; }

@media (max-width: 900px) {
    .cta-container { flex-direction: column; text-align: center; }
}

/* About preview */
.about-preview {
    background: var(--card);
    transition: background 0.3s;
}
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}
.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.about-text h2 span { color: var(--blue); }
.about-text p {
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 15px;
}
.about-text .highlight {
    background: rgba(3,155,229,0.1);
    border-left: 4px solid var(--blue);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
[data-theme="dark"] .about-text .highlight { background: rgba(3,155,229,0.15); }
.about-text .highlight p {
    margin: 0;
    font-style: italic;
    color: var(--text-muted);
}
.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
}

@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 25px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}
.footer-logo img {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
.footer-logo:hover img { transform: scale(1.05); }
.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--footer-text);
    font-size: 14px;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--blue); }

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact a {
    color: var(--blue);
    transition: color 0.3s;
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 25px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: var(--footer-text);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* WhatsApp button */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

@media (max-width: 600px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn svg { width: 28px; height: 28px; }
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}
.alert-success {
    background: rgba(39,174,96,0.1);
    border: 1px solid rgba(39,174,96,0.3);
    color: #27ae60;
}
.alert-error {
    background: rgba(211,47,47,0.1);
    border: 1px solid rgba(211,47,47,0.3);
    color: var(--red);
}
