/* ============================================
   FEATURES HUB - DIGITAL CONSTRUCTION PLATFORM
   ============================================ */

/* ============================================
   HERO SECTION - Full Screen
   ============================================ */

.features-hub-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1600px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: auto;
    border-radius: 0 0 40px 40px;
}

/* Overlay oscuro para mejorar legibilidad */
.features-hub-hero .feature-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0066cce8;
    z-index: 1;
}

/* Elemento decorativo en esquina superior derecha */
.hero-decorative-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Contenedor principal del hero - Max width 1600px */
.features-hub-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Wrapper del contenido centrado */
.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

/* ============================================
   TÍTULO PRINCIPAL - 3 Líneas
   ============================================ */

.features-hub-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
    margin-top: 3rem;
    max-width: 650px;
    letter-spacing: -0.02em;
}

/* ============================================
   TEXTO DESCRIPTIVO
   ============================================ */

.features-hub-hero .hero-description {
    font-size: clamp(1rem, 1.5vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 800px;
}

/* ============================================
   CTA PRINCIPAL
   ============================================ */

.hero-cta {
    margin: 1rem 0 2rem;
}

.btn-hero-primary {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #001F3F;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
    background: #f8f9fa;
}

.btn-hero-primary:active {
    transform: translateY(0);
}

/* ============================================
   TAGS DE CARACTERÍSTICAS - 2 Filas de 4
   ============================================ */

.hero-features-tags {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
}

.features-tags-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color:#fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* ============================================
   CORE FEATURES SECTION - Diseño Asimétrico
   ============================================ */

.core-features-section {
    width: 100%;
    padding: 5rem 0;
    background: #fff;
    overflow: hidden;
}

/* Contenedor principal - Sin max-width, ancho completo */
.core-features-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    padding: 0;
    border: 2px solid;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0px 0px 115px 115px;
    max-width: 1409px;
    width: 95%;
}

/* ============================================
   COLUMNA IZQUIERDA - Características
   ============================================ */

.core-features-left {
    display: flex;
    flex-direction: column;
}

/* Header "CORE FEATURES" */
.core-features-header {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3rem 3rem 0rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Grid de características 2x3 (más 1 extra) */
.core-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 5rem;
}

/* Cada bloque de característica */
.core-feature-item {
    display: flex;
    border:0px;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0rem 3rem;
}

.core-feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #001F3F;
    margin: 0;
    line-height: 1.3;
}

.core-feature-item p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #495057;
    line-height: 1.6;
    border-radius: inherit;
    margin: 0;
    border: 0px;
}

/* ============================================
   COLUMNA DERECHA - Imagen
   ============================================ */

.core-features-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: url('/wp-content/uploads/2025/05/Recurso-10-80.jpg');
    background-repeat: no-repeat;
    background-position: top right;
}

.core-features-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 31, 63, 0.15);
    transition: transform 0.3s ease;
}

.core-features-image:hover {
    transform: scale(1.02);
}

/* ============================================
   RESPONSIVE - CORE FEATURES
   ============================================ */

/* Tablets grandes */
@media (max-width: 1400px) {
    .core-features-container {
        grid-template-columns: 65% 35%;
        gap: 3rem;
        padding: 3rem 4rem;
        width: 92%;
    }
    
    .core-features-grid {
        gap: 2rem 2.5rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .core-features-container {
        grid-template-columns: 70% 30%;
        gap: 2.5rem;
        padding: 3rem;
        width: 90%;
    }
    
    .core-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .core-feature-item h3 {
        font-size: 1.15rem;
    }
    
    .core-feature-item p {
        font-size: 0.9rem;
    }
}

/* Mobile - Stack vertical */
@media (max-width: 768px) {
    .core-features-section {
        padding: 3rem 0;
    }
    
    .core-features-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem 1.5rem;
        width: 90%;
        border-radius: 16px;
    }
    
    /* Imagen arriba en mobile */
    .core-features-right {
        order: -1;
        padding: 0;
    }
    
    .core-features-image {
        width: 100%;
        height: auto;
        min-height: 400px;
        object-fit: cover;
    }
    
    .core-features-header {
        margin-bottom: 2rem;
        font-size: 0.85rem;
    }
    
    .core-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .core-feature-item h3 {
        font-size: 1.1rem;
    }
    
    .core-feature-item p {
        font-size: 0.9rem;
        line-height: 1.55;
    }
}

@media (max-width: 480px) {
    .core-features-container {
        padding: 2rem 1.25rem;
        width: 92%;
    }
    
    .core-features-right {
        padding: 0;
    }
    
    .core-features-image {
        min-height: 300px;
        border-radius: 12px;
    }
    
    .core-features-grid {
        gap: 1.75rem;
    }
}

/* ============================================
   PLATFORM COMPARISON SECTION
   ============================================ */

.platform-comparison-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.platform-comparison-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-header {
    text-align: center;
    margin-bottom: 50px;
}

.comparison-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.comparison-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Table Wrapper */
.comparison-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

/* Table Header */
.comparison-table thead {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

.comparison-table thead tr {
    border: none;
}

.comparison-table th {
    padding: 25px 20px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th.feature-col {
    text-align: left;
    width: 40%;
}

.comparison-table th.ctb-col {
    width: 30%;
}

.comparison-table th.traditional-col {
    width: 30%;
}

.badge-recommended {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #ffc107;
    font-weight: 700;
}

.th-title {
    display: block;
    font-size: 1.1rem;
}

/* Table Body */
.comparison-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.comparison-table tbody tr:hover {
    background-color: #f8f9fa;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 20px;
    text-align: center;
}

.comparison-table td.feature-name {
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.comparison-table td.ctb-value,
.comparison-table td.traditional-value {
    vertical-align: middle;
}

/* Icons */
.icon-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #28a745;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 8px;
}

.icon-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc3545;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.icon-partial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffc107;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Badges */
.badge-exclusive {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    display: inline-block;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #0066cc;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
}

/* Table Footer */
.comparison-table tfoot td {
    padding: 30px 20px;
    background: #f8f9fa;
}

.comparison-table tfoot td.footer-ctb {
    text-align: center;
}

.btn-comparison {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .platform-comparison-section {
        padding: 60px 15px;
    }
    
    .comparison-header h2 {
        font-size: 2rem;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 15px 12px;
        font-size: 0.85rem;
    }
    
    .comparison-table th.feature-col,
    .comparison-table td.feature-name {
        min-width: 180px;
    }
    
    .icon-yes,
    .icon-no,
    .icon-partial {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .badge-info {
        display: block;
        margin: 8px auto 0;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .comparison-header h2 {
        font-size: 1.75rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .th-title {
        font-size: 0.95rem;
    }
    
    .btn-comparison {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ============================================
   FEATURES GRID SECTION (Original)
   ============================================ */

.features-grid-section {
    padding: 6rem 2rem;
    background: #f8f9fa;
}

.features-grid-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid-section .section-header h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: #001F3F;
    margin-bottom: 1rem;
}

.features-grid-section .section-header p {
    font-size: 1.15rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Grid de Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Feature Card */
.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 31, 63, 0.08);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 31, 63, 0.15);
    border-color: rgba(0, 31, 63, 0.2);
}

.feature-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: #0066CC;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #001F3F;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-card-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    color: #0066CC;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-arrow {
    transform: translateX(5px);
}

/* ============================================
   CTA FINAL SECTION
   ============================================ */

.features-hub-cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #001F3F 0%, #003366 100%);
    text-align: center;
}

.features-hub-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.features-hub-cta h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.features-hub-cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-cta-primary {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #001F3F;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
    background: #f8f9fa;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .features-hub-hero-container {
        max-width: 100%;
        padding: 3rem 1.5rem;
    }
    
    .features-hub-hero .hero-title {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .features-hub-hero {
        min-height: 85vh;
    }
    
    .features-hub-hero-container {
        padding: 2rem 1.25rem;
    }
    
    .hero-content-wrapper {
        gap: 1.5rem;
    }
    
    .features-hub-hero .hero-title {
        font-size: 2rem;
    }
    
    .features-hub-hero .hero-description {
        font-size: 1rem;
    }
    
    .btn-hero-primary {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Tags en 2 columnas en mobile */
    .features-tags-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .feature-tag {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Features grid en 1 columna */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .features-grid-section,
    .features-hub-cta {
        padding: 4rem 1.25rem;
    }
    
    .hero-decorative-shape {
        width: 250px;
        height: 250px;
        top: -50px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .features-hub-hero {
        min-height: 100vh;
    }
    
    .features-hub-hero .hero-title {
        font-size: 1.75rem;
    }
    
    /* Tags apilados verticalmente en móviles muy pequeños */
    .features-tags-row {
        grid-template-columns: 1fr;
    }
    
    .feature-tag {
        width: 100%;
    }
}
