/* ==================== CSS RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors */
    --primary-color: #8A2BE2;
    --secondary-color: #0A0F2C;
    --accent-color: #FF69B4;
    --background-color: #F5F7FB;
    --white-color: #FFFFFF;
    --text-color: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E1E8ED;
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 2rem;
    --h4-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --header-height: 4.5rem;
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 12px;
    --border-radius-small: 8px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ==================== BASE ==================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--normal-font-size);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

h1 { font-size: var(--h1-font-size); }
h2 { font-size: var(--h2-font-size); }
h3 { font-size: var(--h3-font-size); }
h4 { font-size: var(--h4-font-size); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding);
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    font-size: var(--normal-font-size);
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    box-shadow: var(--shadow-light);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Card Component */
.card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white-color);
    z-index: 1000;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.header.scroll-header {
    box-shadow: var(--shadow-light);
    padding: 0.5rem 0;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
}

.nav__logo-img {
    width: 40px;
    height: 40px;
}

.nav__logo-text {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white-color);
    padding: 2rem;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-heavy);
}

.nav__menu.show-menu {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition-fast);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle {
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
}

.nav__cta {
    display: none;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white-color);
    min-width: 250px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.dropdown__link:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.05), transparent);
    animation: heroAnimation 20s linear infinite;
}

@keyframes heroAnimation {
    0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(360deg); }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    text-align: left;
}

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__img {
    max-width: 500px;
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(138, 43, 226, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--white-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: var(--transition-medium);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white-color);
    position: relative;
    z-index: 1;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card__description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card__price {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    background: var(--background-color);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    background: var(--white-color);
}

.testimonials__container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    margin: 0 1rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--primary-color);
    font-family: serif;
}

.testimonial__text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.testimonial__info span {
    color: var(--text-light);
    font-size: var(--small-font-size);
}

/* ==================== CTA SECTION ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    text-align: center;
}

.cta__title {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.cta__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta__button {
    background: var(--white-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-fast);
}

.cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section {
    margin-bottom: 1rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer__logo-img {
    width: 40px;
    height: 40px;
}

.footer__logo-text {
    font-size: 1.25rem;
    color: var(--white-color);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer__title {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.footer__contact-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer__contact-link:hover {
    color: var(--accent-color);
}

.footer__newsletter {
    margin-top: 1.5rem;
}

.footer__newsletter-title {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer__newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer__newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    outline: none;
}

.footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer__newsletter-btn {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer__newsletter-btn:hover {
    background: var(--accent-color);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__legal-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--accent-color);
}

.footer__legal-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== FLOATING ELEMENTS ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Large devices (laptops/desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .nav__list {
        flex-direction: row;
        gap: 2rem;
        margin-top: 0;
    }
    
    .nav__close {
        display: none;
    }
    
    .nav__toggle {
        display: none;
    }
    
    .nav__cta {
        display: inline-flex;
    }
}

/* Medium devices (tablets, 768px and up) */
@media screen and (max-width: 1199px) {
    :root {
        --h1-font-size: 2.5rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__content {
        text-align: center;
    }
    
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small devices (phones, 576px and up) */
@media screen and (max-width: 767px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --section-padding: 3rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: var(--header-height);
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 5rem;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media screen and (max-width: 575px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-medium);
}

.slide-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-medium);
}

.slide-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    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; }
}