/* Estilos específicos para la Landing Page */

/* Hero Section Inputs - Tema Oscuro/Glassmorphism */
.hero .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.hero .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.hero .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Input Groups */
.hero .input-group-addon {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: rgba(255, 255, 255, 0.8);
}

/* Labels y Textos */
.hero label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero .help-block {
    color: rgba(255, 255, 255, 0.7);
}

.hero .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Botones en Hero */
.hero .btn-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.hero .btn-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Advanced Panel Override */
.hero .panel-default {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.hero .panel-default > .panel-heading {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero .panel-title {
    color: #fff;
    font-size: 1.1em;
}

.hero .panel-body {
    border-top: none !important;
}

/* File Input Custom Style */
.hero .form-control.d-flex {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Botones de Tab */
.hero .btn-group .btn-default {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .btn-group .btn-default:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero .btn-group .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Features Section Styles */
.features {
    padding: var(--spacing-20) 0;
    position: relative;
    z-index: 1;
}

.features .section-header {
    margin-bottom: var(--spacing-12);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827; /* Explicit dark color */
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.feature-card p {
    color: #4b5563; /* Explicit gray color */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Ensure icons look great */
.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card .feature-icon i {
    font-size: 1.75rem;
}

/* =========================================
   Comparison Section Styles
   ========================================= */
.comparison-section {
    background-color: #111827; /* Dark Background */
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Fondo decorativo sutil */
.comparison-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.comparison-section .section-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 2.5em;
}

.comparison-section .lead {
    color: #9ca3af;
    margin-bottom: 50px;
}

/* Tabla Container */
.comparison-table-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Headers */
.comparison-table th {
    padding: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.th-feature {
    text-align: left;
    color: #fff;
    width: 40%;
    background: #fff;
    color: #111827;
    border-top-left-radius: 12px;
}

.th-competitor {
    text-align: center;
    color: #6b7280;
    background: #fff;
    width: 30%;
    border-left: 1px solid #f3f4f6;
}

.th-linkbox {
    text-align: center;
    color: #2563eb;
    background: #eff6ff; /* Azul muy claro */
    width: 30%;
    border-top-right-radius: 12px;
    position: relative;
}

/* Celdas */
.comparison-table td {
    padding: 20px 25px;
    vertical-align: middle;
    font-size: 1.1rem;
}

/* Columna Features */
.td-feature {
    color: #d1d5db;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Columna Competidores */
.td-competitor {
    text-align: center;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Columna LinkBox Highlight */
.td-linkbox {
    background: #fff;
    text-align: center;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

/* Iconos */
.icon-check {
    color: #10b981; /* Green */
    font-size: 1.3em;
}

.icon-cross {
    color: #ef4444; /* Red */
    font-size: 1.3em;
    opacity: 0.6;
}

.text-brand {
    color: #2563eb;
    font-weight: 800;
}

/* Ajustes de bordes y esquinas para el diseño "Card" de LinkBox */
.comparison-table tr:last-child .td-linkbox {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 12px; /* Solo la derecha si es la última columna */
    border-bottom: none;
}

/* Para simular que LinkBox es una columna separada visualmente */
/* Vamos a cambiar el diseño: Features y Competitor transparentes/oscuros, LinkBox columna blanca completa */

/* Re-definición para matchear la imagen oscura */
.comparison-table th.th-feature {
    background: transparent;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.comparison-table th.th-competitor {
    background: transparent;
    color: #9ca3af;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    border-left: none;
}

.comparison-table th.th-linkbox {
    background: #fff;
    color: #2563eb;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison-table .td-feature {
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table .td-competitor {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table .td-linkbox {
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Sombra lateral */
    z-index: 10;
}

.comparison-table tr:last-child .td-linkbox {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Dashboard Features Grid (Restored)
   ========================================= */
.dashboard-features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .dashboard-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .dashboard-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-detail-card {
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    height: 100%;
    border: 1px solid #eee;
    display: flex;
    align-items: start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: #fff;
    border-color: #e5e7eb;
}

.feature-detail-card .icon-wrapper {
    min-width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-detail-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.feature-detail-card p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.4;
}
