/* Start custom CSS for html, class: .elementor-element-67bcfed *//* =============================
   HERO BASE
============================= */
.hero-pecado {
    padding: 120px 20px 100px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 70%, #f1e9ef 100%);
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

/* =============================
   TÍTULO — ANIMACIÓN SEGURA
============================= */
/* =============================
   TÍTULO — ANIMACIÓN EXTREMA
   REPETIDA COMO EN EL VIDEO
============================= */

.pecado-title {
    font-size: 3.4rem;
    font-weight: 900;
    color: #000;
    margin: 0;
    animation: titleLoop 1.2s ease-in-out forwards;
    animation-iteration-count: 3; /* 🔥 Se repite 3 veces */
}

/* EXACTO: sólido → contorno → sólido + BOOM FUERTE */
@keyframes titleLoop {
    0%   { opacity: 1; transform: scale(0.65); color:#000; }
    20%  { transform: scale(1.30); color:#000; }   /* BOOM fuerte */
    40%  { 
    color: transparent;
    -webkit-text-stroke: 3px #000;
    text-shadow: 
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000;
}
 /* Contorno grande */
    60%  { transform: scale(0.85); } /* Rebote hacia abajo */
    80%  { color: #000; -webkit-text-stroke: 0; transform: scale(1.18); } /* Regresa sólido */
    100% { transform: scale(1); color:#000; }
}


/* =============================
   BARRA NEGRA
============================= */
.pecado-bar {
    margin: 20px auto 40px;
    background: #f39c12;
    color: #fff;
    padding: 12px 26px;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    transform: translateY(20px);
    animation: barRise 0.6s ease forwards 0.5s;
}

@keyframes barRise {
    0% { transform: translateY(20px); }
    100% { transform: translateY(0); }
}

/* =============================
   OPCIONES — BOOM EFECTO
============================= */
.pecado-options {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pecado-item { display: inline-block; }

/* BOOM SEGURO SIN OCULTAR */
.pecado-img {
    width: 170px;
    transform: scale(0.7);
    animation: boomIn 0.7s cubic-bezier(.26,.84,.48,1.12) forwards;
}

/* Hamburguesa aparece primero */
.pecado-item:nth-child(1) .pecado-img {
    animation-delay: 0.9s;
}

/* Pizza después */
.pecado-item:nth-child(2) .pecado-img {
    animation-delay: 1.1s;
}

@keyframes boomIn {
    0% { transform: scale(0.4); }
    60% { transform: scale(1.25); }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Hover */
.pecado-img:hover {
    transform: scale(1.08);
    transition: 0.15s;
}

/* RESPONSIVE */
@media(max-width: 600px){
    .pecado-title { font-size: 2.5rem; }
    .pecado-img { width: 130px; }
}
/* ================================
   EFECTO MÁQUINA DE ESCRIBIR
================================ */

.pecado-title {
    font-size: 3.4rem;
    font-weight: 900;
    color: #000;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid #000; /* cursor de escritura */
    width: 0ch;
    animation: typing 1.3s steps(14) forwards,
               cursorBlink .4s step-end infinite;
}

/* Escribe la frase letra por letra */
@keyframes typing {
    0% { width: 0ch; }
    100% { width: 14ch; } /* 14 = número de caracteres */
}

/* Parpadeo del cursor */
@keyframes cursorBlink {
    0% { border-right-color: #000; }
    50% { border-right-color: transparent; }
    100% { border-right-color: #000; }
}

/* ================================
   DESPUÉS DEL TEXTO — ZOOM IN
================================ */

/* ZOOM FINAL DESPUÉS DE ESCRIBIR */
.pecado-title.finished {
    border-right: none;
    animation: zoomFinal .45s ease-out forwards;
}

/* Zoom elegante hacia adelante */
@keyframes zoomFinal {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}


@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.20); }
}

/* ================================
   CONTORNO + ZOOM OUT
================================ */

.pecado-title.outline {
    color: transparent;
    -webkit-text-stroke: 2px #000;
    text-shadow: 
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000;
    animation: zoomOut .4s ease forwards;
}

@keyframes zoomOut {
    0% { transform: scale(1.20); }
    100% { transform: scale(0.95); }
}
/* =============================
   AJUSTE PARA MÓVILES
============================= */
@media(max-width: 600px){

    .pecado-title {
        font-size: 1.8rem !important;
        width: 0ch;
    }

    /* Ajustamos zoom para que no se salga */
    .pecado-title.finished {
        transform: scale(1.10) !important;
    }

    .pecado-title.outline {
        transform: scale(0.90) !important;
    }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-e57a4be */.category-container {
    text-align: center;
    padding: 40px 20px;
}

.cat-title {
    font-size: 36px;
    font-weight: 900;
    animation: fadeUp 0.6s ease forwards;
}

.cat-sub {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease forwards;
}

.cat-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cat-card {
    width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: block;
}

.cat-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.cat-card h3 {
    font-size: 24px;
    margin-top: 15px;
    font-weight: 800;
}

.cat-card p {
    font-size: 15px;
    color: #666;
    margin: 10px 0 20px;
}

.cat-btn {
    font-weight: 700;
    color: black;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* EFECTO HOVER */
.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cat-card:hover img {
    transform: scale(1.05);
}

.cat-card:hover .cat-btn {
    color: #e63946; /* rojo fuerte estilo marca */
}

/* ANIMACIÓN */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}/* End custom CSS */