/* =========================================================
   GRUPO LAS LETRAS
   QUÉ HACEMOS
   Diseño editorial
   ========================================================= */


/* =========================================================
   BASE DE SEGURIDAD
========================================================= */

.page-hero,
#edicion-completa,
#servicios-individuales,
.mission-section,
.about-cta {
    position: relative;

    width: 100%;

    min-width: 0;

    overflow: hidden;
}


.page-hero *,
#edicion-completa *,
#servicios-individuales *,
.mission-section *,
.about-cta * {
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.page-hero {
    min-height: 68vh;

    display: flex;
    align-items: center;

    padding: 120px 0;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(168, 138, 82, 0.12),
            transparent 32%
        ),
        var(--color-fondo);
}


/* Línea vertical */

.page-hero::before {
    content: "";

    position: absolute;

    top: 15%;
    right: 8%;

    width: 1px;
    height: 70%;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-dorado),
        transparent
    );

    opacity: 0.45;

    pointer-events: none;
}


/* Círculo */

.page-hero::after {
    content: "";

    position: absolute;

    right: -160px;
    bottom: -180px;

    width: 430px;
    height: 430px;

    border: 1px solid rgba(168, 138, 82, 0.2);

    border-radius: 50%;

    pointer-events: none;
}


.page-hero .container {
    position: relative;

    z-index: 2;

    width: min(92%, 950px);

    min-width: 0;

    margin-left: auto;
    margin-right: auto;
}


.page-hero .small-title {
    display: block;

    margin-bottom: 25px;

    color: var(--color-dorado);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.page-hero h1 {
    max-width: 850px;

    margin-bottom: 30px;

    font-size: clamp(3.5rem, 7vw, 6.5rem);

    line-height: 0.95;

    letter-spacing: -1px;

    overflow-wrap: break-word;
}


.page-hero p {
    max-width: 680px;

    font-size: 17px;

    line-height: 1.9;
}


/* =========================================================
   INTRODUCCIÓN
========================================================= */

.about-introduction {
    width: 100%;

    max-width: 850px;

    min-width: 0;

    margin-left: auto;
    margin-right: auto;
}


.about-introduction .lead {
    margin-bottom: 35px;

    color: var(--color-principal);

    font-family: var(--fuente-titulos);

    font-size: clamp(1.8rem, 3vw, 2.6rem);

    line-height: 1.25;
}


.about-introduction p:not(.lead) {
    margin-bottom: 20px;

    font-size: 15px;

    line-height: 1.9;
}


.about-introduction strong {
    color: var(--color-principal);

    font-weight: 600;
}


/* =========================================================
   PROCESO EDITORIAL
========================================================= */

#edicion-completa {
    background: var(--color-fondo-secundario);
}


/* Línea central */

#edicion-completa::before {
    content: "";

    position: absolute;

    left: 50%;

    top: 180px;
    bottom: 120px;

    width: 1px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-dorado),
        transparent
    );

    opacity: 0.18;

    pointer-events: none;
}


#edicion-completa .section-heading {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 800px;

    margin-bottom: 70px;

    min-width: 0;
}


/* =========================================================
   CONTENEDOR DEL PROCESO
========================================================= */

.process-grid {
    position: relative;

    display: block;

    width: 100%;
    max-width: 1050px;

    min-width: 0;
    min-height: 420px;

    margin: 0 auto;
}


/* =========================================================
   TARJETAS DEL PROCESO
========================================================= */

.process-card {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    min-width: 0;
    min-height: 420px;

    padding: 70px 90px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: var(--color-fondo);

    border: 1px solid var(--color-borde);

    opacity: 0;
    visibility: hidden;

    transform: translateX(40px);

    pointer-events: none;

    overflow: hidden;

    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        visibility 0.55s ease;
}


.process-card.process-active {
    z-index: 2;

    opacity: 1;

    visibility: visible;

    transform: translateX(0);

    pointer-events: auto;
}


/* Barra dorada */

.process-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background: var(--color-dorado);
}


/* Número gigante */

.process-card::after {
    content: "";

    position: absolute;

    right: 50px;
    bottom: 5px;

    color: var(--color-dorado);

    font-family: var(--fuente-titulos);

    font-size: 190px;

    line-height: 1;

    opacity: 0.055;

    pointer-events: none;
}


/* =========================================================
   NÚMERO
========================================================= */

.process-number {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;

    color: var(--color-dorado);

    font-family: var(--fuente-texto);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.process-number::after {
    content: "";

    width: 45px;
    height: 1px;

    flex-shrink: 0;

    background: var(--color-dorado);

    opacity: 0.7;
}


/* =========================================================
   TÍTULO
========================================================= */

.process-card h3 {
    position: relative;

    z-index: 3;

    max-width: 720px;

    min-width: 0;

    margin-bottom: 25px;

    color: var(--color-principal);

    font-size: clamp(3rem, 6vw, 5.5rem);

    line-height: 0.95;

    overflow-wrap: break-word;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.process-card p {
    position: relative;

    z-index: 3;

    width: 100%;

    max-width: 650px;

    min-width: 0;

    margin: 0;

    font-size: 15px;

    line-height: 1.9;

    overflow-wrap: break-word;
}


/* =========================================================
   NAVEGACIÓN DEL PROCESO
========================================================= */

.process-navigation {
    position: relative;

    width: 100%;
    max-width: 1050px;

    min-width: 0;

    margin: 35px auto 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   FLECHAS
========================================================= */

.process-prev,
.process-next {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--color-borde);

    background: transparent;

    color: var(--color-principal);

    font-family: Georgia, serif;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.process-prev:hover,
.process-next:hover {
    background: var(--color-dorado);

    border-color: var(--color-dorado);

    color: var(--color-blanco);

    transform: translateY(-2px);
}


/* =========================================================
   CONTADOR
========================================================= */

.process-counter {
    flex: 1;

    min-width: 0;

    color: var(--color-texto-suave);

    font-family: var(--fuente-texto);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3px;

    text-align: center;
}


/* =========================================================
   PUNTOS
========================================================= */

.process-dots {
    position: absolute;

    left: 50%;
    bottom: -35px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 9px;

    max-width: 90%;

    overflow: hidden;
}


.process-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: var(--color-borde);

    cursor: pointer;

    transition:
        width 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}


.process-dot:hover {
    transform: scale(1.3);
}


.process-dot.active {
    width: 28px;

    border-radius: 10px;

    background: var(--color-dorado);
}


/* =========================================================
   SERVICIOS INDIVIDUALES
========================================================= */

#servicios-individuales {
    background: var(--color-fondo);
}


.individual-services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    width: 100%;
    min-width: 0;

    background: var(--color-borde);

    border: 1px solid var(--color-borde);

    overflow: hidden;
}


.individual-service {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 330px;

    padding: 45px 30px;

    background: var(--color-fondo);

    overflow: hidden;

    transition:
        background-color 0.35s ease,
        transform 0.35s ease;
}


.individual-service:hover {
    z-index: 2;

    background: var(--color-blanco);

    transform: translateY(-8px);
}


/* =========================================================
   ICONOS
========================================================= */

.individual-service .service-icon {
    width: 55px;
    height: 55px;

    margin-bottom: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid var(--color-dorado);

    color: var(--color-dorado);

    font-size: 22px;
}


.individual-service h3 {
    margin-bottom: 15px;

    color: var(--color-principal);

    font-size: 1.8rem;

    overflow-wrap: break-word;
}


.individual-service p {
    margin: 0;

    font-size: 13px;

    line-height: 1.8;

    overflow-wrap: break-word;
}


/* =========================================================
   DOS COLUMNAS
========================================================= */

.two-column-section {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 100px;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    align-items: start;
}


.two-column-section .section-heading {
    position: sticky;

    top: 130px;

    min-width: 0;

    margin-bottom: 0;
}


.two-column-section .section-heading h2 {
    max-width: 550px;

    overflow-wrap: break-word;
}


.section-content {
    width: 100%;
    max-width: 600px;
    min-width: 0;

    box-sizing: border-box;
}

.section-content > p {
    margin-bottom: 35px;

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   LISTA
========================================================= */

.feature-list {
    list-style: none;

    width: 100%;

    margin: 0;
    padding: 0;

    border-top: 1px solid var(--color-borde);
}


.feature-list li {
    position: relative;

    width: 100%;

    padding: 20px 0;

    border-bottom: 1px solid var(--color-borde);

    color: var(--color-texto);

    font-size: 14px;

    line-height: 1.6;

    overflow-wrap: break-word;

    transition:
        padding-left 0.3s ease,
        color 0.3s ease;
}


.feature-list li:hover {
    padding-left: 15px;

    color: var(--color-dorado);
}


/* =========================================================
   MISIÓN / ACOMPAÑAMIENTO
========================================================= */

.mission-section {
    padding: 140px 0;

    background: var(--color-principal);

    color: var(--color-blanco);

    text-align: center;
}


.mission-section::before {
    content: "“";

    position: absolute;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    color: rgba(168, 138, 82, 0.15);

    font-family: var(--fuente-titulos);

    font-size: 300px;

    line-height: 1;

    pointer-events: none;
}


.mission-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 850px;

    min-width: 0;

    margin: 0 auto;
}


.mission-icon {
    margin-bottom: 25px;

    color: var(--color-dorado);

    font-size: 28px;
}


.mission-content > span {
    display: block;

    margin-bottom: 20px;

    color: var(--color-dorado);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.mission-content h2 {
    margin-bottom: 35px;

    color: var(--color-blanco);

    font-size: clamp(3rem, 6vw, 5.5rem);

    line-height: 0.95;

    overflow-wrap: break-word;
}


.mission-content p {
    max-width: 700px;

    margin: 0 auto 18px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   CTA
========================================================= */

.about-cta {
    padding: 120px 0;

    background:
        linear-gradient(
            135deg,
            var(--color-dorado),
            var(--color-dorado-hover)
        );

    color: var(--color-blanco);

    text-align: center;
}


.about-cta .container {
    width: 100%;

    max-width: 850px;

    min-width: 0;
}


.about-cta > .container > span {
    display: block;

    margin-bottom: 20px;

    color: var(--color-blanco);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.about-cta h2 {
    margin-bottom: 25px;

    color: var(--color-blanco);

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 0.95;

    overflow-wrap: break-word;
}


.about-cta p {
    max-width: 650px;

    margin: 0 auto 40px;

    color: rgba(255, 255, 255, 0.85);

    font-size: 15px;

    line-height: 1.9;
}


.cta-buttons {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

    max-width: 100%;
}


/* =========================================================
   MODO OSCURO
========================================================= */


/* =========================================================
   HERO
========================================================= */

body.dark-theme .page-hero {
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(194, 165, 107, 0.08),
            transparent 32%
        ),
        var(--color-fondo);
}


/* =========================================================
   PROCESO
========================================================= */

body.dark-theme .process-card {
    background: var(--color-fondo);

    border-color: var(--color-borde);
}


body.dark-theme .process-card::after {
    opacity: 0.07;
}


/* =========================================================
   SERVICIOS
========================================================= */

body.dark-theme .individual-service {
    background: var(--color-fondo);
}


body.dark-theme .individual-service:hover {
    background: var(--color-fondo-secundario);
}


/* =========================================================
   FLECHAS
========================================================= */

body.dark-theme .process-prev,
body.dark-theme .process-next {
    background: transparent;

    color: var(--color-texto);
}


body.dark-theme .process-prev:hover,
body.dark-theme .process-next:hover {
    background: var(--color-dorado);

    border-color: var(--color-dorado);

    color: var(--color-blanco);
}


/* =========================================================
   MISIÓN / ACOMPAÑAMIENTO
   Corrección específica del modo oscuro
========================================================= */

/*
   Esta sección no depende de --color-principal en modo oscuro,
   porque esa variable puede cambiar de valor al activar el tema.
   Se fuerza un fondo oscuro para conservar el contraste.
*/

body.dark-theme .mission-section {
    background: #101010;

    color: #ffffff;
}


/* Título principal */

body.dark-theme .mission-content h2 {
    color: #ffffff;
}


/* Párrafos */

body.dark-theme .mission-content p {
    color: rgba(255, 255, 255, 0.72);
}


/* Texto pequeño */

body.dark-theme .mission-content > span {
    color: var(--color-dorado);
}


/* Icono */

body.dark-theme .mission-icon {
    color: var(--color-dorado);
}


/* Comilla decorativa */

body.dark-theme .mission-section::before {
    color: rgba(194, 165, 107, 0.12);
}


/* =========================================================
   CTA
========================================================= */

body.dark-theme .about-cta {
    color: #ffffff;
}


body.dark-theme .about-cta > .container > span {
    color: #ffffff;
}


body.dark-theme .about-cta h2 {
    color: #ffffff;
}


body.dark-theme .about-cta p {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .page-hero *,
    #edicion-completa *,
    #servicios-individuales *,
    .mission-section *,
    .about-cta * {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

