/* =========================================================
   TAROTPROFETA.COM
   Estilos para la página "Acerca de Nosotros"
   Identidad visual: verde profundo, dorado, marfil y pergamino
   ========================================================= */

:root {
    --verde-profeta: #073d32;
    --verde-abisal: #032820;
    --verde-profundo: #021d17;
    --verde-medio: #0a4b3d;

    --oro: #d6ae4a;
    --oro-luz: #f1d77a;

    --marfil: #f7f3e8;
    --pergamino: #eae1cc;
    --blanco-calido: #fffdf8;

    --carbon: #17241f;
    --texto: #26362f;
    --texto-suave: #58675f;
    --texto-claro: #dce7e1;

    --border-light: rgba(23, 36, 31, 0.12);
    --border-gold: rgba(214, 174, 74, 0.34);

    --shadow-soft: 0 16px 42px rgba(3, 40, 32, 0.10);
    --shadow-card: 0 22px 60px rgba(3, 40, 32, 0.14);
}


/* ============================
   RESET
   ============================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--carbon);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    background:
        radial-gradient(circle at 15% 0%, rgba(214, 174, 74, 0.08), transparent 26%),
        radial-gradient(circle at 90% 8%, rgba(7, 61, 50, 0.07), transparent 28%),
        var(--marfil);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}


/* ============================
   CONTENEDOR GENERAL
   ============================ */

.about-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem 2.5rem;
}


/* ============================
   HEADER / LOGO
   ============================ */

.about-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 0 1.4rem;
}

.about-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about-logo-link img {
    width: min(190px, 42vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(214, 174, 74, 0.52);
    box-shadow:
        0 14px 34px rgba(3, 40, 32, 0.16),
        0 0 0 7px rgba(214, 174, 74, 0.035);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.about-logo-link:hover img {
    transform: translateY(-3px);
    box-shadow:
        0 18px 42px rgba(3, 40, 32, 0.2),
        0 0 26px rgba(214, 174, 74, 0.18);
}


/* ============================
   MAIN
   ============================ */

.about-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-card {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 3rem 3rem 3.25rem;

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 248, 0.99),
            rgba(247, 243, 232, 0.985)
        );

    border-radius: 1.45rem;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--oro),
        var(--oro-luz),
        var(--oro),
        transparent
    );
}

.about-card::after {
    content: "✦";
    position: absolute;
    top: 1.15rem;
    right: 1.4rem;
    color: var(--oro);
    font-size: 1rem;
    opacity: 0.5;
}


/* ============================
   TIPOGRAFÍA
   ============================ */

.about-card h1,
.about-card h2,
.about-card h4 {
    font-family: Georgia, "Times New Roman", serif;
}

.about-card h1 {
    text-align: center;
    color: var(--verde-profeta);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: 0.035em;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-card h1::after {
    content: "";
    display: block;
    width: 78px;
    height: 2px;
    margin: 0.9rem auto 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--oro),
        transparent
    );
}

.about-card h2 {
    color: var(--verde-profeta);
    font-size: 1.25rem;
    line-height: 1.3;
    margin-top: 2.1rem;
    margin-bottom: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.about-card h2:first-of-type {
    margin-top: 0.6rem;
}

.about-card h4 {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: var(--verde-profeta);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.about-card p {
    color: var(--texto-suave);
    font-size: 0.96rem;
    line-height: 1.82;
    margin-bottom: 1rem;
}


/* ============================
   LISTAS
   ============================ */

.about-card ul,
.about-card ol {
    margin: 0.7rem 0 1.1rem;
    padding-left: 1.4rem;
}

.about-card li {
    color: var(--texto);
    font-size: 0.93rem;
    line-height: 1.72;
    margin-bottom: 0.55rem;
}

.about-card li::marker {
    color: var(--oro);
}

/*
   El HTML heredado ya contiene los números
   dentro del texto de algunos <li>.
*/
.about-card h2 + ol li {
    list-style: none;
}

.about-card h2 + ol {
    padding-left: 0;
}


/* ============================
   BLOQUES IMPORTANTES
   ============================ */

/*
   Las secciones de términos quedan visualmente integradas
   pero separadas con una línea delicada.
*/
.about-card h2:nth-of-type(n + 6) {
    padding-top: 1rem;
    border-top: 1px solid rgba(214, 174, 74, 0.22);
}


/* ============================
   BOTÓN VOLVER
   ============================ */

.botones {
    margin-top: 2.6rem;
    display: flex;
    justify-content: center;
}

.salir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 48px;
    padding: 0.7rem 1.45rem;

    border-radius: 0.72rem;
    border: 1px solid var(--oro);

    background: var(--oro);
    color: var(--verde-abisal);

    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-decoration: none;

    box-shadow: 0 10px 26px rgba(3, 40, 32, 0.14);

    transition:
        transform 0.18s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.salir:hover {
    transform: translateY(-2px);
    background: var(--oro-luz);
    border-color: var(--oro-luz);
    box-shadow: 0 15px 34px rgba(3, 40, 32, 0.18);
}


/* ============================
   SELECCIÓN Y FOCO
   ============================ */

::selection {
    background: var(--oro-luz);
    color: var(--verde-abisal);
}

a:focus-visible {
    outline: 2px solid var(--oro);
    outline-offset: 4px;
}


/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {

    .about-shell {
        padding: 1rem 0.75rem 1.75rem;
    }

    .about-header {
        padding-bottom: 1rem;
    }

    .about-logo-link img {
        width: 145px;
    }

    .about-card {
        padding: 2rem 1.25rem 2.2rem;
        border-radius: 1rem;
    }

    .about-card::after {
        top: 0.8rem;
        right: 1rem;
    }

    .about-card h1 {
        font-size: 1.85rem;
        margin-bottom: 1.5rem;
    }

    .about-card h2 {
        font-size: 1.12rem;
        margin-top: 1.75rem;
    }

    .about-card p,
    .about-card li {
        font-size: 0.91rem;
    }

    .salir {
        width: 100%;
        min-width: 0;
    }
}


@media (max-width: 480px) {

    .about-shell {
        padding-inline: 0.55rem;
    }

    .about-logo-link img {
        width: 125px;
    }

    .about-card {
        padding: 1.7rem 1rem 1.9rem;
    }

    .about-card h1 {
        font-size: 1.65rem;
    }

    .about-card h2 {
        font-size: 1.05rem;
    }
}


/* Respeta la preferencia del usuario sobre animaciones */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
