/* =========================================================
   SAST TREJO
   Hoja de estilos general
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {

    /* Colores principales */
    --cafe-950: #1d100b;
    --cafe-900: #2b1810;
    --cafe-850: #352016;
    --cafe-800: #42281b;
    --cafe-700: #5c3825;
    --cafe-600: #795036;
    --cafe-500: #9a6848;
    --cafe-400: #c18b68;
    --cafe-300: #ddb597;

    /* Fondos */
    --crema-50: #fcfaf7;
    --crema-100: #f8f3ed;
    --crema-200: #eee4d8;

    /* Neutros */
    --blanco: #ffffff;

    --gris-50: #fafafa;
    --gris-100: #f4f4f5;
    --gris-200: #e4e4e7;
    --gris-300: #d4d4d8;
    --gris-400: #a1a1aa;
    --gris-500: #71717a;
    --gris-600: #52525b;
    --gris-700: #3f3f46;
    --gris-800: #27272a;
    --gris-900: #18181b;

    /* Estados */
    --verde: #23834c;
    --verde-claro: #e8f6ed;

    --rojo: #c73d3d;
    --rojo-claro: #fdeaea;

    --azul: #2879c7;
    --azul-claro: #e9f3fd;

    --amarillo: #cf921f;
    --amarillo-claro: #fff4d9;

    /* Bordes */
    --radio-sm: 8px;
    --radio-md: 12px;
    --radio-lg: 16px;

    /* Sombras */
    --sombra-suave:
        0 8px 24px rgba(32, 18, 12, 0.07);

    --sombra-media:
        0 14px 35px rgba(32, 18, 12, 0.12);
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: "Inter", Arial, sans-serif;

    background: var(--gris-50);
    color: var(--gris-900);

    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   3. CONTENEDOR GENERAL
   ========================================================= */

.contenedor {
    width: min(1180px, calc(100% - 40px));

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   4. ENCABEZADO PÚBLICO
   ========================================================= */

.encabezado-publico {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--gris-200);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.025);

    backdrop-filter: blur(8px);
}

.nav-publica {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 26px;
}


/* =========================================================
   5. LOGO Y MARCA
   ========================================================= */

.marca {
    display: flex;
    align-items: center;

    gap: 13px;

    flex-shrink: 0;
}

.marca img {
    width: 58px;
    height: 58px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid var(--cafe-400);

    background: var(--blanco);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12);
}

.logo-trejo {
    flex-shrink: 0;
}

.marca-texto {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.marca-texto strong {
    color: var(--cafe-900);

    font-size: 19px;
    font-weight: 700;
}

.marca-texto span {
    max-width: 230px;

    margin-top: 4px;

    color: var(--gris-500);

    font-size: 11px;

    line-height: 1.3;
}


/* =========================================================
   6. MENÚ PÚBLICO
   ========================================================= */

.menu-publico {
    display: flex;
    align-items: center;

    gap: 27px;
}

.menu-publico a {
    position: relative;

    padding: 29px 0;

    color: var(--gris-700);

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.menu-publico a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 19px;

    height: 2px;

    background: var(--cafe-500);

    transform: scaleX(0);

    transition: transform 0.2s ease;
}

.menu-publico a:hover {
    color: var(--cafe-700);
}

.menu-publico a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   7. ACCIONES DEL ENCABEZADO
   ========================================================= */

.acciones-nav {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


/* =========================================================
   8. BOTONES GENERALES
   ========================================================= */

.btn {
    min-height: 44px;

    padding: 11px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid transparent;
    border-radius: var(--radio-sm);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}


/* Principal */

.btn-primario {
    background: var(--cafe-800);
    color: var(--blanco);

    box-shadow:
        0 5px 14px rgba(66, 40, 27, 0.16);
}

.btn-primario:hover {
    background: var(--cafe-700);
}


/* Secundario */

.btn-secundario {
    background: transparent;

    color: var(--cafe-900);

    border-color: var(--cafe-700);
}

.btn-secundario:hover {
    background: var(--crema-100);
}


/* Claro */

.btn-claro {
    background: var(--blanco);

    color: var(--cafe-900);

    border-color: var(--blanco);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-claro:hover {
    background: var(--crema-100);
}


/* Hero */

.btn-hero-outline {
    color: var(--blanco);

    background: rgba(255, 255, 255, 0.03);

    border-color: rgba(255, 255, 255, 0.70);
}

.btn-hero-outline:hover {
    background: var(--blanco);

    color: var(--cafe-950);

    border-color: var(--blanco);
}


/* =========================================================
   9. HERO DE LA PÁGINA PÚBLICA
   ========================================================= */

.hero-publico {
    position: relative;

    overflow: hidden;

    color: var(--blanco);

    background:
        radial-gradient(
            circle at 35% 15%,
            rgba(193, 139, 104, 0.20),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--cafe-950),
            var(--cafe-800)
        );
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, 0.95fr);

    min-height: 540px;

    align-items: stretch;
}

.hero-contenido {
    position: relative;

    z-index: 3;

    padding: 72px 58px 72px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-etiqueta {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--cafe-300);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;
}

.hero-publico h1 {
    max-width: 700px;

    margin: 0;

    color: var(--blanco);

    font-size: clamp(38px, 4.4vw, 61px);
    font-weight: 700;

    line-height: 1.07;

    letter-spacing: -1.6px;
}

.hero-publico p {
    max-width: 630px;

    margin: 25px 0 31px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 16px;

    line-height: 1.75;
}

.hero-botones {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   10. FOTO PRINCIPAL DEL TOSTADOR
   ========================================================= */

.hero-imagen {
    position: relative;

    min-height: 540px;

    overflow: hidden;

    background: var(--cafe-900);
}

.hero-imagen img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center center;

    transition: transform 0.6s ease;
}

.hero-imagen:hover img {
    transform: scale(1.025);
}

.hero-imagen::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(29, 16, 11, 0.82) 0%,
            rgba(29, 16, 11, 0.30) 31%,
            rgba(29, 16, 11, 0.06) 70%
        ),
        linear-gradient(
            0deg,
            rgba(29, 16, 11, 0.35),
            transparent 38%
        );
}

.hero-imagen-etiqueta {
    position: absolute;

    right: 24px;
    bottom: 24px;

    z-index: 3;

    min-width: 225px;

    padding: 14px 18px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    background: rgba(29, 16, 11, 0.83);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: var(--radio-md);

    backdrop-filter: blur(8px);

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.20);
}

.hero-imagen-etiqueta span {
    color: var(--cafe-300);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.hero-imagen-etiqueta strong {
    color: var(--blanco);

    font-size: 14px;
}


/* =========================================================
   11. SECCIONES GENERALES
   ========================================================= */

.seccion {
    padding: 67px 0;
}

.seccion-titulo {
    max-width: 720px;

    margin-bottom: 31px;
}

.seccion-titulo > span {
    color: var(--cafe-600);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.seccion-titulo h2 {
    margin: 8px 0 10px;

    color: var(--gris-900);

    font-size: clamp(28px, 3vw, 36px);

    line-height: 1.18;
}

.seccion-titulo p {
    margin: 0;

    color: var(--gris-500);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   12. TARJETAS
   ========================================================= */

.grid-tarjetas {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 21px;
}

.tarjeta {
    position: relative;

    min-height: 280px;

    padding: 27px;

    background: var(--blanco);

    border: 1px solid var(--gris-200);

    border-radius: var(--radio-lg);

    box-shadow: var(--sombra-suave);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);

    border-color: var(--crema-200);

    box-shadow: var(--sombra-media);
}

.tarjeta-icono {
    width: 54px;
    height: 54px;

    margin-bottom: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--crema-100);

    color: var(--cafe-700);

    font-size: 21px;
}

.tarjeta h3 {
    margin: 0 0 11px;

    color: var(--gris-900);

    font-size: 19px;
}

.tarjeta p {
    margin: 0 0 22px;

    color: var(--gris-500);

    font-size: 14px;

    line-height: 1.7;
}

.tarjeta-enlace {
    color: var(--cafe-700);

    font-size: 14px;
    font-weight: 700;
}

a.tarjeta-enlace {
    display: inline-flex;
    align-items: center;

    gap: 7px;
}

a.tarjeta-enlace:hover {
    color: var(--cafe-500);
}


/* =========================================================
   13. PREGUNTAS FRECUENTES
   ========================================================= */

.lista-faq {
    display: grid;

    grid-template-columns: 1fr;

    gap: 13px;
}

.faq-item {
    overflow: hidden;

    background: var(--blanco);

    border: 1px solid var(--gris-200);

    border-radius: var(--radio-md);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.025);
}

.faq-item summary {
    padding: 20px 22px;

    cursor: pointer;

    color: var(--gris-800);

    font-size: 14px;
    font-weight: 600;

    list-style-position: inside;
}

.faq-item[open] summary {
    color: var(--cafe-700);

    border-bottom: 1px solid var(--gris-100);
}

.faq-item p {
    margin: 0;

    padding: 18px 22px 22px;

    color: var(--gris-500);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   14. CAMPOS Y FORMULARIOS GENERALES
   ========================================================= */

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;

    margin-bottom: 7px;

    color: var(--gris-700);

    font-size: 13px;
    font-weight: 600;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;

    padding: 12px 14px;

    background: var(--blanco);

    color: var(--gris-900);

    border: 1px solid var(--gris-300);

    border-radius: var(--radio-sm);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: var(--cafe-500);

    box-shadow:
        0 0 0 3px rgba(154, 104, 72, 0.12);
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: var(--gris-400);
}


/* =========================================================
   15. INPUTS CON ICONOS
   ========================================================= */

.input-icono {
    position: relative;
}

.input-icono > i {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #8a817c;

    pointer-events: none;
}

.input-icono input {
    width: 100%;

    padding:
        13px
        14px
        13px
        42px;

    border: 1px solid #d8d1cb;

    border-radius: 10px;

    outline: none;

    background: var(--blanco);

    color: var(--gris-900);

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-icono input:focus {
    border-color: var(--cafe-600);

    box-shadow:
        0 0 0 3px rgba(122, 74, 46, 0.12);
}

.input-icono input::placeholder {
    color: var(--gris-400);
}


/* =========================================================
   16. CHECKBOXES
   ========================================================= */

.check {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin-bottom: 13px;
}

.check input {
    width: auto;

    margin-top: 4px;

    accent-color: var(--cafe-700);
}

.check label {
    margin: 0;

    color: var(--gris-600);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   17. ALERTAS Y ERRORES
   ========================================================= */

.errores {
    margin-bottom: 20px;

    padding: 13px 15px;

    color: #8b2424;

    background: var(--rojo-claro);

    border: 1px solid #f2caca;

    border-radius: var(--radio-sm);

    font-size: 14px;
}

.error-campo {
    margin-top: 5px;

    color: var(--rojo);

    font-size: 12px;
}

.alerta-exito {
    margin-bottom: 20px;

    padding: 13px 15px;

    color: #176636;

    background: var(--verde-claro);

    border: 1px solid #bfe3cb;

    border-radius: var(--radio-sm);

    font-size: 14px;
}


/* =========================================================
   18. LOGIN
   ========================================================= */

.auth-seccion {
    min-height: calc(100vh - 82px);

    display: flex;
    align-items: center;

    padding: 55px 0;

    background:
        linear-gradient(
            135deg,
            #f7f3ef,
            #f1ebe4
        );
}

.auth-contenedor {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        430px;

    min-height: 620px;

    padding: 0;

    overflow: hidden;

    background: var(--blanco);

    border: 1px solid #e5ddd5;

    border-radius: 20px;

    box-shadow:
        0 18px 45px rgba(37, 20, 13, 0.12);
}


/* =========================================================
   19. LADO VISUAL DEL LOGIN
   ========================================================= */

.auth-presentacion {
    position: relative;

    display: flex;
    align-items: center;

    padding: 60px;

    overflow: hidden;

    color: var(--blanco);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(193, 139, 104, 0.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #2a120a,
            #5a2d18
        );
}

.auth-presentacion::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -190px;

    border-radius: 50%;

    border:
        75px solid rgba(255, 255, 255, 0.035);
}

.auth-presentacion-contenido {
    position: relative;

    z-index: 2;

    max-width: 560px;
}

.auth-identidad {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 28px;
}

.auth-logo {
    width: 82px;
    height: 82px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 50%;

    border:
        3px solid rgba(255, 255, 255, 0.75);

    background: var(--blanco);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);
}

.auth-etiqueta {
    display: block;

    margin-bottom: 8px;

    color: var(--cafe-300);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.auth-presentacion h1 {
    margin: 0;

    color: var(--blanco);

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.08;

    letter-spacing: -0.8px;
}

.auth-texto {
    max-width: 530px;

    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 16px;

    line-height: 1.75;
}

.auth-caracteristicas {
    display: grid;

    gap: 14px;

    margin-top: 10px;
}

.auth-item {
    display: flex;
    align-items: center;

    gap: 12px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 14px;
}

.auth-item i {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: var(--cafe-300);
}


/* =========================================================
   20. FORMULARIO DEL LOGIN
   ========================================================= */

.auth-formulario {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 42px;

    background: var(--blanco);
}

.auth-card {
    width: 100%;

    max-width: 360px;
}

.auth-card-encabezado {
    margin-bottom: 26px;
}

.auth-card-encabezado > span {
    color: var(--cafe-600);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.auth-card-encabezado h2 {
    margin: 7px 0 8px;

    color: #241813;

    font-size: 30px;
}

.auth-card-encabezado p {
    margin: 0;

    color: #6b625c;

    font-size: 14px;

    line-height: 1.6;
}

.auth-boton {
    width: 100%;

    min-height: 48px;
}


/* =========================================================
   21. SEPARADORES / VOLVER
   ========================================================= */

.auth-separador {
    position: relative;

    margin: 24px 0;

    text-align: center;

    color: #6b625c;

    font-size: 12px;
}

.auth-separador::before {
    content: "";

    position: absolute;

    top: 50%;

    left: 0;
    right: 0;

    height: 1px;

    background: #e6dfd8;
}

.auth-separador span {
    position: relative;

    z-index: 1;

    padding: 0 12px;

    background: var(--blanco);
}

.auth-volver {
    margin-top: 22px;

    text-align: center;
}

.auth-volver a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #6b625c;

    font-size: 13px;
    font-weight: 500;
}

.auth-volver a:hover {
    color: var(--cafe-700);
}


/* =========================================================
   22. REGISTRO SIMPLE
   ========================================================= */

.registro-simple-seccion {
    padding: 55px 0 70px;

    background:
        linear-gradient(
            135deg,
            #f7f3ef,
            #f1ebe4
        );
}

.registro-simple-card {
    width: min(850px, 100%);

    margin: 0 auto;

    padding: 42px 48px;

    background: var(--blanco);

    border: 1px solid #e5ddd5;

    border-radius: 18px;

    box-shadow:
        0 16px 40px rgba(37, 20, 13, 0.10);
}


/* =========================================================
   23. ENCABEZADO DEL REGISTRO
   ========================================================= */

.registro-simple-encabezado {
    display: flex;
    align-items: center;

    gap: 18px;

    padding-bottom: 25px;

    margin-bottom: 28px;

    border-bottom:
        1px solid var(--gris-200);
}

.registro-simple-logo {
    width: 72px;
    height: 72px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 50%;

    border:
        2px solid var(--cafe-400);

    background: var(--blanco);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.12);
}

.registro-simple-encabezado span {
    color: var(--cafe-600);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.registro-simple-encabezado h1 {
    margin: 4px 0 5px;

    color: var(--cafe-900);

    font-size: 30px;

    line-height: 1.15;
}

.registro-simple-encabezado p {
    margin: 0;

    color: var(--gris-500);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   24. GRID DEL REGISTRO
   ========================================================= */

.registro-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 18px;
}

.registro-campo-completo {
    grid-column: 1 / -1;
}


/* =========================================================
   25. REQUISITOS DE CONTRASEÑA
   ========================================================= */

.registro-requisito-password {
    margin: -2px 0 20px;

    padding: 10px 12px;

    display: flex;
    align-items: flex-start;

    gap: 8px;

    color: var(--gris-500);

    background: var(--gris-50);

    border: 1px solid var(--gris-200);

    border-radius: var(--radio-sm);

    font-size: 11px;

    line-height: 1.5;
}

.registro-requisito-password i {
    margin-top: 2px;

    color: var(--cafe-500);
}


/* =========================================================
   26. CHECKBOXES DEL REGISTRO
   ========================================================= */

.registro-check {
    padding: 10px 12px;

    margin-bottom: 9px;

    background: var(--crema-50);

    border: 1px solid var(--crema-200);

    border-radius: var(--radio-sm);
}

.registro-check label {
    cursor: pointer;
}

.registro-error-check {
    margin:
        -3px
        0
        10px;
}


/* =========================================================
   27. BOTÓN DEL REGISTRO
   ========================================================= */

.registro-boton {
    width: 100%;

    min-height: 48px;

    margin-top: 16px;
}


/* =========================================================
   28. FOOTER
   ========================================================= */

.footer-publico {
    padding: 44px 0;

    color: rgba(255, 255, 255, 0.78);

    background:
        linear-gradient(
            135deg,
            var(--cafe-950),
            var(--cafe-850)
        );
}

.footer-contenido {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.4fr)
        minmax(180px, 1fr)
        minmax(220px, 1fr);

    gap: 45px;

    align-items: flex-start;
}

.footer-publico .marca {
    align-items: flex-start;
}

.footer-publico .marca img {
    width: 54px;
    height: 54px;

    border-color:
        rgba(255, 255, 255, 0.40);
}

.footer-publico strong {
    color: var(--blanco);

    font-size: 14px;
}

.footer-publico p {
    max-width: 330px;

    margin: 7px 0 0;

    color: rgba(255, 255, 255, 0.66);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   29. UTILIDADES
   ========================================================= */

.texto-cafe {
    color: var(--cafe-700);
}

.texto-muted {
    color: var(--gris-500);
}

.fondo-crema {
    background: var(--crema-100);
}


/* =========================================================
   30. RESPONSIVE - 1050 PX
   ========================================================= */

@media (max-width: 1050px) {

    .nav-publica {
        gap: 15px;
    }

    .menu-publico {
        gap: 18px;
    }

    .menu-publico a {
        font-size: 13px;
    }

    .marca-texto span {
        display: none;
    }

    .hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(360px, 0.8fr);
    }

    .hero-contenido {
        padding-right: 35px;
    }

}


/* =========================================================
   31. RESPONSIVE - 900 PX
   ========================================================= */

@media (max-width: 900px) {

    .menu-publico {
        display: none;
    }


    /* Página pública */

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-contenido {
        min-height: auto;

        padding: 60px 0;
    }

    .hero-imagen {
        min-height: 410px;
    }

    .hero-imagen::after {
        background:
            linear-gradient(
                0deg,
                rgba(29, 16, 11, 0.52),
                rgba(29, 16, 11, 0.04) 60%
            );
    }

    .grid-tarjetas {
        grid-template-columns: 1fr;
    }

    .tarjeta {
        min-height: auto;
    }


    /* Login */

    .auth-contenedor {
        grid-template-columns: 1fr;
    }

    .auth-presentacion {
        min-height: auto;

        padding: 45px;
    }

    .auth-presentacion h1 {
        max-width: 650px;

        font-size: 38px;
    }

    .auth-formulario {
        padding: 45px 30px;
    }


    /* Footer */

    .footer-contenido {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   32. RESPONSIVE - 700 PX
   ========================================================= */

@media (max-width: 700px) {

    /* Registro */

    .registro-simple-seccion {
        padding: 25px 0 40px;
    }

    .registro-simple-card {
        padding: 30px 23px;

        border-radius: 14px;
    }

    .registro-simple-encabezado {
        align-items: flex-start;
    }

    .registro-simple-logo {
        width: 60px;
        height: 60px;
    }

    .registro-simple-encabezado h1 {
        font-size: 26px;
    }

    .registro-grid {
        grid-template-columns: 1fr;
    }

    .registro-campo-completo {
        grid-column: auto;
    }

}


/* =========================================================
   33. RESPONSIVE - 650 PX
   ========================================================= */

@media (max-width: 650px) {

    .contenedor {
        width: min(100% - 28px, 1180px);
    }

    .nav-publica {
        min-height: 70px;
    }

    .marca img {
        width: 46px;
        height: 46px;
    }

    .marca-texto strong {
        font-size: 16px;
    }


    /* Encabezado */

    .acciones-nav .btn-secundario {
        display: none;
    }

    .acciones-nav .btn {
        min-height: 39px;

        padding: 9px 12px;

        font-size: 12px;
    }


    /* Página pública */

    .hero-contenido {
        padding: 51px 0;
    }

    .hero-publico h1 {
        font-size: 37px;

        letter-spacing: -0.8px;
    }

    .hero-publico p {
        font-size: 15px;
    }

    .hero-botones {
        flex-direction: column;
    }

    .hero-botones .btn {
        width: 100%;
    }

    .hero-imagen {
        min-height: 340px;
    }

    .hero-imagen-etiqueta {
        right: 14px;
        bottom: 14px;

        min-width: 190px;
    }


    /* Secciones */

    .seccion {
        padding: 48px 0;
    }

    .seccion-titulo h2 {
        font-size: 28px;
    }

    .tarjeta {
        padding: 23px;
    }


    /* Login */

    .auth-seccion {
        padding: 25px 0;
    }

    .auth-contenedor {
        width: calc(100% - 28px);

        border-radius: 15px;
    }

    .auth-presentacion {
        padding: 32px 25px;
    }

    .auth-identidad {
        align-items: flex-start;

        gap: 14px;
    }

    .auth-logo {
        width: 64px;
        height: 64px;
    }

    .auth-presentacion h1 {
        font-size: 30px;
    }

    .auth-texto {
        font-size: 15px;
    }

    .auth-caracteristicas {
        margin-top: 24px;
    }

    .auth-formulario {
        padding: 36px 24px;
    }

    .auth-card-encabezado h2 {
        font-size: 27px;
    }


    /* Footer */

    .footer-contenido {
        grid-template-columns: 1fr;

        gap: 27px;
    }

}


/* =========================================================
   34. RESPONSIVE - 470 PX
   ========================================================= */

@media (max-width: 470px) {

    .registro-simple-encabezado {
        flex-direction: column;
    }

}


/* =========================================================
   35. RESPONSIVE - 420 PX
   ========================================================= */

@media (max-width: 420px) {

    .marca-texto span {
        display: none;
    }

    .marca-texto strong {
        font-size: 15px;
    }

    .acciones-nav .btn i {
        display: none;
    }


    /* Página pública */

    .hero-publico h1 {
        font-size: 32px;
    }

    .hero-imagen {
        min-height: 290px;
    }


    /* Login */

    .auth-caracteristicas {
        display: none;
    }

    .auth-identidad {
        flex-direction: column;
    }

}
/* =========================================================
   36. MEJORA VISUAL PÚBLICA SAST
   Paleta sobria + detalles decorativos
   ========================================================= */

/* ---------------------------------------------------------
   PALETA VISUAL
   --------------------------------------------------------- */

:root {
    /* Café institucional */
    --publico-cafe-oscuro: #2f211d;
    --publico-cafe-medio: #5f453c;

    /* Terracota apagado */
    --publico-terracota: #9a5f50;
    --publico-terracota-suave: #f4eae6;

    /* Azul grisáceo */
    --publico-azul: #607c84;
    --publico-azul-suave: #edf2f3;

    /* Verde salvia */
    --publico-salvia: #788873;
    --publico-salvia-suave: #eef2ec;

    /* Fondos */
    --publico-crema: #f6f2ed;
    --publico-fondo: #fbfaf8;

    /* Textos */
    --publico-texto: #292624;
    --publico-texto-secundario: #706b68;

    /* Bordes */
    --publico-borde: #e6dfda;
}


/* ---------------------------------------------------------
   FONDO GENERAL
   --------------------------------------------------------- */

body {
    background: var(--publico-fondo);
    color: var(--publico-texto);
}


/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.encabezado-publico {
    background: rgba(252, 251, 249, 0.97);
    border-bottom: 1px solid var(--publico-borde);
}

.menu-publico a {
    color: #4f4a47;
}

.menu-publico a:hover {
    color: var(--publico-terracota);
}

.menu-publico a::after {
    background: var(--publico-terracota);
}

.menu-publico a.activo {
    color: var(--publico-cafe-oscuro);
}


/* ---------------------------------------------------------
   BOTÓN PRINCIPAL DEL ENCABEZADO
   --------------------------------------------------------- */

.btn-primario {
    background: var(--publico-cafe-oscuro);
    border-color: var(--publico-cafe-oscuro);
    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(47, 33, 29, 0.15);
}

.btn-primario:hover {
    background: #49342e;
    border-color: #49342e;

    box-shadow:
        0 8px 20px rgba(47, 33, 29, 0.18);
}

.btn-secundario {
    color: var(--publico-cafe-oscuro);
    border-color: #82695f;
    background: #ffffff;
}

.btn-secundario:hover {
    background: var(--publico-crema);
    border-color: var(--publico-cafe-medio);
}


/* ---------------------------------------------------------
   HERO PRINCIPAL
   --------------------------------------------------------- */

.hero-publico {
    position: relative;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 14% 20%,
            rgba(154, 95, 80, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 44% 85%,
            rgba(96, 124, 132, 0.11),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #291c18 0%,
            #3e2a24 50%,
            #55372f 100%
        );
}

/* Círculo decorativo superior */

.hero-publico::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    top: -170px;
    left: -100px;

    border-radius: 50%;

    border:
        55px solid rgba(255, 255, 255, 0.025);

    z-index: 0;

    pointer-events: none;
}

/* Círculo decorativo inferior */

.hero-publico::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: 27%;
    bottom: -330px;

    border-radius: 50%;

    border:
        70px solid rgba(255, 255, 255, 0.025);

    z-index: 0;

    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
}

.hero-etiqueta {
    color: #d8b8ae;
}

.hero-publico p {
    color: rgba(255, 255, 255, 0.80);
}


/* ---------------------------------------------------------
   BOTONES DEL HERO
   --------------------------------------------------------- */

.btn-claro {
    background: #ffffff;
    color: var(--publico-cafe-oscuro);

    border-color: rgba(255, 255, 255, 0.95);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.15);
}

.btn-claro:hover {
    background: #f7f2ee;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.05);

    border-color:
        rgba(255, 255, 255, 0.60);

    color: #ffffff;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.95);

    color: var(--publico-cafe-oscuro);
}


/* ---------------------------------------------------------
   TÍTULOS DE LAS SECCIONES
   --------------------------------------------------------- */

.seccion-titulo > span {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--publico-terracota);

    font-weight: 700;
}

/* Pequeña línea decorativa */

.seccion-titulo > span::before {
    content: "";

    width: 22px;
    height: 3px;

    border-radius: 20px;

    background: var(--publico-terracota);
}

.seccion-titulo h2 {
    color: var(--publico-texto);
}

.seccion-titulo p {
    color: var(--publico-texto-secundario);
}


/* ---------------------------------------------------------
   TARJETAS PRINCIPALES
   --------------------------------------------------------- */

.grid-tarjetas-dos {
    gap: 26px;
}

.grid-tarjetas-dos .tarjeta {
    position: relative;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid var(--publico-borde);

    box-shadow:
        0 10px 30px rgba(47, 33, 29, 0.06);
}

/* Línea superior decorativa */

.grid-tarjetas-dos .tarjeta::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    opacity: 0.95;
}


/* ---------------------------------------------------------
   TARJETA 1 - SOPORTE
   --------------------------------------------------------- */

.grid-tarjetas-dos .tarjeta:nth-child(1)::before {
    background: var(--publico-terracota);
}

.grid-tarjetas-dos .tarjeta:nth-child(1) .tarjeta-icono {
    color: var(--publico-terracota);

    background:
        var(--publico-terracota-suave);
}

.grid-tarjetas-dos .tarjeta:nth-child(1) .tarjeta-enlace {
    color: #845043;
}


/* ---------------------------------------------------------
   TARJETA 2 - SEGUIMIENTO
   --------------------------------------------------------- */

.grid-tarjetas-dos .tarjeta:nth-child(2)::before {
    background: var(--publico-azul);
}

.grid-tarjetas-dos .tarjeta:nth-child(2) .tarjeta-icono {
    color: var(--publico-azul);

    background:
        var(--publico-azul-suave);
}

.grid-tarjetas-dos .tarjeta:nth-child(2) .tarjeta-enlace {
    color: #526d74;
}


/* ---------------------------------------------------------
   ICONOS DE LAS TARJETAS
   --------------------------------------------------------- */

.grid-tarjetas-dos .tarjeta-icono {
    width: 58px;
    height: 58px;

    border-radius: 16px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.grid-tarjetas-dos .tarjeta:hover .tarjeta-icono {
    transform: translateY(-2px) rotate(-2deg);
}

.grid-tarjetas-dos .tarjeta:nth-child(1):hover .tarjeta-icono {
    box-shadow:
        0 8px 20px rgba(154, 95, 80, 0.14);
}

.grid-tarjetas-dos .tarjeta:nth-child(2):hover .tarjeta-icono {
    box-shadow:
        0 8px 20px rgba(96, 124, 132, 0.14);
}


/* ---------------------------------------------------------
   HOVER DE TARJETAS
   --------------------------------------------------------- */

.grid-tarjetas-dos .tarjeta:hover {
    transform: translateY(-5px);

    border-color: #dcd3ce;

    box-shadow:
        0 18px 38px rgba(47, 33, 29, 0.10);
}


/* ---------------------------------------------------------
   TEXTO DE TARJETAS
   --------------------------------------------------------- */

.tarjeta h3 {
    color: var(--publico-texto);
}

.tarjeta p {
    color: var(--publico-texto-secundario);
}

.tarjeta-enlace i {
    transition: transform 0.2s ease;
}

a.tarjeta-enlace:hover i {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   SECCIÓN PREGUNTAS FRECUENTES
   --------------------------------------------------------- */

.lista-faq {
    gap: 14px;
}

.faq-item {
    background: #ffffff;

    border:
        1px solid var(--publico-borde);

    border-radius: 12px;

    box-shadow:
        0 5px 18px rgba(47, 33, 29, 0.035);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.faq-item:hover {
    border-color: #d8cec8;

    box-shadow:
        0 8px 22px rgba(47, 33, 29, 0.06);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   QUITAR TRIÁNGULO PREDETERMINADO DE FAQ
   --------------------------------------------------------- */

.faq-item summary {
    position: relative;

    padding:
        20px
        64px
        20px
        22px;

    list-style: none;

    color: var(--publico-texto);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}


/* ---------------------------------------------------------
   BOTÓN + DE FAQ
   --------------------------------------------------------- */

.faq-item summary::after {
    content: "+";

    position: absolute;

    right: 20px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--publico-terracota-suave);

    color:
        var(--publico-terracota);

    font-size: 19px;
    font-weight: 500;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";

    background:
        var(--publico-terracota);

    color: #ffffff;
}

.faq-item[open] summary {
    color: #79493f;

    border-bottom:
        1px solid #eee7e3;
}

.faq-item p {
    color: var(--publico-texto-secundario);
}


/* ---------------------------------------------------------
   PEQUEÑA TRANSICIÓN DE LINKS
   --------------------------------------------------------- */

.tarjeta-enlace,
.menu-publico a {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* ---------------------------------------------------------
   SELECCIÓN DE TEXTO
   --------------------------------------------------------- */

::selection {
    background: #dcc3bb;
    color: #2f211d;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .hero-publico::before {
        width: 250px;
        height: 250px;

        top: -150px;
        left: -110px;
    }

    .hero-publico::after {
        display: none;
    }

}


@media (max-width: 650px) {

    .grid-tarjetas-dos {
        gap: 18px;
    }

    .grid-tarjetas-dos .tarjeta-icono {
        width: 52px;
        height: 52px;

        border-radius: 14px;
    }

    .faq-item summary {
        padding:
            18px
            58px
            18px
            18px;
    }

    .faq-item summary::after {
        right: 15px;

        width: 28px;
        height: 28px;
    }

}
/* =========================================================
   37. DECORACIÓN DE FONDO - INICIO PÚBLICO
   ========================================================= */

/* Las dos secciones podrán tener figuras decorativas */
.seccion:has(.grid-tarjetas-dos),
.seccion:has(.lista-faq) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Mantiene el contenido por encima de las figuras */
.seccion:has(.grid-tarjetas-dos) > .contenedor,
.seccion:has(.lista-faq) > .contenedor {
    position: relative;
    z-index: 2;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.seccion:has(.grid-tarjetas-dos) {
    background:
        radial-gradient(
            circle at 5% 20%,
            rgba(154, 95, 80, 0.08) 0,
            rgba(154, 95, 80, 0.08) 80px,
            transparent 81px
        ),
        radial-gradient(
            circle at 94% 72%,
            rgba(96, 124, 132, 0.08) 0,
            rgba(96, 124, 132, 0.08) 105px,
            transparent 106px
        ),
        #fbfaf8;
}

/* Aro terracota grande */
.seccion:has(.grid-tarjetas-dos)::before {
    content: "";

    position: absolute;

    width: 310px;
    height: 310px;

    left: -165px;
    top: 70px;

    border-radius: 50%;

    border: 45px solid rgba(154, 95, 80, 0.055);

    z-index: 0;

    pointer-events: none;
}

/* Aro azul grisáceo */
.seccion:has(.grid-tarjetas-dos)::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    right: -210px;
    bottom: -170px;

    border-radius: 50%;

    border: 58px solid rgba(96, 124, 132, 0.055);

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */

.seccion:has(.lista-faq) {
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(154, 95, 80, 0.06) 0,
            rgba(154, 95, 80, 0.06) 65px,
            transparent 66px
        ),
        radial-gradient(
            circle at 12% 82%,
            rgba(96, 124, 132, 0.065) 0,
            rgba(96, 124, 132, 0.065) 90px,
            transparent 91px
        ),
        #f8f5f2;
}

/* Círculo suave superior derecho */
.seccion:has(.lista-faq)::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -125px;
    top: -65px;

    border-radius: 50%;

    background:
        rgba(154, 95, 80, 0.045);

    z-index: 0;

    pointer-events: none;
}

/* Aro inferior izquierdo */
.seccion:has(.lista-faq)::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    left: -190px;
    bottom: -185px;

    border-radius: 50%;

    border:
        52px solid rgba(96, 124, 132, 0.05);

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   PEQUEÑOS DETALLES EN LAS TARJETAS
   ========================================================= */

.grid-tarjetas-dos .tarjeta {
    backdrop-filter: blur(2px);
}

.grid-tarjetas-dos .tarjeta:nth-child(1) {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffffff 77%,
            #fbf4f1 100%
        );
}

.grid-tarjetas-dos .tarjeta:nth-child(2) {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffffff 77%,
            #f2f7f8 100%
        );
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .seccion:has(.grid-tarjetas-dos)::before {
        width: 220px;
        height: 220px;

        left: -150px;

        border-width: 35px;
    }

    .seccion:has(.grid-tarjetas-dos)::after {
        width: 260px;
        height: 260px;

        right: -180px;

        border-width: 40px;
    }

    .seccion:has(.lista-faq)::before {
        width: 190px;
        height: 190px;

        right: -120px;
    }

    .seccion:has(.lista-faq)::after {
        width: 230px;
        height: 230px;

        left: -160px;

        border-width: 38px;
    }
}
/* =========================================================
   38. BLOQUE VISUAL DE SERVICIOS
   ========================================================= */

.seccion-servicios-visual {
    position: relative;
}

.servicios-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.servicio-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    border: 1px solid transparent;
}

.chip-terracota {
    background: #f4eae6;
    color: #8b5648;
    border-color: #ead7d0;
}

.chip-azul {
    background: #edf2f3;
    color: #5e7880;
    border-color: #dce7ea;
}

.chip-salvia {
    background: #eef2ec;
    color: #6f806a;
    border-color: #dde6d8;
}


/* Panel general detrás de las tarjetas */
.servicios-panel {
    position: relative;
    margin-top: 28px;
    padding: 34px;
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            rgba(244, 234, 230, 0.50) 0%,
            rgba(255, 255, 255, 0.92) 35%,
            rgba(237, 242, 243, 0.52) 100%
        );
    border: 1px solid #ebe3de;
    box-shadow: 0 12px 35px rgba(47, 33, 29, 0.06);
    overflow: hidden;
}

/* Figura decorativa */
.servicios-panel::before {
    content: "";

    position: absolute;
    width: 240px;
    height: 240px;
    top: -90px;
    right: -70px;

    border-radius: 50%;
    background: rgba(154, 95, 80, 0.07);
    z-index: 0;
}

/* Figura decorativa */
.servicios-panel::after {
    content: "";

    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -110px;
    left: -80px;

    border-radius: 50%;
    border: 36px solid rgba(96, 124, 132, 0.08);
    z-index: 0;
}

.servicios-panel .grid-tarjetas-dos,
.servicios-franja {
    position: relative;
    z-index: 2;
}


/* Espaciado interno de tarjetas en este panel */
.servicios-panel .grid-tarjetas-dos {
    margin-bottom: 22px;
}


/* Franja inferior */
.servicios-franja {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.servicios-franja-item {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 54px;
    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e8dfd9;
    border-radius: 14px;

    color: #5f5a57;
    font-size: 13px;
    font-weight: 500;

    box-shadow: 0 5px 14px rgba(47, 33, 29, 0.04);
}

.servicios-franja-item i {
    font-size: 15px;
    color: #8b5648;
}


/* Responsive */
@media (max-width: 900px) {
    .servicios-franja {
        grid-template-columns: 1fr;
    }

    .servicios-panel {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .servicios-chips {
        gap: 8px;
    }

    .servicio-chip {
        font-size: 12px;
        padding: 8px 12px;
    }

    .servicios-panel {
        padding: 18px;
        border-radius: 22px;
    }
}