/* Premium Landing Page Styles extracted from es/convertir-imagen.html */

/* Hero Enhancement */
.tool-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.tool-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.tool-hero-content {
    position: relative;
    z-index: 1;
}

.tool-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.tool-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Tool-First Layout */
.tool-first {
    padding: 2rem 0 3rem;
    background: var(--color-bg-primary);
}

.tool-title-inline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.tool-subtitle-inline {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Compact Hero for Trust Badges */
.tool-hero-compact {
    padding: 2.5rem 0;
    background: transparent;
}

.tool-hero-compact .tool-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.tool-benefits-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-benefits-inline .benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.tool-benefits-inline .benefit-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.tool-benefits-inline .benefit-icon {
    font-size: 1.1rem;
}

.why-section {
    padding: 5rem 0;
    background: var(--color-bg-primary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.why-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.why-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Premium How-To Timeline Section */
.howto-premium {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 50%, var(--color-bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.howto-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.howto-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 1.25rem;
}

.howto-timeline {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 340px;
}

.timeline-step .step-card {
    flex: 1;
}

.step-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.step-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 24px;
    transform: rotate(45deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.timeline-step:hover .step-icon-bg {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
}

.step-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
}

.step-icon svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.step-number-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border: 3px solid var(--color-bg-secondary);
}

.step-connector {
    position: absolute;
    top: 45px;
    left: calc(50% + 55px);
    width: calc(100% - 10px);
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    z-index: 1;
    opacity: 0.3;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #a855f7;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.timeline-step:last-child .step-connector {
    display: none;
}

.step-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-step:hover .step-card {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.step-card .step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.step-card .step-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-formats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.format-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-preview {
    margin-top: 0.5rem;
}

.quality-bar {
    height: 10px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    position: relative;
    overflow: visible;
}

.quality-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 50%, #6366f1 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.quality-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
}

.quality-marker span {
    display: block;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.download-preview {
    margin-top: 0.5rem;
}

.download-btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.timeline-step:hover .download-btn-preview {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive Timeline */
@media (max-width: 900px) {
    .howto-timeline {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    .timeline-step {
        max-width: 400px;
    }

    .step-connector {
        display: none;
    }
}

/* Educational Content Section */
.edu-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

.edu-content {
    max-width: 900px;
    margin: 0 auto;
}

.edu-block {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.edu-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edu-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.edu-block p:last-child {
    margin-bottom: 0;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 4px solid #8b5cf6;
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Format Comparison Table */
.format-table-section {
    padding: 5rem 0;
    background: var(--color-bg-primary);
}

.format-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--color-bg-card);
}

.format-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.format-table th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.format-table th:first-child {
    border-radius: 20px 0 0 0;
}

.format-table th:last-child {
    border-radius: 0 20px 0 0;
}

.format-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.format-table tr:last-child td {
    border-bottom: none;
}

.format-table tr:hover td {
    background: var(--glass-bg);
}

.format-table .format-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.format-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-lossy {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-lossless {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-both {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.check-yes {
    color: #10b981;
    font-weight: 600;
}

.check-no {
    color: #ef4444;
}

.reduction-bar {
    height: 8px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.reduction-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--color-bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--glass-bg);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: #8b5cf6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Related Tools Section */
.related-section {
    padding: 5rem 0;
    background: var(--color-bg-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.related-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #8b5cf6;
}

.related-icon {
    font-size: 2.5rem;
}

.related-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.related-info p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Section Titles */
.section-title-lg {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Modal integration */
.modal-overlay,
#toolModal.hidden {
    display: none;
}

#toolModal {
    position: static;
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

#modalTitle,
#closeModal,
.modal-header {
    display: none;
}

#modalBody {
    background: transparent;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-hero {
        padding: 3rem 0 2.5rem;
    }

    .edu-block {
        padding: 1.5rem;
    }

    .why-card {
        padding: 1.5rem;
    }
}
