/* ESTILOS GENERALES */
.native-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    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;
}

/* CORREGIDO: Se eliminó texto extra y se formateó correctamente */
.ai-response h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

/* CORREGIDO: Se formateó correctamente en su propia regla */
.ai-response p {
    margin-bottom: 0rem;
    line-height: 1.5;
}

.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;
}

.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;
}

.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);
}

.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;
}

/* Animaciones */
@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;
}

.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;
}

.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;
}

.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;
}

#result-container .ad-card { /* Selector más específico */
    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);
}

#result-container .ad-card-header { /* Selector más específico */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #cbd5e1;
}

#result-container .ad-language-title { /* Selector más específico */
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

#result-container .copy-btn { /* Selector más específico */
    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;
}

#result-container .copy-btn:hover { /* Selector más específico */
    background-color: #7c1020;
    transform: translateY(-1px);
}

#result-container .copy-btn.copied { /* Selector más específico */
    background-color: #10b981;
}

#result-container .ad-part { /* Selector más específico */
    margin-bottom: 1rem;
}

#result-container .ad-part-title { /* Selector más específico */
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#result-container .ad-card textarea,
#result-container .ad-card input[type="text"] { /* Selector más específico */
    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;
    width: 100%; /* Asegurar ancho completo */
}

.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;
}

.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);
}

.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);
}

/* TEXTAREAS AUTO-AJUSTABLES */
.review-response-textarea,
.first-contact-message-textarea {
    width: 100%;
    height: auto;
    min-height: 80px;
    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;
}

/* BOTÓN DE GENERAR */
#generateBtn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#generateBtn i.fas {
    font-size: 1.1rem;
}

/* TÍTULOS DE PASOS */
.step-header h2 {
    display: flex; /* Añadido para que flex-direction funcione */
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.step-header .step-number {
    font-size: 1.25rem;
    font-weight: 900;
    margin-right: 0;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.step-header .step-number i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.step-header .step-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
}

@media (min-width: 768px) {
    .step-header h2 {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .step-header .step-number {
        font-size: 1.5rem;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }

    .step-header .step-number i {
        font-size: 1.8rem;
    }

    .step-header .step-title {
        font-size: 1.5rem;
        width: auto;
    }
}

/* FORMULARIOS */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #374151;
    font-size: 1.1rem;
    text-transform: capitalize;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #1f2937;
    background-color: #f9fafb;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.25);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.char-count {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.25rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* RESULTADOS ESTRATÉGICOS */
#strategic-results .ai-response { /* Selector más específico */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.message-box {
    background-color: #f0f4f8;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    min-height: 80px;
    color: #2a3d4f;
}

.proposal-option-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.proposal-option-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn-wrapper {
    text-align: right;
    margin-top: 1rem;
}

/* ESTILO UNIFICADO PARA BOTONES DE COPIAR */
.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: var(--color-secondary);
    color: white;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.btn-copy.copied {
    background-color: #16a34a;
    color: white;
    transform: translateY(0);
}

.btn-copy i {
    width: 1rem;
    height: 1rem;
}