.presentacion {
    position: relative;
    z-index: 2;
    width: min(100%, 900px);
    max-width: 100%;
    padding-inline: 8px;
}

.presentacion h1 {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow: visible;
}

.letra-i {
    position: relative;
    display: inline-block;
    isolation: isolate;
    overflow: visible;
}

.letra-i::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.31em;
    z-index: 3;
    width: 0.16em;
    height: 0.29em;
    border-radius: 60% 40% 62% 38% / 68% 60% 40% 32%;
    background:
        radial-gradient(circle at 50% 72%, rgba(255, 255, 235, 0.98) 0 15%, transparent 16%),
        linear-gradient(
            to top,
            #ff6a00 0%,
            #ff9d2d 38%,
            #ffd277 68%,
            #fff7d6 100%
        );
    box-shadow:
        0 0 0.08em rgba(255, 247, 214, 0.98),
        0 0 0.18em rgba(255, 195, 91, 0.78),
        0 0 0.36em rgba(255, 129, 35, 0.48);
    transform: translateX(-50%) rotate(-3deg) scaleY(0.96);
    transform-origin: 50% 100%;
    pointer-events: none;
    animation: llama-dipaga 2.9s ease-in-out infinite;
}

.letra-i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.38em;
    z-index: 2;
    width: 0.46em;
    height: 0.46em;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 247, 218, 0.76) 0%,
        rgba(255, 206, 111, 0.42) 34%,
        rgba(255, 143, 45, 0.14) 62%,
        rgba(255, 143, 45, 0) 78%
    );
    filter: blur(0.035em);
    transform: translateX(-50%) scale(0.94);
    pointer-events: none;
    animation: halo-dipaga 2.9s ease-in-out infinite;
}

@keyframes llama-dipaga {
    0%, 100% {
        opacity: 0.88;
        transform: translateX(-50%) rotate(-4deg) scaleX(0.94) scaleY(0.92);
    }

    28% {
        transform: translateX(-50%) rotate(2deg) scaleX(1.03) scaleY(1.08);
    }

    55% {
        opacity: 1;
        transform: translateX(-50%) rotate(-1deg) scaleX(0.98) scaleY(1.15);
    }

    78% {
        transform: translateX(-50%) rotate(3deg) scaleX(1.04) scaleY(1.02);
    }
}

@keyframes halo-dipaga {
    0%, 100% {
        opacity: 0.64;
        transform: translateX(-50%) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.12);
    }
}

.firma-web {
    position: fixed;
    left: 50%;
    bottom: 15px;
    z-index: 30;
    transform: translateX(-50%);
    pointer-events: none;
}

.firma-contenido {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 242px;
    padding: 9px 16px 9px 10px;
    color: #f4f0e6;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 2px,
            rgba(0, 0, 0, 0.04) 2px,
            rgba(0, 0, 0, 0.04) 6px
        ),
        linear-gradient(135deg, rgba(63, 57, 45, 0.94), rgba(18, 17, 14, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(7px);
}

.firma-logo {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: visible;
    color: #f4f0e6;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 185, 82, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(76, 68, 53, 0.98), rgba(20, 18, 15, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.3),
        inset 0 1px rgba(255, 255, 255, 0.09);
}

.firma-logo::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 213, 130, 0.28);
    border-radius: 9px;
    transform: rotate(45deg);
}

.firma-monograma {
    position: relative;
    z-index: 2;
    margin: 3px 0 0 -1px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 186, 83, 0.25);
}

.firma-llama {
    position: absolute;
    top: 3px;
    right: 6px;
    z-index: 3;
    width: 8px;
    height: 13px;
    border-radius: 60% 40% 60% 40% / 72% 62% 38% 28%;
    background: linear-gradient(to top, #ff6b00, #ffb13b 55%, #fff2bd 100%);
    box-shadow:
        0 0 5px rgba(255, 222, 145, 0.88),
        0 0 11px rgba(255, 142, 39, 0.46);
    transform-origin: 50% 100%;
    animation: firma-llama 2.6s ease-in-out infinite;
}

@keyframes firma-llama {
    0%, 100% {
        transform: rotate(-5deg) scaleY(0.92);
    }

    50% {
        transform: rotate(4deg) scaleY(1.12);
    }
}

.firma-texto {
    display: block;
    line-height: 1.08;
    text-align: left;
}

.firma-texto strong {
    display: block;
    color: #f4f0e6;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.145em;
    text-transform: uppercase;
}

.firma-texto span {
    display: block;
    margin-top: 4px;
    color: rgba(244, 240, 230, 0.62);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

@media (max-width: 900px) and (orientation: portrait) {
    .inicio-principal,
    .presentacion,
    .presentacion h1,
    .letra-i {
        overflow: visible !important;
    }

    .presentacion {
        width: 100%;
        max-width: 100%;
        padding: 0.42em 14px 0;
    }

    .presentacion h1 {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0;
        font-size: clamp(2.2rem, 12.6vw, 3.95rem) !important;
        line-height: 0.95 !important;
        letter-spacing: 0 !important;
        text-align: center;
        white-space: nowrap;
        transform: scaleX(0.94);
        transform-origin: center;
    }

    .letra-i::before,
    .letra-i::after {
        display: block !important;
        visibility: visible !important;
    }

    .firma-web {
        bottom: 10px;
        width: calc(100% - 22px);
        max-width: 300px;
    }

    .firma-contenido {
        width: 100%;
        min-width: 0;
        justify-content: center;
        gap: 10px;
        padding: 8px 12px 8px 9px;
    }

    .firma-logo {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .firma-logo::before {
        inset: 6px;
        border-radius: 8px;
    }

    .firma-monograma {
        font-size: 1.15rem;
    }

    .firma-llama {
        top: 2px;
        right: 5px;
        width: 7px;
        height: 11px;
    }

    .firma-texto strong {
        font-size: 0.66rem;
        letter-spacing: 0.11em;
    }

    .firma-texto span {
        font-size: 0.5rem;
        letter-spacing: 0.07em;
    }
}

@media (max-width: 360px) and (orientation: portrait) {
    .presentacion h1 {
        font-size: clamp(2rem, 11.9vw, 3rem) !important;
        transform: scaleX(0.92);
    }

    .firma-web {
        max-width: 282px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .letra-i::before,
    .letra-i::after,
    .firma-llama {
        animation: none;
    }
}
