/**
 * Estilos para el shortcode [tipo_carga_home]
 * Grilla de tipos de carga con tarjetas blancas y iconos
 */

/* Contenedor principal - Grid */
.tecnoco-tipo-carga-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    justify-items: center;
}

/* Columnas responsivas */
.tecnoco-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.tecnoco-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tecnoco-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tecnoco-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Tarjeta individual */
.tecnoco-tipo-carga-card {
    width: 100%;
    max-width: 180px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 100px;
}

.tecnoco-tipo-carga-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Enlace contenedor */
.tecnoco-tipo-carga-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 20px;
    text-decoration: none;
    height: 100%;
}

/* Contenedor del icono */
.tecnoco-tipo-carga-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.tecnoco-tipo-carga-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Placeholder para términos sin imagen */
.tecnoco-tipo-carga-icon-placeholder {
    background: linear-gradient(135deg, #e8eef3 0%, #d5dfe8 100%);
    border-radius: 12px;
}

/* Título del término */
.tecnoco-tipo-carga-title {
    display: block;
    font-family: 'Mulish', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #000000;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

/* =========================================
   SHORTCODE [sector_home]
   ========================================= */

.tecnoco-sector-grid {
    display: grid;
    gap: 15px;
    width: 100%;
}

.tecnoco-sector-item {
    text-align: center;
}

.tecnoco-sector-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tecnoco-sector-link:hover {
    background-color: #0079c2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   RESPONSIVE - TIPO CARGA HOME
   ========================================= */

/* Tablets */
@media (max-width: 1024px) {
    .tecnoco-grid-cols-5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .tecnoco-tipo-carga-card {
        max-width: 160px;
    }

    .tecnoco-tipo-carga-icon {
        width: 70px;
        height: 70px;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .tecnoco-grid-cols-5,
    .tecnoco-grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .tecnoco-tipo-carga-card {
        max-width: 150px;
    }

    .tecnoco-tipo-carga-link {
        padding: 20px 12px 16px;
    }

    .tecnoco-tipo-carga-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .tecnoco-tipo-carga-title {
        font-size: 13px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .tecnoco-grid-cols-5,
    .tecnoco-grid-cols-4,
    .tecnoco-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tecnoco-tipo-carga-card {
        max-width: 100%;
    }

    .tecnoco-tipo-carga-link {
        padding: 16px 10px 14px;
    }

    .tecnoco-tipo-carga-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .tecnoco-tipo-carga-title {
        font-size: 12px;
    }
}


/* =========================================
   ARCHIVE EQUIPO - Product Cards
   ========================================= */

:root {
    --tc-background: #ffffff;
    --tc-foreground: #1e293b;
    --tc-primary: #0079c2;
    --tc-primary-hover: #c2410c;
    --tc-muted: #64748b;
    --tc-border: #e2e8f0;
    --tc-card-bg: #ffffff;
    --tc-card-shadow: 0px 2px 18px 0px rgba(0,0,0,0.3);
    --tc-card-shadow-hover: 0px 4px 24px 0px rgba(0,0,0,0.35);
    --tc-radius: 16px;
}

.tecnoco-container {
    width: var(--content-width);
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 2rem 0;
}

.tecnoco-container h1{
    margin-top: 80px;
    margin-bottom: 40px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    background-color: var(--tc-card-bg);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-card-shadow);
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--tc-card-shadow-hover);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: calc(var(--tc-radius) - 2px);
    border-top-right-radius: calc(var(--tc-radius) - 2px); 
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.product-title-link {
    text-decoration: none;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.2s ease;
}



.product-description {
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-meta-item {
    font-size: 0.875rem;
    margin: 0;
}

.product-meta-label {
    font-weight: 600;
    color: var(--tc-foreground);
}

.product-meta-value {
    color: var(--tc-muted);
}

.video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tc-primary);
    background-color: transparent;
    border: 1px solid var(--tc-primary);
    border-radius: calc(var(--tc-radius) - 2px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: fit-content;
}

.video-button:hover {
    background-color: var(--tc-primary);
    color: white;
}

.video-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsive */
@media (min-width: 768px) {
    .tecnoco-container {
        padding: 2rem 0;
    }

    .product-card {
        flex-direction: row;
    }

    .product-image {
        width: 250px;
        height: 100%;
        flex-shrink: 0;
        border-top-left-radius: calc(var(--tc-radius) - 2px);
        border-bottom-left-radius: calc(var(--tc-radius) - 2px); 
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* =========================================
   SHORTCODE [tecnoco_equipos_relacionados]
   ========================================= */

.equipos-relacionados {
    margin: 2rem 0;
}

.equipos-relacionados h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tc-foreground, #1e293b);
}

.equipos-relacionados {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.equipos-relacionados > a {
    flex: 0 0 calc(33.333% - 1rem);
    text-decoration: none;
}

.equipos-relacionados .wrapper-excerpt-thumbnail {
    text-align: center;
}

.equipos-relacionados .wrapper-excerpt-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipos-relacionados .wrapper-excerpt-thumbnail img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.equipos-relacionados .equipo-title {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tc-primary, #0079c2);
    transition: color 0.3s ease;
}

.equipos-relacionados a:hover .equipo-title {
    color: var(--tc-primary-hover, #c2410c);
}

/* Responsive - Tablets */
@media (max-width: 768px) {
    .equipos-relacionados > a {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

/* Responsive - Móviles */
@media (max-width: 480px) {
    .equipos-relacionados > a {
        flex: 0 0 100%;
    }
}
