:root {
    /* Dark Theme (Default) */
    --color-bg: #0a0c10;
    --color-surface: rgba(18, 22, 30, 0.7);
    --color-primary-blue: #0056b3;
    --color-primary-blue-glow: rgba(0, 86, 179, 0.5);
    --color-accent-red: #d32f2f;
    --color-accent-red-glow: rgba(211, 47, 47, 0.5);
    --color-text-main: #f8f9fa;
    --color-text-muted: #adb5bd;
    --color-whatsapp: #25D366;
    --color-border: rgba(255, 255, 255, 0.05);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    --color-bg: #f8f9fa;
    --color-surface: rgba(255, 255, 255, 0.8);
    --color-primary-blue: #004494;
    --color-primary-blue-glow: rgba(0, 86, 179, 0.3);
    --color-accent-red: #c62828;
    --color-accent-red-glow: rgba(211, 47, 47, 0.3);
    --color-text-main: #212529;
    --color-text-muted: #495057;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.red-orb {
    width: 400px;
    height: 400px;
    background: var(--color-accent-red);
    top: -100px;
    right: -100px;
}

.blue-orb {
    width: 500px;
    height: 500px;
    background: var(--color-primary-blue);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-panel {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-blue), #003d82);
    color: white;
    box-shadow: 0 4px 15px var(--color-primary-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--color-primary-blue-glow);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-accent-red), #9a0007);
    color: white;
    box-shadow: 0 4px 15px var(--color-accent-red-glow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--color-accent-red-glow);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.toggle-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn.active i {
    transform: rotate(180deg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-btn:hover {
    background: var(--color-border-hover);
    transform: rotate(15deg);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

.logo .max {
    color: var(--color-primary-blue);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.logo .tenur {
    color: var(--color-accent-red);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.logo-sub {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-text-main);
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary-blue);
}

.contact-top a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-top a:hover {
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--color-primary-blue), var(--color-accent-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.tag:hover {
    background: var(--color-border-hover);
    color: var(--color-text-main);
}

/* Features/Especialidades */
.features-section {
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-blue-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-accent-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Services */
.services {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-border-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.blue-icon {
    background: rgba(0, 86, 179, 0.1);
    color: var(--color-primary-blue);
}

.red-icon {
    background: rgba(211, 47, 47, 0.1);
    color: var(--color-accent-red);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    flex-grow: 1;
}

/* Dropdown Options */
.options-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.options-container.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.options-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.options-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.blue-icon~.options-container .options-list i {
    color: var(--color-primary-blue);
}

.red-icon~.options-container .options-list i {
    color: var(--color-accent-red);
}


/* Footer */
.footer {
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--color-primary-blue), var(--color-accent-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--color-primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* simple mobile fallback */
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-top {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Qualities Section */
.qualities-section {
    margin-top: 2rem;
    text-align: center;
}

.qualities-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.qualities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.6rem;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.12), rgba(211, 47, 47, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    transition: var(--transition);
}

.quality-badge i {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-accent-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem;
}

.quality-badge:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.2), rgba(211, 47, 47, 0.2));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .quality-badge {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Feature Card Logo */
.feature-logo {
    margin-bottom: 1.5rem;
}

.feature-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: var(--transition);
}

.feature-card:hover .feature-logo-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer Location / Google Maps */
.footer-location {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.footer-location h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--color-text-main);
}

.footer-location h3 i {
    color: var(--color-accent-red);
}

.footer-address {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.map-container {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-accent-red), #9a0007);
    color: white;
    box-shadow: 0 4px 15px var(--color-accent-red-glow);
    transition: var(--transition);
}

.btn-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--color-accent-red-glow);
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.section-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* Fixed WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.whatsapp-label {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    padding: 6px 14px;
    border-radius: 12px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: labelPulse 2s ease-in-out infinite;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsappPulse 1.5s ease-in-out infinite;
    position: relative;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsappRing 1.5s ease-out infinite;
    z-index: -1;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-btn:hover::before {
    animation: none;
    opacity: 0;
}

@keyframes whatsappPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

@keyframes whatsappRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes labelPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.65;
    }
}

/* Responsive adjustments for WhatsApp float */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 16px;
    }

    .whatsapp-btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .whatsapp-label {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .btn-cta {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .qualities-grid {
        gap: 0.7rem;
    }

    .quality-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .footer-location {
        padding: 1.5rem 1rem 1rem;
    }

    .map-container iframe {
        height: 220px;
    }
}