/* ===== CONTACTO PAGE - CHAT CON ZORRITO ===== */

/* Contenedor del chat */
.fox-chat-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 32px;
    overflow: hidden;
}

/* Zorrito en la esquina - MOVIDO A LA IZQUIERDA */
.fox-mascot-corner {
    position: absolute;
    top: 60px;
    left: 20px;
    width: 70px;
    height: 90px;
    z-index: 10;
    animation: foxFloat 3s ease-in-out infinite;
}

@keyframes foxFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* Cuerpo del zorrito */
.fox-mascot-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 55px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border-radius: 22px 22px 18px 18px;
}

.fox-mascot-belly {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 30px;
    background: white;
    border-radius: 12px;
}

/* Cabeza */
.fox-mascot-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 45px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border-radius: 27px 27px 22px 22px;
    animation: foxHeadWiggle 2s ease-in-out infinite;
}

@keyframes foxHeadWiggle {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
}

/* Orejas */
.fox-mascot-ear {
    position: absolute;
    top: -10px;
    width: 16px;
    height: 22px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border-radius: 50% 50% 0 0;
}

.fox-mascot-ear::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: #ffb4a2;
    border-radius: 50% 50% 0 0;
}

.fox-mascot-ear--left {
    left: 6px;
    transform: rotate(-10deg);
}

.fox-mascot-ear--right {
    right: 6px;
    transform: rotate(10deg);
}

/* Cara */
.fox-mascot-face {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 24px;
    background: white;
    border-radius: 15px;
}

/* Ojos */
.fox-mascot-eyes {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.fox-mascot-eye {
    width: 8px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    animation: foxBlink 3s infinite;
}

@keyframes foxBlink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

/* Nariz */
.fox-mascot-nose {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 50%;
}

/* Sonrisa */
.fox-mascot-smile {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 5px;
    border-bottom: 2px solid #1a1a1a;
    border-radius: 0 0 50% 50%;
}

/* Mano saludando */
.fox-mascot-hand {
    position: absolute;
    top: 28px;
    right: -3px;
    width: 12px;
    height: 16px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border-radius: 50%;
    animation: foxWave 1.5s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes foxWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
}

/* Cola */
.fox-mascot-tail {
    position: absolute;
    bottom: 8px;
    left: -8px;
    width: 20px;
    height: 28px;
    background: linear-gradient(135deg, #ff8c42 0%, #e85d04 100%);
    border-radius: 0 50% 50% 0;
    transform: rotate(-20deg);
    animation: foxTailWag 2s ease-in-out infinite;
}

.fox-mascot-tail::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 2px;
    width: 8px;
    height: 12px;
    background: white;
    border-radius: 0 50% 50% 0;
}

@keyframes foxTailWag {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-35deg); }
}

/* ===== CHAT INTERFACE ===== */
.fox-chat-interface {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}

/* Header del chat */
.fox-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(30, 30, 30, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fox-chat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.fox-chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #25d366;
}

.fox-chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
}

/* Área de mensajes */
.fox-chat-messages {
    flex: 1;
    padding: 20px 20px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

/* Burbujas de mensaje - ANIMACIÓN MÁS LENTA */
.fox-chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    animation: bubbleAppear 12s infinite;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fox-chat-bubble--in {
    background: #2a2a2a;
    color: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.fox-chat-bubble--out {
    background: #de5305;
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Timing de aparición - MÁS LENTO PARA LEER */
.fox-chat-bubble:nth-child(1) { animation-delay: 0.5s; }
.fox-chat-bubble:nth-child(2) { animation-delay: 3s; }
.fox-chat-bubble:nth-child(3) { animation-delay: 6s; }
.fox-chat-bubble:nth-child(4) { animation-delay: 9s; }

@keyframes bubbleAppear {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    5%, 22% { opacity: 1; transform: translateY(0) scale(1); }
    25%, 100% { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

/* Indicador de escritura */
.fox-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    align-self: flex-start;
    width: fit-content;
    opacity: 0;
    animation: typingAppear 12s infinite;
    animation-delay: 11s;
}

@keyframes typingAppear {
    0%, 100% { opacity: 0; }
    5%, 15% { opacity: 1; }
    20% { opacity: 0; }
}

.fox-chat-typing span {
    width: 6px;
    height: 6px;
    background: var(--gray-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.fox-chat-typing span:nth-child(1) { animation-delay: -0.32s; }
.fox-chat-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Aumentar espacio entre descripción y botones en las tarjetas de contacto */
.process__step-desc {
    margin-bottom: 28px !important;
}

/* Iconos de contacto - Diseño tipo process steps */
.contact-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.contact-option {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.contact-option:hover {
    border-color: rgba(222, 83, 5, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-8px);
}

.contact-option__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--darker);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(222, 83, 5, 0.2), inset 0 0 20px rgba(222, 83, 5, 0.05);
}

.contact-option__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.contact-option__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.contact-option__desc {
    font-size: 0.95rem;
    color: var(--gray-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1100px) {
    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-options {
        grid-template-columns: 1fr;
    }
}

/* ===== CTA BOX CON IMAGEN - Estilo desarrollo-web ===== */
.cta-box--with-image {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, rgba(222, 83, 5, 0.15) 0%, rgba(128, 78, 15, 0.1) 100%);
    border: 1px solid rgba(222, 83, 5, 0.2);
    border-radius: 24px;
    padding: 60px;
    text-align: left;
}

/* Imagen del Bot */
.cta-box__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-box__image-placeholder {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(222, 83, 5, 0.1) 0%, rgba(222, 83, 5, 0.05) 100%);
    border: 2px dashed rgba(222, 83, 5, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.cta-box__image-placeholder span {
    font-size: 5rem;
    margin-bottom: 10px;
}

.cta-box__image-placeholder p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Contenido del CTA */
.cta-box__content {
    text-align: left;
}

.cta-box__content .section-badge {
    margin-bottom: 20px;
}

.cta-box__content .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 20px;
}

.cta-box__content .section-desc {
    font-size: 1.1rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Botones */
.cta-box__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .cta-box--with-image {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .cta-box__content {
        text-align: center;
    }
    
    .cta-box__buttons {
        justify-content: center;
    }
}
