/* Variables de colores */
:root {
    --primary-color: #F06292;
    --primary-light: #ffbdd4;
    --primary-dark: #d13b6e;
    --secondary-color: #8C9EFF;
    --detail-color: #F5F5FF;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-start: #F06292;
    --gradient-end: #FF94C2;
}

/* Safari iOS Fix */
@supports (-webkit-touch-callout: none) {
    /* Fix para altura 100vh en Safari iOS */
    .hero {
        min-height: -webkit-fill-available;
    }
    
    /* Fix para scroll suave en Safari */
    html, body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix para posicionamiento fixed */
    .main-nav.floating {
        position: -webkit-sticky;
        /* El resto de propiedades se mantienen */
    }
    
    /* Fix para animaciones */
    @-webkit-keyframes fadeInUp {
        from {
            opacity: 0;
            -webkit-transform: translateY(20px);
        }
        to {
            opacity: 1;
            -webkit-transform: translateY(0);
        }
    }
    
    @-webkit-keyframes floatPhone {
        0% {
            -webkit-transform: translateY(0);
        }
        50% {
            -webkit-transform: translateY(-15px);
        }
        100% {
            -webkit-transform: translateY(0);
        }
    }
    
    @-webkit-keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* Fix para flex en Safari */
    .hero, .benefit-items, .cta-buttons, .footer-links, .tab-nav {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }
    
    /* Fix para textos con gradiente */
    .text-gradient {
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* Fix general para elementos flex en móvil */
@media (max-width: 600px) {
    .hero {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
    
    .cta-buttons {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
    
    .app-stores {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
    
    .footer-links {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
    
    /* Asegurar que los botones tengan el ancho correcto */
    .btn {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Mejora para elementos flotantes en móvil */
    .float-element {
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-animation: none !important;
        animation: none !important;
    }
}

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-color);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
    position: relative;
}

.text-gradient {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navegación */
.main-nav {
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.main-nav.floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 0;
    background-color: var(--background-color);
    box-shadow: 0 2px 15px var(--shadow);
    animation: slideDown 0.3s ease-out;
}

.main-nav nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.logo img {
    height: 50px;
}

.menu {
    display: flex;
    list-style-type: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a:hover::after {
    width: 100%;
}

.download-nav {
    margin-left: 20px;
}

.btn-sm {
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
}

/* Hero Section */
.hero-wrapper {
    background-color: #FFF1F6;
    padding-top: 40px;
    position: relative;
    overflow: hidden;
}

.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 60px 0 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.4;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.3;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 60px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 90%;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.stars {
    color: #FFC107;
    margin-right: 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.phone-mockup {
    position: relative;
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.mockup-image {
    max-width: 300px;
    height: auto;
    border-radius: 55px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 12px solid #1c1c1e;
    position: relative;
}

/* Botón de silencio */
.mockup-image::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 100px;
    width: 3px;
    height: 20px;
    background-color: #1c1c1e;
    border-radius: 2px;
    box-shadow: -1px 0 2px rgba(0,0,0,0.3);
}

/* Botones de volumen */
.mockup-image::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 140px;
    width: 3px;
    height: 50px;
    background-color: #1c1c1e;
    border-radius: 2px;
    box-shadow: -1px 0 2px rgba(0,0,0,0.3);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    padding: 10px 20px;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.float-1 {
    top: 20%;
    right: -20px;
    animation: float1 8s ease-in-out infinite;
}

.float-2 {
    bottom: 30%;
    left: -20px;
    animation: float2 7s ease-in-out infinite;
}

.float-3 {
    bottom: 10%;
    right: 20%;
    animation: float3 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0) rotate(3deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(240, 98, 146, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(240, 98, 146, 0.6);
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--detail-color);
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(231, 231, 255, 0.8);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 231, 255, 1);
}

/* Benefits Section */
.benefits {
    padding: 60px 0;
}

.benefit-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    font-size: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Features Tabs */
.features {
    background-color: var(--detail-color);
    padding: 100px 0;
}

.feature-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px;
    background-color: var(--primary-light);
    background-image: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
}

.feature-image img {
    max-width: 250px;
    border-radius: 30px;
    border: 8px solid #1c1c1e;
}

.feature-text {
    flex: 1;
    padding: 40px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Testimonials */
.testimonials {
    background-color: white;
    padding: 100px 0;
}

.testimonial-slider {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #FFC107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    min-height: 100px;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-cta {
    text-align: center;
    margin-top: 50px;
}

.testimonial-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* FAQ Section */
.faq {
    background-color: var(--detail-color);
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

/* Download Section */
.download {
    background-color: white;
    padding: 100px 0;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFF1F6 100%);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.download-text {
    flex: 1;
}

.download-text h2 {
    text-align: left;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.app-stores {
    display: flex;
    gap: 20px;
}

.store-button img {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-button:hover img {
    transform: scale(1.05);
}

.download-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.download-mockup {
    max-width: 300px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 10px solid #1c1c1e;
    transform: rotate(-5deg);
}

/* About Section */
.about {
    background-color: var(--detail-color);
    text-align: center;
    padding: 80px 0;
}

.about p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-logo {
    text-align: left;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 5px 10px var(--shadow);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
    display: block;
}

.mobile-menu ul {
    list-style-type: none;
    padding: 0;
}

.mobile-menu li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu a.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    box-shadow: 0 -2px 10px var(--shadow);
    padding: 15px 20px;
    z-index: 1001;
    display: none;
}

.cookie-banner.show {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn-settings {
    background-color: var(--detail-color);
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 40px 0 60px;
    }

    .feature-content {
        flex-direction: column;
    }

    .feature-image, .feature-text {
        width: 100%;
    }

    .download-content {
        padding: 40px 30px;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }

    .rating {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }

    .float-element {
        display: none;
    }

    .download-content {
        flex-direction: column;
        text-align: center;
    }

    .download-text h2 {
        text-align: center;
    }

    .app-stores {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 1.8rem;
    }

    .benefit-items {
        flex-direction: column;
    }

    .benefit-item {
        width: 100%;
    }

    .tab-nav {
        flex-direction: column;
        width: 90%;
        margin: 0 auto 30px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }

    .download-nav, .menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
    
    .app-stores {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-links a {
        margin: 0;
        padding: 8px 0;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-links a:last-child {
        border-bottom: none;
    }
    
    .footer-logo {
        text-align: center;
    }

    .cookie-banner.show {
        flex-direction: column;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}