/* B2D.top - Business to the TOP - Estilos Completos */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --secondary: #004E89;
    --secondary-dark: #003A66;
    --accent: #FFB627;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

/* ===================  HEADER =================== */
header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.8;
}

/* ===================  HERO =================== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-top {
    color: var(--accent);
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    min-height: 2.5rem;
}

.hero-animated-text {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    border-right: 3px solid var(--accent);
    padding-right: 5px;
    animation: blink 0.7s infinite;
    min-width: 300px;
    text-align: left;
}

@keyframes blink {
    0%, 50% {
        border-color: var(--accent);
    }
    51%, 100% {
        border-color: transparent;
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================  CONTAINER =================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* ===================  BUTTONS =================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary {
    background: var(--primary);
}

.btn-secondary {
    background: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ===================  TOOLS GRID =================== */
.tools-section {
    padding: 4rem 0;
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tool-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-card .btn {
    margin-top: auto;
}

/* ===================  TOOL PAGE =================== */
.tool-page {
    max-width: 900px;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tool-description {
    font-size: 1.2rem;
    color: var(--text-light);
}

.tool-content {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.tool-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.tool-info ul {
    list-style: none;
    padding-left: 0;
}

.tool-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tool-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ===================  FORMS =================== */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===================  CALCULADORA =================== */
.resultado-calculadora {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.resultado-header h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.metricas-clave {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metrica {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border);
}

.metrica h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.metrica .valor {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.metrica .porcentaje {
    font-size: 1rem;
    color: var(--secondary);
}

.proyecciones-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.proyecciones-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.proyecciones-table th,
.proyecciones-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.proyecciones-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.proyecciones-table tr:hover {
    background: var(--bg-light);
}

.positivo {
    color: var(--success) !important;
    font-weight: 600;
}

.negativo {
    color: var(--error) !important;
    font-weight: 600;
}

.acciones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===================  CANVAS =================== */
.canvas-info-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.canvas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.canvas-block {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.canvas-block:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.canvas-block h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.canvas-block .block-help {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.canvas-block textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.canvas-block-highlight {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 78, 137, 0.05) 100%);
    border-color: var(--primary);
}

.canvas-block-cost {
    border-color: var(--error);
}

.canvas-block-revenue {
    border-color: var(--secondary);
}

.canvas-header-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.canvas-actions {
    text-align: center;
    margin-top: 2rem;
}

/* ===================  NOMBRES GENERATOR =================== */
.keyword-input {
    margin-bottom: 0.5rem;
}

.nombres-header {
    text-align: center;
    margin-bottom: 2rem;
}

.nombres-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.nombres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.nombre-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nombre-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.nombre-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.nombre-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-check, .btn-copy {
    padding: 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-check:hover, .btn-copy:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.acciones-nombres {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ===================  CHECKLISTS =================== */
.featured-checklists {
    margin-bottom: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-checklist-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.featured-checklist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.featured-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-checklist-card h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.featured-checklist-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.featured-checklist-card .btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.95rem;
}

.checklists-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checklist-container {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.checklist-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checklist-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.checklist-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.checklist-actions {
    display: flex;
    gap: 0.5rem;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 6px;
    transition: all 0.3s;
}

.checklist-item:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.checklist-item label {
    flex-grow: 1;
    cursor: pointer;
    font-size: 0.95rem;
}

.checklist-item input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    opacity: 0.6;
}

.completed-animation {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); background: var(--secondary); }
}

.completion-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.completion-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    animation: scaleIn 0.3s ease;
}

.completion-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===================  BENEFITS =================== */
.why-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.why-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.benefit:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.benefit p {
    color: var(--text-light);
}

/* ===================  FOOTER =================== */
footer {
    background: var(--text);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* ===================  RESPONSIVE =================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .canvas-grid {
        grid-template-columns: 1fr;
    }
    
    .canvas-header-info {
        grid-template-columns: 1fr;
    }
    
    .nombres-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .metricas-clave {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ===================  PRINT =================== */
@media print {
    header, footer, .btn, .checklist-actions, .canvas-info-bar {
        display: none;
    }
    
    body {
        font-size: 11pt;
        color: #000;
    }
    
    .tool-card, .checklist-container {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}

/* =================== ESTILOS PARA GUÍAS - CAJAS ESPECIALES =================== */
.guide-content .info-box {
    background: rgba(0, 78, 137, 0.05);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.guide-content .info-box.success {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: var(--success);
}

.guide-content .warning-box {
    background: rgba(255, 182, 39, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.guide-content .info-box h4,
.guide-content .warning-box h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.guide-content .cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.guide-content .cost-table thead {
    background: var(--secondary);
    color: white;
}

.guide-content .cost-table th,
.guide-content .cost-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.guide-content .cost-table tbody tr:hover {
    background: var(--bg-light);
}

.guide-content .cost-table .total-row {
    background: rgba(255, 107, 53, 0.1);
    font-weight: 600;
}

.guide-content .checklist {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.guide-content .task-list {
    list-style: none;
    padding-left: 0;
}

.guide-content .task-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

.guide-content .cta-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 78, 137, 0.1) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid var(--primary);
}

.guide-content .cta-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.guide-content .cta-box ul {
    list-style: none;
    padding-left: 0;
}

.guide-content .cta-box li {
    margin: 0.75rem 0;
}

.guide-content .cta-box a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.guide-content .cta-box a:hover {
    color: var(--primary);
}

/* =================== ENLACES DE INTERÉS =================== */
.enlace-card {
    display: block;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.enlace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.enlace-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.enlace-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.enlace-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
