/* Estilos Sección Productos / Partners */
.products {
    position: relative;
    padding: 100px 0; /* Mayor padding */
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f0ff 100%);
    overflow: hidden;
}

/* Elementos decorativos radiales */
.products::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,86,179,0.08) 0%, rgba(0,86,179,0) 70%);
    border-radius: 50%;
    z-index: 0; /* Detrás del contenido */
}

.products::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,86,179,0.06) 0%, rgba(0,86,179,0) 70%);
    border-radius: 50%;
    z-index: 0; /* Detrás del contenido */
}

.products .container {
    position: relative;
    z-index: 1; /* Encima de los decorativos */
}

/* Título específico de la sección Productos */
.products .section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
    font-size: 3rem;
    color: #001f54; /* Color específico */
    padding-bottom: 20px;
    /* text-transform: capitalize; */ /* Heredado de typography.css */
}

/* Texto grande "PARTNERS" detrás del título */
.products .section-title::before {
    content: 'PARTNERS'; /* O 'PRODUCTOS' */
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 800;
    color: var(--dark-color); /* Color base para texto */
    opacity: 0.03;
    letter-spacing: 10px;
    white-space: nowrap;
    z-index: -1; /* Detrás del título */
}

/* Línea decorativa debajo del título */
.products .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, rgba(0,86,179,0.2), rgba(0,86,179,1), rgba(0,86,179,0.2));
}

/* Grid para los tipos de producto/partner */
.product-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajustar minmax si es necesario */
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1; /* Asegurar que esté sobre ::before/::after de .products */
}

/* Estilo de cada tarjeta de tipo de producto */
.product-type {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Barra superior animada en hover */
.product-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #0056b3, #00a0ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.product-type:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,86,179,0.15);
}

.product-type:hover::before {
    transform: scaleX(1);
}

/* Icono del producto */
.product-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0,86,179,0.3);
    border: 2px solid rgba(0,86,179,0.1); /* Borde sutil para definir mejor */
}

/* Efecto de borde exterior animado en hover */
.product-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,86,179,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1; /* Detrás del icono principal */
}

.product-type:hover .product-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #0056b3 0%, #0084ff 100%);
}

.product-type:hover .product-icon::before {
    opacity: 1;
}

.product-icon i { /* El icono FontAwesome/etc */
    font-size: 36px;
    color: #0056b3;
    font-weight: 900; /* Hacer los iconos más gruesos */
    opacity: 1; /* Asegurar opacidad completa */
    transition: all 0.5s ease;
}

.product-type:hover .product-icon i {
    color: #ffffff;
    transform: rotate(360deg); /* Animación de rotación */
}

/* Título/Nombre del tipo de producto (si lo hubiera) */
.product-type h3 {
    font-size: 1.6rem; /* Ejemplo */
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

/* Descripción del tipo de producto */
.product-type p {
    color: #505763;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0;
    position: relative;
    padding-top: 10px; /* Espacio para la línea */
    flex-grow: 1; /* Ocupar espacio si es necesario */
}

/* Línea decorativa debajo del texto */
.product-type p::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: rgba(0,86,179,0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.product-type:hover p::after {
    opacity: 1;
    width: 80px;
}

/* Sección de Formatos (opcional, si aplica) */
.product-formats {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border-radius: 25px;
    padding: 50px;
    margin-top: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1; /* Encima de ::before/::after de .products */
    border: 1px solid rgba(0,0,0,0.03);
}

/* Elementos decorativos dentro de .product-formats */
.product-formats::before { /* Esquina superior derecha */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 120px 120px 0;
    border-color: transparent rgba(0,86,179,0.03) transparent transparent;
    z-index: 0;
}

.product-formats::after { /* Círculo inferior izquierdo */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,86,179,0.03) 0%, rgba(0,86,179,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Título de la sección de formatos (si existe) */
.product-formats h3 {
    font-size: 1.8rem; /* Ejemplo */
    margin-bottom: 30px;
    color: var(--dark-color);
    text-align: center; /* O a la izquierda */
    position: relative; /* Para z-index */
    z-index: 1;
}

/* Párrafos/ítems dentro de formatos */
.product-formats p {
    color: #505763;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 25px;
    position: relative;
    padding-left: 25px;
    z-index: 1;
}

.product-formats p:last-child {
    margin-bottom: 0;
}

/* Punto decorativo antes de cada párrafo */
.product-formats p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px; /* Ajustar verticalmente */
    width: 8px;
    height: 8px;
    background-color: #0056b3;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

/* Estilos para la sección de lista de productos en páginas como linea-productos.html */

.product-category {
    margin-bottom: 50px; /* Espacio entre categorías */
}

.category-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.category-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0; /* Resetear margen por si acaso */
}

.product-list {
    margin-top: 20px; /* Espacio después del header */
}

.product-grid {
    list-style: none; /* Quitar puntos de lista */
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr; /* 1 columna por defecto (móviles) */
    gap: 15px; /* Espacio entre items */
}

/* 2 columnas en tablets */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columnas en desktops */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-grid li {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-grid li:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.1);
    background-color: #f8f9fa; /* Fondo ligero en hover */
}

/* Si se necesita un título general para la sección de productos */
.page-content .section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.page-content .section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.page-content .section-title .highlight {
    color: var(--accent-color);
}

.page-content .section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.page-content .divider-line {
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 10px;
    opacity: 0.7;
}

.page-content .divider-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Estilos para el bloque de información final */
.product-info {
    margin-top: 60px;
    padding: 40px;
    background-color: rgba(var(--dark-color-rgb, 8), 25, 43, 0.9); /* Fondo oscuro semi-transparente (asumiendo --dark-color-rgb) */
    background-image: linear-gradient(145deg, rgba(8, 25, 43, 0.95), rgba(13, 45, 74, 0.9));
    border-radius: 12px;
    text-align: center;
    color: var(--white);
}

.product-info h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.product-info p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.product-info .action-area {
    margin-top: 20px;
}

/* Usar estilos de animated-link si ya existen o definir aquí */
.product-info .animated-link {
    /* Hereda estilos si existen */
    /* O definir/ajustar aquí */
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.product-info .animated-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
} 