/* ESTILOS GENERALES */
.native-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    background-color: #000;
}

.native-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.play-overlay .play-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.play-overlay:hover .play-icon {
    opacity: 1;
}

.instructions-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.instructions-list-item .icon-wrapper {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background-color: var(--color-secondary);
    color: white;
}

.instructions-list-item .icon-wrapper i {
    color: inherit;
}

.step-header {
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase!important;
    text-align: left !important;
}

@media (min-width: 768px) {
    .step-subtitle {
        text-align: left;
    }
}

/* RESPUESTAS DE IA */
.ai-response {
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
}

.ai-response h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 20px;
    display: flex ;
    align-items Aligns flex items along the cross axis of the current line of the flex container. Learn more Don't show
: center;
    gap: 0.75rem;
    color: var(--color-primary);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}.ai-response p { margin-bottom: 1rem; line-height: 1.6; }
.action-plan-list { list-style: none; padding: 0; margin: 0; }
.action-plan-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; margin-top: 1rem; background-color: #f8fafc; border-radius: 0.5rem; border-left: 4px solid var(--color-secondary); }
.action-plan-item .icon-container { flex-shrink: 0; color: var(--color-secondary); }

/* GENERADOR DE ANUNCIOS */
.ad-result-wrapper { margin-bottom: 2.5rem; opacity: 0; transform: translateY(20px); animation: fadeIn20 0.6s ease-out forwards; } /* CORRECCIÓN: Animación renombrada */
.ad-title { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); text-transform: uppercase; border-bottom: 2px solid #e5e7eb; padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.ad-card { background-color: #ffffff; border-radius: 0.75rem; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ad-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.ad-card-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid #f3f4f6; background-color: #f8fafc; border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.ad-language-title { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.ad-card .copy-btn { background-color: var(--color-highlight); color: var(--color-primary); font-weight: 700; font-size: 0.875rem; padding: 0.5rem 1rem; border-radius: 0.5rem; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out; display: inline-flex; align-items: center; border: none; cursor: pointer; } /* OPTIMIZACIÓN: transition: all -> propiedades específicas */
.ad-card .copy-btn:hover { transform: scale(1.05); box-shadow: 0 4px 10px -2px rgba(255, 200, 87, 0.5); }
.ad-card .copy-btn.copied { background-color: #16a34a; color: white; }
.ad-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.ad-part { display: flex; flex-direction: column; gap: 0.5rem; }
.ad-part-title { font-weight: 700; color: var(--color-secondary); display: block; text-transform: uppercase; font-size: 0.9rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f3f4f6; margin-bottom: 0.5rem; }
.ad-part-title::before { font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 0.75rem; color: var(--color-secondary); }
.ad-part:nth-of-type(1) .ad-part-title::before { content: '\f0a1'; }
.ad-part:nth-of-type(2) .ad-part-title::before { content: '\f5d0'; }
.ad-part:nth-of-type(3) .ad-part-title::before { content: '\f1d8'; }
.ad-part p { color: var(--color-text-dark); line-height: 1.6; padding-left: 0.5rem; }

/* ASISTENTE DE VENTAS */
.client-message-card { background-color: #f8fafc; border-left: 5px solid var(--color-primary); padding: 1.5rem 2rem; border-radius: 0.5rem; box-shadow: 0 10px 20px -5px rgba(0,0,0,0.07); }
.client-message-card h3 { margin-top: 0; border: none; padding-bottom: 0; margin-bottom: 0.5rem; font-size: 1.2rem; }
.ai-explanation { font-style: italic; background-color: #fefce8; border-left: 4px solid var(--color-highlight); padding: 0.75rem 1rem; margin: 1rem 0; border-radius: 0.375rem; }
.ai-response h4 { font-size: 1rem; font-weight: 700; color: var(--color-text-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.ai-textarea { width: 100%; height: 12rem; padding: 1rem; background-color: #f8fafc; color: var(--color-text-dark); border-radius: 0.5rem; border: 1px solid #e2e8f0; line-height: 1.6; resize: none; font-family: inherit; box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05); }
.copy-btn-assistant { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0.6rem 1.2rem; margin-top: 0.75rem; background-color: var(--color-primary); color: white; font-weight: 600; border-radius: 0.5rem; border: none; cursor: pointer; transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; text-transform: uppercase; font-size: 0.9rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } /* OPTIMIZACIÓN: transition: all -> propiedades específicas */
.copy-btn-assistant:hover { background-color: #1a2b42; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.copy-btn-assistant.copied { background-color: #16a34a; color: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.copy-btn-assistant i { margin-right: 0.5rem; }

/* CORRECCIÓN: Animaciones renombradas para evitar conflictos */
@keyframes fadeIn10 { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn20 { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }


/* ASISTENTE DE CLIENTE IDEAL */
.ideal-client-profile-result { background-color: white; padding: 2.5rem 3rem; border-radius: 1rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); border-top: 6px solid var(--color-secondary); animation: fadeIn10 0.5s ease-out; } /* CORRECCIÓN: Animación renombrada */
.profile-main-title { font-size: 2rem; font-weight: 800; text-align: center; color: var(--color-primary); margin-bottom: 2rem; line-height: 1.2; }
.profile-section-title { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0; }
.profile-section-title .fas { color: var(--color-secondary); }
.profile-section-title .fa-star, .profile-section-title .fa-lightbulb { color: var(--color-highlight) !important; }
.profile-content-text { color: #4b5563; line-height: 1.7; padding-left: 2.25rem; }
.marketing-phrase-box { background-color: #f8fafc; border-left: 4px solid var(--color-highlight); padding: 1.5rem; border-radius: 0.5rem; margin-top: 1.5rem; }
.marketing-phrase-box .profile-section-title { border-bottom: none; margin-bottom: 0.5rem; padding-bottom: 0; }
.marketing-phrase-box .profile-content-text { font-size: 1.1rem; font-weight: 500; color: var(--color-text-dark); padding-left: 2.25rem; font-style: italic; }
.suggestions-list { list-style: none; padding-left: 2.25rem; margin-top: 1rem; line-height: 1.6; color: #4b5563; }
.suggestions-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
.suggestions-list li::before { content: '\f058'; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--color-secondary); position: absolute; left: 0; top: 0.1em; font-size: 1.2em; }
.copy-summary-textarea { width: 100%; height: 12rem; padding: 1rem; background-color: #f0f4f8; color: var(--color-text-dark); border-radius: 0.5rem; border: 1px solid #dbe2ea; line-height: 1.7; resize: vertical; font-family: 'Barlow', sans-serif; font-size: 1rem; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.copy-btn-summary { position: absolute; top: 0.75rem; right: 0.75rem; background-color: var(--color-secondary); color: white; font-weight: 600; font-size: 0.8rem; padding: 0.5rem 0.8rem; border-radius: 0.375rem; transition: background-color 0.2s ease, transform 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem; border: none; cursor: pointer; } /* OPTIMIZACIÓN: transition: all -> propiedades específicas */
.copy-btn-summary:hover { background-color: var(--color-primary); transform: scale(1.05); }
.copy-btn-summary.copied { background-color: #16a34a !important; }


/* GENERADOR DE RESPUESTAS PARA MESSENGER */
#result-container { opacity: 0; transform: scale(0.95); animation: scaleIn 0.5s ease-out forwards; } /* CORRECCIÓN: Animación renombrada */
.ai-response h3.ad-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem; color: var(--color-primary); border-bottom: 2px solid #e5e7eb; padding-bottom: 0.5rem; text-transform: uppercase; }
.ai-response .section-subtitle { font-size: 0.95rem; font-weight: 500; color: #4a5568; margin-top: 0.25rem; margin-bottom: 1rem; line-height: 1.3; }
.result-card { border-bottom: 1px solid #e2e8f0; padding-bottom: 2rem; }
.result-card:last-child { border-bottom: none; padding-bottom: 0; }
.ad-card { background-color: #f8fafc; border: 1px solid #e2e8eb; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); }
.ad-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed #cbd5e1; }
.ad-language-title { font-size: 1.125rem; font-weight: 700; color: var(--color-text-dark); }
.copy-btn { background-color: var(--color-secondary); color: white; font-weight: bold; font-size: 0.75rem; padding: 0.35rem 0.75rem; border-radius: 0.375rem; transition: background-color 0.2s ease, transform 0.2s ease; display: inline-flex; align-items: center; gap: 0.25rem; } /* OPTIMIZACIÓN: transition: all -> propiedades específicas */
.copy-btn:hover { background-color: #7c1020; transform: translateY(-1px); }
.copy-btn.copied { background-color: #10b981; }
.ad-part { margin-bottom: 1rem; }
.ad-part-title { font-weight: 600; color: var(--color-primary); display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.ad-card textarea, .ad-card input[type="text"] { background-color: #eef2f6; border: 1px solid #cbd5e1; color: #1e293b; border-radius: 0.5rem; padding: 0.75rem 4.5rem 0.75rem 0.75rem; line-height: 1.5; box-sizing: border-box; }
.messenger-result-title { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; display: flex; align-items: center; }
.messenger-result-description { font-size: 0.95rem; color: #6b7280; margin-bottom: 1.5rem; }
.messenger-label { font-size: 0.9rem; font-weight: 600; color: var(--color-text-dark); margin-bottom: 0.5rem; display: block; }
.copy-input-wrapper { position: relative; }
.copy-input-btn { position: absolute; top: 0.5rem; right: 0.75rem; background-color: var(--color-secondary); color: white; font-weight: bold; font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 0.375rem; transition: background-color 0.2s ease, transform 0.2s ease; display: inline-flex; align-items: center; gap: 0.25rem; z-index: 10; } /* OPTIMIZACIÓN: transition: all -> propiedades específicas */
.copy-input-btn:hover { background-color: #7c1020; transform: scale(1.02); }
.copy-input-btn.copied { background-color: #10b981; }
@media (min-width: 768px) { .ai-response h3.ad-title { justify-content: flex-start; } }

/* GENERADOR DE HOOKS */
.hook-card { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 1.25rem 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease, box-shadow 0.2s ease; min-height: 120px; }
.hook-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.hook-content { margin-bottom: 1rem; flex-grow: 1; }
.hook-content p { line-height: 1.4; margin-bottom: 0.5rem; font-size: 1.05rem; }
.hook-content p:last-child { margin-bottom: 0; }
.hook-content .font-bold { color: var(--color-primary); font-weight: 700; }
.hook-content .font-normal { color: #4b5563; font-weight: 500; }
.hook-content span.mr-2 { font-size: 0.9em; vertical-align: middle; }
.copy-hook-btn { background-color: var(--color-highlight); color: var(--color-primary); font-weight: 700; font-size: 0.875rem; padding: 0.6rem 1.2rem; border-radius: 0.5rem; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; border: none; cursor: pointer; align-self: flex-end; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } /* OPTIMIZACIÓN: transition: all -> propiedades específicas */
.copy-hook-btn:hover { background-color: white; color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(255, 200, 87, 0.3), 0 4px 6px -2px rgba(255, 200, 87, 0.1); }
.copy-hook-btn.copied { background-color: #16a34a; color: white; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Asegúrate de que esta clase esté definida así en tools.css */
.review-response-textarea {
    width: 100%;
    height: auto; /* Importante para que el JS pueda ajustarlo */
    min-height: 80px; /* Altura mínima para que no se vea vacío */
    padding: 1rem;
    background-color: #f8fafc;
    color: var(--color-text-dark);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    resize: none; /* Esto quita el control de redimensionamiento manual */
    overflow: hidden; /* Esto oculta las barras de desplazamiento si el contenido excede */
    font-family: inherit;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05);
    box-sizing: border-box; /* Añadido para el cálculo de altura */
}

/* Añade esta clase al final de tools.css */
.first-contact-message-textarea {
    width: 100%;
    height: auto;
    min-height: 80px; /* Altura mínima */
    padding: 1rem;
    background-color: #f8fafc;
    color: var(--color-text-dark);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    resize: none;
    overflow: hidden;
    font-family: inherit;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* Estilos específicos para el botón de analizar resultados */
#generateBtn {
    /* Estas propiedades ya están mayormente cubiertas por las clases de Tailwind en el HTML,
       pero puedes usarlas para sobrescribir o añadir control fino. */
    /* background-color: var(--color-highlight);  Ya en Tailwind */
    /* color: var(--color-text-dark);  Ya en Tailwind */
    /* padding: 8px 16px;  Ya en Tailwind (py-2 px-4) */
    /* font-size: 16px;  Ya en Tailwind (text-base) */
    /* border-radius: 6px;  Ya en Tailwind (rounded-md) */
    
    /* Si quieres una sombra más pronunciada o específica, puedes añadir esto: */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15), /* Sombra normal */
                0px 1px 3px rgba(0, 0, 0, 0.08); /* Sombra adicional para profundidad */
    /* O una sombra más fuerte como las de algunos botones planos: */
    /* box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1); */ /* Esto es un ejemplo, puede no ser lo que buscas */
}

#generateBtn:hover {
    /* Mantén tus transiciones de Tailwind o añade más aquí */
    /* transform: scale(1.05);  Ya en Tailwind */
    /* box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);  Sombra más grande al pasar el ratón */
}

/* Ajuste del tamaño del icono si es necesario con CSS */
#generateBtn i.fas {
    font-size: 1.1rem; /* Puedes ajustar este tamaño si el icono se ve muy grande o pequeño */
}