:root {
    --bg-color: #0c0c0e;
    /* Deep dark background */
    --text-color: #f7f7f2;
    /* White beige / soft cream */
    --accent-color: #d1d1cd;
    /* Soft grey/beige */
    --glass-bg: rgba(247, 247, 242, 0.04);
    --glass-border: rgba(247, 247, 242, 0.1);
    --glass-hover: rgba(247, 247, 242, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
    gap: 20px;
}

.ad-sidebar {
    position: sticky;
    top: 60px;
    width: 120px;
    height: 600px;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--glass-bg);
    border: 2px dashed rgba(247, 247, 242, 0.2);
    border-radius: 8px;
    margin-top: 60px;
}

.ad-text {
    color: rgba(247, 247, 242, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
}

#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1300px;
    padding: 40px 10px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 1;
}

header {
    text-align: center;
    animation: fadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* AQUÍ ESTÁ LA CORRECCIÓN DEL TÍTULO 👇 */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    /* Separación amplia y limpia */
    margin-bottom: 10px;
    color: var(--text-color);
    /* Color sólido uniforme */
}

h1 .accent {
    /* Quitamos el degradado para que sea idéntico al resto */
    color: var(--text-color);
    background: none;
    -webkit-text-stroke: 0;
    -webkit-background-clip: unset;
    background-clip: unset;
}

header p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.input-section {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s, filter 0.3s;
    animation: fadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.input-section:focus-within {
    border-color: rgba(247, 247, 242, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(247, 247, 242, 0.05);
}

input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1.5rem;
    padding: 16px 0;
    outline: none;
}

input::placeholder {
    color: rgba(247, 247, 242, 0.3);
}

#clearBtn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    padding: 10px;
    display: none;
}

#clearBtn:hover {
    opacity: 1;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 20px;
}

.result-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    background: var(--glass-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(247, 247, 242, 0.2);
}

.card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.6;
}

.card-text {
    font-size: 1.6rem;
    font-weight: 400;
    word-break: break-all;
    user-select: none;
    transition: color 0.2s ease;
}

.card-text.flutter {
    animation: textFlutter 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.copy-hint {
    font-size: 0.8rem;
    opacity: 0.4;
    text-align: right;
    transition: opacity 0.3s;
}

.result-card:hover .copy-hint {
    opacity: 0.9;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes textFlutter {
    0% {
        filter: blur(1.5px);
        transform: translateY(-0.5px) scale(0.99);
        opacity: 0.85;
    }

    100% {
        filter: blur(0);
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* =========================================
   NUEVAS SECCIONES (ACERCA DE, FAQ Y FOOTER)
   ========================================= */

.seo-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.seo-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
    opacity: 0.85;
    letter-spacing: -0.5px;
}

.about-text {
    column-count: 2;
    column-gap: 40px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(247, 247, 242, 0.45);
    text-align: justify;
}

.about-text p {
    margin-bottom: 15px;
    break-inside: avoid;
}

/* Acordeón FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(247, 247, 242, 0.08);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(247, 247, 242, 0.7);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    font-weight: 400;
}

.faq-question:hover {
    color: rgba(247, 247, 242, 1);
}

.faq-question .icon {
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    color: rgba(247, 247, 242, 0.5);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    opacity: 0;
}

.faq-answer p {
    font-size: 0.85rem;
    color: rgba(247, 247, 242, 0.45);
    line-height: 1.6;
    padding-bottom: 20px;
    padding-right: 30px;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

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

/* Footer Espacio Reservado */
.site-footer {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    background: rgba(247, 247, 242, 0.02);
    border: 1px dashed rgba(247, 247, 242, 0.1);
}

.site-footer p {
    font-size: 0.75rem;
    color: rgba(247, 247, 242, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .seo-content {
        padding: 25px;
    }

    .about-text {
        column-count: 1;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    input {
        font-size: 1.2rem;
    }
}