/* ==========================================
   GlowLash - Main Stylesheet
   Modern, Responsive, GSAP-ready
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* === Variables === */
:root {
    --primary: #d895e5;
    --primary-dark: #a65cb4;
    --primary-light: #e6c6ec;
    --accent: #3a162a;
    --text: #333;
    --text-light: #666;
    --bg: #faf8fb;
    --white: #fff;
    --gray-100: #f5f3f7;
    --gray-200: #ededed;
    --h1-color: #3a162a;
    --h2-color: #3a162a;
    --p-color: #666;
    --btn-bg: #d895e5;
    --btn-text: #fff;
    --btn-hover: #a65cb4;
    --grad-services-start: #faf8fb;
    --grad-services-end: #e6c6ec;
    --grad-contact-start: #e6c6ec;
    --grad-contact-end: #faf8fb;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(166, 92, 180, 0.12);
    --shadow-lg: 0 16px 48px rgba(166, 92, 180, 0.18);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); overflow-x: hidden; line-height: 1.6; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Utility === */
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--h2-color, var(--accent));
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header.scrolled {
    background: rgba(216, 149, 229, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(166, 92, 180, 0.2);
}
.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header__logo-img {
    width: 110px;
    transition: transform var(--transition);
}
.header.scrolled .header__logo-img { width: 90px; }
.header__nav-list {
    display: flex;
    gap: 2rem;
}
.header__nav-link {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
    white-space: nowrap;
}
.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width var(--transition);
}
.header__nav-link:hover::after,
.header__nav-link.active::after { width: 100%; }
.header__cta {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    border: 2px solid var(--white);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}
.header__cta:hover {
    background: var(--white);
    color: var(--primary-dark);
}
.header__mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.header__mobile-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(58, 22, 42, 0.97);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu__list { text-align: center; padding: 0 1rem; }
.mobile-menu__link {
    display: block;
    font-size: 1.4rem;
    color: var(--white);
    padding: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--primary); }
.mobile-menu__cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--btn-bg, var(--primary));
    border-radius: 50px;
    font-weight: 600;
}
.mobile-menu__darkmode {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}
.mobile-menu__darkmode:hover { background: rgba(255,255,255,0.2); }

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
}
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(58,22,42,0.3) 0%, rgba(58,22,42,0.5) 100%);
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 100%;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero__title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}
.hero__subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}
.hero__btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--btn-bg, var(--primary));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.hero__btn:hover {
    background: var(--btn-hover, var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(166, 92, 180, 0.4);
}
.hero__scroll-indicator {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
}
.hero__scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ==========================================
   WAVES DIVIDER
   ========================================== */
.waves-divider {
    position: relative;
    height: 120px;
    margin-top: -100px;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}
.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    background-image: url('../images/onda.png');
    background-size: 1000px 100px;
    background-repeat: repeat-x;
    animation: waveFloat 6s ease-in-out infinite alternate;
}
#wave1 { z-index: 3; opacity: 1; }
#wave2 { z-index: 2; opacity: 0.5; animation-delay: -2s; }
#wave3 { z-index: 1; opacity: 0.3; animation-delay: -4s; }
@keyframes waveFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(15px); }
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
    padding: 6rem 1.5rem;
    background: var(--bg);
    overflow: hidden;
}
.about__container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about__text { opacity: 0; transform: translateX(-60px); }
.about__description {
    font-size: 1.05rem;
    color: var(--p-color, var(--text-light));
    margin-bottom: 1rem;
    line-height: 1.8;
}
.about__btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    background: var(--btn-bg, var(--primary));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition);
}
.about__btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.about__image-wrap {
    position: relative;
    opacity: 0;
    transform: translateX(60px);
}
.about__image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about__image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ==========================================
   SERVICES
   ========================================== */
.services {
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, var(--grad-services-start, var(--bg)) 0%, var(--grad-services-end, var(--primary-light)) 100%);
    overflow: hidden;
}
.services__container {
    max-width: 1100px;
    margin: 0 auto;
}
.services__header { text-align: center; margin-bottom: 3rem; }
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(60px);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.service-card__image-wrap { overflow: hidden; }
.service-card__image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .service-card__image { transform: scale(1.08); }
.service-card__content { padding: 1.5rem; }
.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.service-card__desc {
    font-size: 0.9rem;
    color: var(--p-color, var(--text-light));
    margin-bottom: 1rem;
}
.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.service-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.service-card__btn {
    padding: 0.5rem 1.2rem;
    background: var(--btn-bg, var(--primary));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
}
.service-card__btn:hover {
    background: var(--primary-dark);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
    padding: 6rem 1.5rem;
    background: var(--primary-light);
    overflow: hidden;
}
.testimonials__container {
    max-width: 1100px;
    margin: 0 auto;
}
.testimonials__header { text-align: center; margin-bottom: 3rem; }
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(40px);
}
.testimonial-card__text {
    font-size: 1rem;
    color: var(--p-color, var(--text-light));
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-card__author {
    font-weight: 600;
    color: var(--accent);
}
.testimonial-card__stars {
    color: #f5a623;
    margin-bottom: 0.5rem;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, var(--grad-contact-start, var(--primary-light)) 0%, var(--grad-contact-end, var(--bg)) 100%);
    overflow: hidden;
}
.contact__container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact__info { opacity: 0; transform: translateX(-40px); }
.contact__text {
    color: var(--p-color, var(--text-light));
    margin-bottom: 2rem;
    line-height: 1.7;
}
.contact__channels { display: flex; flex-direction: column; gap: 1.2rem; }
.contact__channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text);
    transition: color var(--transition);
    word-break: break-word;
}
.contact__channel:hover { color: var(--primary-dark); }
.contact__channel-icon { width: 32px; height: 32px; flex-shrink: 0; }
.contact__form-wrap {
    opacity: 0;
    transform: translateX(40px);
}
.contact__form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.contact__form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
    background: var(--gray-100);
}
.form-input:focus { border-color: var(--primary); background: var(--white); }
.form-textarea { resize: vertical; min-height: 120px; }
.contact__form-btn {
    width: 100%;
    padding: 1rem;
    background: var(--btn-bg, var(--primary));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.contact__form-btn:hover { background: var(--primary-dark); }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--grad-contact-end);
    padding: 2rem 1.5rem;
}
.footer__container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__text {
    color: var(--text);
    font-size: 0.85rem;
}
.footer__dev {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.8rem;
}
.footer__dev-logo { width: 120px; opacity: 0.7; }

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ==========================================
   DARK MODE TOGGLE
   ========================================== */
.header__darkmode {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--white);
    flex-shrink: 0;
}
.header__darkmode:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
}
.dm-icon { display: none; }
html:not([data-theme="dark"]) .dm-moon { display: block; }
html[data-theme="dark"] .dm-sun { display: block; }

/* ==========================================
   DARK MODE THEME
   ========================================== */
html[data-theme="dark"] {
    --bg: #1a1020;
    --white: #1e1428;
    --gray-100: #241830;
    --gray-200: #2e1f3a;
    --text: #e8dff0;
    --text-light: #b8a8c8;
    --accent: #f0e4f8;
    --h1-color: #f0e4f8;
    --h2-color: #f0e4f8;
    --p-color: #b8a8c8;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .header.scrolled { background: rgba(30, 20, 40, 0.95); border-bottom-color: rgba(255,255,255,0.06); }
html[data-theme="dark"] .header__nav-link { color: #fff; }
html[data-theme="dark"] .header__nav-link::after { background: #fff; }
html[data-theme="dark"] .header__cta { color: #fff; border-color: rgba(255,255,255,0.5); }
html[data-theme="dark"] .header__cta:hover { background: rgba(255,255,255,0.15); }
html[data-theme="dark"] .header__darkmode { border-color: rgba(255,255,255,0.4); color: #fff; }
html[data-theme="dark"] .header__mobile-btn span { background: #fff; }
html[data-theme="dark"] .hero__overlay { background: linear-gradient(180deg, rgba(26,16,32,0.5) 0%, rgba(26,16,32,0.8) 100%); }
html[data-theme="dark"] .section-title { color: var(--h2-color, var(--accent)); }
html[data-theme="dark"] .section-tag { color: var(--primary); }
html[data-theme="dark"] .about { background: var(--bg); }
html[data-theme="dark"] .about__image { box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
html[data-theme="dark"] .about__image-decoration { border-color: var(--primary-dark); }
html[data-theme="dark"] .services { background: linear-gradient(180deg, var(--bg) 0%, #2a1838 100%); }
html[data-theme="dark"] .service-card { background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
html[data-theme="dark"] .service-card__title { color: var(--accent); }
html[data-theme="dark"] .service-card__desc { color: var(--p-color, var(--text-light)); }
html[data-theme="dark"] .testimonials { background: #2a1838; }
html[data-theme="dark"] .testimonial-card { background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
html[data-theme="dark"] .testimonial-card__text { color: var(--p-color, var(--text-light)); }
html[data-theme="dark"] .testimonial-card__author { color: var(--accent); }
html[data-theme="dark"] .contact { background: linear-gradient(180deg, #2a1838 0%, var(--bg) 100%); }
html[data-theme="dark"] .contact__form { background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
html[data-theme="dark"] .contact__form-title { color: var(--accent); }
html[data-theme="dark"] .form-input { background: var(--gray-100); border-color: var(--gray-200); color: var(--text); }
html[data-theme="dark"] .form-input::placeholder { color: var(--p-color, var(--text-light)); }
html[data-theme="dark"] .form-input:focus { background: var(--white); }
html[data-theme="dark"] .footer { background: #0e0814; }
html[data-theme="dark"] .footer__text,
html[data-theme="dark"] .footer__dev { color: rgba(255,255,255,0.5); }
html[data-theme="dark"] .mobile-menu { background: rgba(26, 16, 32, 0.98); }

/* ==========================================
   RESPONSIVE — TABLET (max 992px)
   ========================================== */
@media (max-width: 992px) {
    .header__nav,
    .header__cta { display: none; }
    .header__mobile-btn { display: flex; }
    .header__darkmode { border-color: rgba(255,255,255,0.3); }

    .about__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about__image-wrap { order: -1; max-width: 500px; margin: 0 auto; }
    .about__image-decoration { right: -15px; top: -15px; }
    .about__text { text-align: center; }
    .about__btn { display: inline-block; }

    .services__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .contact__container { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================
   RESPONSIVE — MOBILE (max 768px)
   ========================================== */
@media (max-width: 768px) {
    .hero__scroll-indicator { bottom: 3rem; }

    .about,
    .services,
    .testimonials,
    .contact { padding: 4rem 1rem; }

    .about__image-decoration { display: none; }

    .services__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .service-card__image { height: 200px; }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card { padding: 1.5rem; }

    .contact__form { padding: 1.5rem; }

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

    .waves-divider { height: 80px; margin-top: -80px; }
}

/* ==========================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ========================================== */
@media (max-width: 480px) {
    .hero { min-height: 100svh; }
    .header__logo-img { width: 70px; }
    .header.scrolled .header__logo-img { width: 55px; }

    .hero__title { font-size: clamp(2rem, 12vw, 3.5rem); }
    .hero__btn { padding: 0.85rem 2rem; font-size: 0.9rem; }

    .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

    .about__container { gap: 2rem; }
    .about__description { font-size: 0.95rem; }

    .service-card__content { padding: 1.2rem; }
    .service-card__title { font-size: 1.15rem; }

    .contact__channel { font-size: 0.85rem; gap: 0.75rem; }
    .contact__channel-icon { width: 28px; height: 28px; }

    .mobile-menu__link { font-size: 1.2rem; padding: 0.7rem; }
}

/* ==========================================
   RESPONSIVE — TINY (max 360px)
   ========================================== */
@media (max-width: 360px) {
    .header__container { padding: 0 0.75rem; }
    .header__logo-img { width: 55px; }
    .header__darkmode { width: 32px; height: 32px; }
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 0.9rem; }
    .hero__btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
    .about, .services, .testimonials, .contact { padding: 3rem 0.75rem; }
    .services__grid { max-width: 100%; }
}
