/* ========================================
   WaTrack - Permisos de Ubicación
   Estilos específicos para permisos.html
   ======================================== */

/* Page-specific body styles */
.permisos-page {
    background: var(--gray-bg);
}

.permisos-main {
    min-height: calc(100vh - 200px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.permisos-hero {
    background: linear-gradient(145deg, rgba(11, 37, 69, 0.92) 0%, rgba(22, 55, 97, 0.88) 60%, rgba(26, 74, 110, 0.85) 100%);
    padding: 60px 5vw 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.permisos-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 201, 168, 0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.permisos-hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    bottom: 30px;
    left: 10%;
    pointer-events: none;
}

.permisos-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.permisos-hero .badge {
    margin-bottom: 1.5rem;
}

.permisos-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.permisos-hero .hero-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   TABS SECTION
   ======================================== */
.permisos-tabs-section {
    padding: 60px 5vw;
    background: var(--white);
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 0.75rem;
    background: rgba(11, 37, 69, 0.05);
    padding: 0.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(11, 37, 69, 0.08);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--navy-2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn i {
    font-size: 1.3rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--navy);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--teal) 0%, #63dfcd 100%);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(20, 201, 168, 0.25);
}

.tab-btn.active i {
    color: var(--navy);
}

/* Tabs Panels */
.tabs-panels {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Header */
.panel-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.panel-header h2 i {
    color: var(--teal);
}

/* Nota Importante */
.nota-importante {
    background: linear-gradient(135deg, rgba(20, 201, 168, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(20, 201, 168, 0.2);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.nota-importante i {
    font-size: 1.5rem;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.nota-importante p {
    color: var(--navy-2);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.nota-importante strong {
    color: var(--navy);
    font-weight: 700;
}

/* ========================================
   STEPS CONTAINER
   ======================================== */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-2);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--teal), var(--teal-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(20, 201, 168, 0.12);
    transform: translateX(4px);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(20, 201, 168, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-content strong {
    color: var(--navy);
    font-weight: 600;
}

/* Step Visual Images */
.step-img-visual {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    background: var(--gray-bg);
    border: 1px solid var(--gray-2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step-card:hover .step-img-visual {
    transform: scale(1.02);
}

.cta-success-img {
    width: 100%;
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(20, 201, 168, 0.2));
}

/* Step Image Placeholder */
.step-image {
    margin-top: 1rem;
}

.placeholder-img {
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.05) 0%, rgba(22, 55, 97, 0.08) 100%);
    border: 2px dashed rgba(11, 37, 69, 0.15);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.placeholder-img:hover {
    border-color: var(--teal);
    background: linear-gradient(135deg, rgba(20, 201, 168, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.placeholder-img i {
    font-size: 3.5rem;
    color: var(--teal);
    opacity: 0.7;
}

.placeholder-img span {
    color: var(--gray-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.placeholder-img.ios-style {
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.03) 0%, rgba(22, 55, 97, 0.05) 100%);
    border-color: rgba(11, 37, 69, 0.1);
}

/* Opciones de Ubicación */
.opciones-ubicacion {
    list-style: none;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.opciones-ubicacion li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(20, 201, 168, 0.05);
    border: 1px solid rgba(20, 201, 168, 0.15);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    transition: all 0.2s ease;
}

.opciones-ubicacion li:hover {
    background: rgba(20, 201, 168, 0.1);
    border-color: var(--teal);
    transform: translateX(4px);
}

.opciones-ubicacion li i {
    font-size: 1.3rem;
    color: var(--teal);
    margin-top: 2px;
    flex-shrink: 0;
}

.opciones-ubicacion li div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.opciones-ubicacion li strong {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.opciones-ubicacion li span {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* ========================================
   CONSIDERACIÓN ANDROID
   ======================================== */
.consideracion-android {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(248, 113, 113, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.consideracion-android i {
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.consideracion-android h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.consideracion-android p {
    color: var(--navy-2);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.consideracion-android strong {
    color: var(--navy);
    font-weight: 600;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.permisos-faq {
    padding: 60px 5vw;
    background: var(--gray-bg);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-container h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.faq-card {
    background: var(--white);
    border: 1px solid var(--gray-2);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(20, 201, 168, 0.12);
    transform: translateY(-4px);
}

.faq-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(20, 201, 168, 0.15) 0%, rgba(34, 197, 94, 0.15) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.faq-icon i {
    font-size: 1.4rem;
    color: var(--teal);
}

.faq-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.faq-card p {
    color: var(--gray-text);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

.faq-card a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.faq-card a:hover {
    color: var(--teal-2);
    text-decoration: underline;
}

/* ========================================
   CTA SECTION
   ======================================== */
.permisos-cta {
    padding: 60px 5vw;
    background: var(--white);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(135deg, rgba(20, 201, 168, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 2px solid rgba(20, 201, 168, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 201, 168, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-large i {
    font-size: 1.2rem;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(20, 201, 168, 0.35);
}

.cta-visual {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cta-phone {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border-radius: 28px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(11, 37, 69, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 201, 168, 0.15) 0%, rgba(34, 197, 94, 0.15) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.75rem;
}

.phone-screen i {
    font-size: 2.5rem;
    color: var(--teal);
}

.phone-screen span {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .permisos-hero {
        padding: 50px 5vw 60px;
    }

    .permisos-tabs-section {
        padding: 40px 5vw;
    }

    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .step-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .step-number {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.1rem;
    }

    .placeholder-img {
        padding: 1.5rem 1rem;
    }

    .placeholder-img i {
        font-size: 2.5rem;
    }

    .nota-importante {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .consideracion-android {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-container {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .cta-content {
        width: 100%;
    }

    .cta-content p {
        max-width: 100%;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .cta-phone {
        width: 120px;
        height: 120px;
    }

    .phone-screen i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .permisos-hero h1 {
        font-size: 1.6rem;
    }

    .permisos-hero .hero-desc {
        font-size: 0.95rem;
    }

    .opciones-ubicacion li {
        flex-direction: column;
        gap: 0.5rem;
    }

    .opciones-ubicacion li i {
        margin-top: 0;
    }

    .step-content h3 {
        font-size: 1.05rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .tabs-nav,
    .cursor-dot,
    .cursor-outline,
    .scroll-to-top,
    nav,
    footer {
        display: none !important;
    }

    .tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .step-card {
        page-break-inside: avoid;
    }
}
