/* Estilos Sección Fabricación */
.fabrication {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--light-color); /* Fondo base */
}

/* Elementos decorativos de fondo */
.fabrication::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%); /* Ajustar opacidad */
    border-radius: 50%;
    z-index: 0;
}

.fabrication::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%); /* Ajustar opacidad */
    border-radius: 50%;
    z-index: 0;
}

.fabrication .container {
    position: relative;
    z-index: 1;
}

/* Cabecera de la sección */
.fabrication-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Badge específico de la sección */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.1) 100%);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase; /* Añadido para consistencia */
    letter-spacing: 1px; /* Añadido para consistencia */
}

/* Fondo sutil detrás del badge */
.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1; /* Reducir opacidad */
    z-index: -1;
}

/* Títulos Fancy y Gradient ya definidos en typography.css */
/* .fancy-title { ... } */
/* .gradient-title { ... } */

/* Showcase Principal (Imagen y contenido) */
.fabrication-showcase {
    display: flex;
    /* flex-wrap: wrap; */ /* Evitar wrap para mantener lado a lado */
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.fabrication-image-container {
    width: 45%; /* Ancho para la imagen */
    flex-shrink: 0;
}

.fabrication-image-area { /* Padding alrededor de la imagen */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5); /* Fondo semi-transparente */
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.image-hexagon { /* Contenedor de la imagen */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    width: 100%;
    height: 400px; /* Altura fija para mantener forma rectangular */
}

.image-hexagon img {
    width: 100%;
    height: 100%; /* Ocupar toda la altura del contenedor */
    display: block;
    transition: transform 0.8s ease;
    object-fit: cover; /* Cubrir todo el espacio manteniendo proporciones */
    border-radius: 20px; /* Mantener bordes redondeados */
}

.image-hexagon:hover img {
    transform: scale(1.08);
    /* filter: brightness(1.1); */
}

/* Certificados debajo de la imagen */
.certificates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px; /* Más espacio */
    width: 100%;
}

.certificate-item {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
    color: var(--text-dark);
}

.certificate-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #f5f9ff;
    border-left-color: var(--accent-color);
}

.certificate-item i {
    font-size: 18px; /* Ajustar tamaño */
    color: var(--primary-color);
    margin-right: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.certificate-item:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Contenido de texto */
.fabrication-content {
    flex: 1; /* Ocupa el resto del espacio */
}

/* Headline text definido en typography.css */
/* .headline-text { ... } */

/* Cajas de contenido */
.content-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adaptable */
    gap: 30px;
    margin-bottom: 50px;
}

.content-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Barra lateral animada */
.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: height 0.4s ease;
}

.content-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-box:hover::before {
    height: 100%;
}

.box-icon {
    width: 55px; /* Ligeramente más grande */
    height: 55px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Más espacio */
    transition: all 0.3s ease;
}

.content-box:hover .box-icon {
    background-color: var(--primary-color);
    transform: rotate(10deg) scale(1.05);
}

.box-icon i {
    font-size: 24px; /* Ligeramente más grande */
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.content-box:hover .box-icon i {
    color: white;
}

.box-content h4 {
    font-size: 1.3rem; /* Ajustar tamaño */
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.box-content p {
    color: var(--grey-color);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Pasos del Servicio (si aplica a fabricación) */
.service-steps {
    position: relative;
    margin: 60px 0; /* Ajustar margen */
    padding-left: 60px; /* Espacio para la línea y números */
}

/* Línea vertical */
.service-steps::before {
    content: '';
    position: absolute;
    top: 10px; /* Ajustar inicio */
    left: 40px; /* Posición de la línea */
    width: 2px; /* Grosor línea */
    height: calc(100% - 20px); /* Altura ajustada */
    background-color: rgba(var(--primary-rgb), 0.2);
    z-index: 0;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px; /* Más espacio entre pasos */
    position: relative; /* Para z-index */
    z-index: 1;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number { /* Número del paso */
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25);
    flex-shrink: 0;
    position: absolute; /* Posicionar sobre la línea */
    left: -40px; /* Centrar sobre la línea */
    top: 0; /* Alinear arriba */
    z-index: 2;
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step-content { /* Contenido del paso */
    background-color: white;
    padding: 30px; /* Más padding */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
    margin-left: 60px; /* Espacio respecto al número */
    border: 1px solid rgba(0,0,0,0.03);
}

.step-content::before { /* Fondo sutil hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), rgba(var(--accent-rgb), 0.03));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover .step-content {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.step:hover .step-content::before {
    opacity: 1;
}

.step-content h4 {
    font-size: 1.4rem; /* Tamaño ajustado */
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    font-weight: 600;
}

.step-content p {
    color: var(--grey-color);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Área de Conclusión */
.conclusion-area {
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
    padding: 50px 40px; /* Padding ajustado */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-top: 60px; /* Espacio superior */
    border: 1px solid rgba(0,0,0,0.05);
}

.conclusion-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 90%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 90% 10%, rgba(var(--accent-rgb), 0.08) 0%, transparent 40%);
    z-index: -1;
    opacity: 0.5;
}

.conclusion-area h3 { /* Añadir título si es necesario */
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.conclusion-area p {
    font-size: 1.2rem;
    color: var(--dark-color); /* #333 */
    line-height: 1.7;
    max-width: 850px; /* Limitar ancho */
    margin: 0 auto 30px;
}

/* Área de Acción (Botón) */
.action-area {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Animated link definido en components/buttons.css */
/* .animated-link { ... } */

/* Nota: Estilos responsivos irán en responsive.css */ 