/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1a252f;
    --accent-color: #3498db;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --container-width: 1140px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 100px 0;
    scroll-margin-top: 80px;
}

.section--light {
    background-color: var(--bg-light);
}

.section--page-header {
    background-color: var(--primary-color);
    padding: 110px 0 60px;
    color: var(--white);
    text-align: center;
}

.section--page-header .section__title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section--page-header .section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section__subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

.btn-store {
    transition: var(--transition);
}

.btn-store:hover {
    transform: scale(1.05);
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    transition: var(--transition);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover::after {
    width: 100%;
}

.logo span {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    font-style: italic;
    transform: skewX(-10deg);
    display: inline-block;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    color: var(--text-main);
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__link.active {
    color: var(--accent-color);
    font-weight: 700;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav__toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    padding-top: 130px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(52, 152, 219, 0.08), transparent),
                radial-gradient(circle at bottom left, rgba(44, 62, 80, 0.03), transparent);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: -1;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.txt-rotate {
    color: var(--accent-color);
    position: relative;
    border-right: 3px solid var(--accent-color);
    padding-right: 5px;
    animation: blink 0.7s infinite;
    white-space: nowrap;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

.hero__description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero__btns {
    display: flex;
    gap: 1rem;
}

.hero__mockups {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    margin: 0 auto;
}

.phone-mockup {
    position: absolute;
    width: 280px;
    border: 10px solid #1a252f;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.phone-mockup--ios {
    top: 0;
    right: 0;
    z-index: 2;
}

.phone-mockup--android {
    bottom: 0;
    left: 0;
    z-index: 1;
    transform: scale(0.9);
    opacity: 0.8;
}

.hero__mockups:hover .phone-mockup--ios {
    transform: translateY(-20px) translateX(20px) rotate(2deg);
    z-index: 3;
}

.hero__mockups:hover .phone-mockup--android {
    transform: translateY(20px) translateX(-20px) rotate(-2deg) scale(0.95);
    opacity: 1;
}

@media (max-width: 992px) {
    .hero__mockups {
        height: 500px;
        max-width: 400px;
    }
    .phone-mockup {
        width: 220px;
    }
}

@media (max-width: 576px) {
    .hero__mockups {
        height: 400px;
        max-width: 300px;
    }
    .phone-mockup {
        width: 180px;
    }
}

/* =========================================
   BENEFITS
   ========================================= */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.benefit-card__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-card__title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* =========================================
   HOW TO USE
   ========================================= */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.step-card {
    position: relative;
    padding: 2rem;
}

.step-card:hover .step-card__number {
    color: rgba(52, 152, 219, 0.15);
    transform: scale(1.2) translateY(-10px);
    transition: var(--transition);
}

.step-card__number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(44, 62, 80, 0.05);
    position: absolute;
    top: -10px;
    left: 10px;
    transition: var(--transition);
}

.step-card__title {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery__item {
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.gallery__item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery__img-box {
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.gallery__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery__item:hover .gallery__img-box img {
    transform: scale(1.1);
}

.gallery__content {
    padding: 1.2rem 1rem;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02));
}

.gallery__item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.gallery__item-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* =========================================
   FAQ
   ========================================= */
.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq__question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq__item.active .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq__answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.faq__item.active .faq__answer {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

/* =========================================
   LEGAL
   ========================================= */
.legal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.legal__content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.footer__logo {
    margin-bottom: 2rem;
}

.footer__logo .logo {
    color: var(--white);
}

.footer__links a {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer__links a:hover {
    color: var(--white);
}

.footer__copy {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   ANIMACIONES (SCROLL REVEAL)
   ========================================= */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 992px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__btns {
        justify-content: center;
    }
    .hero__title {
        font-size: 2.8rem;
    }
    .legal__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        height: 55px;
    }
    .logo {
        font-size: 1.4rem;
    }
    .nav__list {
        top: 55px;
        height: calc(100vh - 55px);
    }
    .hero {
        padding-top: 100px;
    }
    .hero__title {
        font-size: 2.2rem;
        padding: 0 10px;
        margin-top: 10px;
    }
    .nav__list {
        position: fixed;
        top: 55px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 55px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        transition: var(--transition);
        z-index: 999;
    }
    .nav__list.active {
        left: 0;
    }
    .nav__toggle {
        display: flex;
        gap: 5px;
    }
    .nav__toggle span {
        width: 25px;
        height: 2px;
    }
    .nav__btn {
        display: none;
    }
    .section {
        padding: 60px 0;
        scroll-margin-top: 65px;
    }
    .section--page-header {
        padding: 90px 0 40px;
    }
    .section__title {
        font-size: 2rem;
    }
}
