/* Colores base */
:root {
    --azul: #004080;
    --amarillo: #f9d81f;
    --cafe: #6B4F3A;
    --rojo: #C82333;
    --blanco: #f9f9f9;
    --gris: #cecece;
}

/* Reset básico */
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--blanco);
    color: #333;
}
/* Franja superior */
.top-bar {
    background-color: #333;
    color: white;
    padding: 0.5rem 2rem; /* Aumentado el padding para mejor espaciado */
    font-size: 14px;
    font-family: Arial, sans-serif;
    display: flex; /* Habilita el modelo de caja flexible */
    justify-content: space-between; /* Distribuye el espacio entre los elementos */
    align-items: center; /* Centra los elementos verticalmente */
}

.top-bar p {
    margin: 0; /* Elimina el margen por defecto del párrafo */
    display: contents; /* Hace que los elementos dentro del párrafo actúen como si estuvieran directamente en el flexbox */
}


/* Navbar */
.navbar {
    background: linear-gradient(90deg, #fafafa, #f0f0f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.navbar .logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    width: 100px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.6rem;
    margin-right: 8px;
    padding: 8px;
    background: transparent;
}

.nav-links a {
    color: #0b2a4a;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: color .2s ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 3px;
    background: linear-gradient(90deg, var(--azul), var(--amarillo));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 2px;
}

.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: #001b36; }

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 24px;
    cursor: pointer;
}
.menu-toggle.is-active { background: var(--amarillo); color: #111; }

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links {
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        background: #ffffff;
        border: 1px solid #eaeaea;
        box-shadow: 0 16px 30px rgba(0,0,0,0.12);
        border-radius: 12px;
        padding: 12px;
        display: grid;
        gap: 6px;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: all .25s ease;
    }
    .nav-links.is-open { opacity: 1; pointer-events: auto; transform: none; }
    .nav-links li a { display: block; padding: 12px 14px; }
}

/* Hero original */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: url('/static/fondo2.png') center/cover no-repeat;
    color: #fff;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.titulo-principal {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitulo {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffcc00;
    margin-top: 10px;
}

.slogan {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 20px;
    color: #e0e0e0;
    max-width: 800px;
    line-height: 1.5;
}

/* Nueva portada secundaria */
.cutting-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.cutting-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
}

.cutting-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.title-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.9));
    border-radius: 20px;
    padding: 40px 30px;
    margin: 0 auto 30px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--amarillo);
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.title-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul), var(--amarillo), var(--azul));
    border-radius: 20px 20px 0 0;
}

.cutting-hero-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 25px 0 0 0;
    color: var(--azul);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contenedor de marcas */
.brands-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0 0 0 0;
    flex-wrap: wrap;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--amarillo);
}

.brand-logo {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Línea de servicios horizontal */
.services-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.service-item {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.service-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--amarillo), var(--azul), var(--amarillo));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.service-item:hover::after {
    transform: scaleX(1);
}

.service-item:hover {
    color: var(--amarillo);
    transform: translateY(-2px);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.service-separator {
    font-size: 1.5rem;
    color: var(--amarillo);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.imagen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.imagen-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.9));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--amarillo);
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.imagen-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul), var(--amarillo), var(--azul));
    border-radius: 20px 20px 0 0;
}

.imagen-principal {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--azul);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.imagen-principal:hover {
    transform: scale(1.02);
}

/* ======================================== */
/* SECCIÓN DE VIDEOS */
/* ======================================== */

.videos-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 20px;
    text-align: center;
}

.videos-container {
    max-width: 1400px;
    margin: 0 auto;
}

.videos-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--azul);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.videos-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--amarillo);
}

.video-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul), var(--amarillo), var(--azul));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover::before {
    opacity: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
}

.video-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--azul);
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
}

.video-card p {
    font-size: 1rem;
    color: #666;
    margin: 0 20px 20px 20px;
    line-height: 1.5;
}

/* Efectos especiales para los videos */
.video-wrapper::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-card:hover .video-wrapper::after {
    transform: translate(-50%, -50%) scale(1.2);
    color: var(--amarillo);
}

/* Responsive para videos */
@media (max-width: 768px) {
    .videos-section {
        padding: 60px 15px;
    }
    
    .videos-title {
        font-size: 2.2rem;
    }
    
    .videos-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    
    .video-card {
        border-radius: 15px;
    }
    
    .video-wrapper {
        height: 200px;
    }
    
    .video-card h3 {
        font-size: 1.2rem;
        margin: 15px 15px 8px 15px;
    }
    
    .video-card p {
        font-size: 0.9rem;
        margin: 0 15px 15px 15px;
    }
    
    .video-wrapper::after {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .videos-section {
        padding: 40px 10px;
    }
    
    .videos-title {
        font-size: 1.8rem;
    }
    
    .videos-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .videos-grid {
        gap: 20px;
    }
    
    .video-wrapper {
        height: 180px;
    }
    
    .video-card h3 {
        font-size: 1.1rem;
        margin: 12px 12px 6px 12px;
    }
    
    .video-card p {
        font-size: 0.85rem;
        margin: 0 12px 12px 12px;
    }
    
    .video-wrapper::after {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: var(--cafe);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Nosotros */

.about-section {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #222;
}

.intro-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

.about-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.about-cards .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 400px;
    flex: 1 1 300px;
    transition: transform 0.3s ease;
}

.about-cards .card:hover {
    transform: translateY(-5px);
}

.about-cards h3 {
    font-size: 1.6rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.about-cards p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

/* --- */
/* Sección de Valores Corporativos */
.valores-corporativos {
    padding: 60px 20px;
    background-color: #f0f0f0;
    text-align: center;
}

.valores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.valor-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 350px;
    width: 100%;
    text-align: left;
    transition: transform 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
}

.valor-card h3 {
    color: var(--azul);
    margin-top: 0;
    font-size: 1.5rem;
}

.valor-card p {
    color: #555;
    line-height: 1.6;
}


/* ======================================== */
/* CATÁLOGO DE HERRAMIENTAS */
/* ======================================== */

.catalog-section {
    padding: 0;
    margin: 40px 0;
    background: #f8f9fa;
}

.catalog-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #333;
    overflow: hidden;
}

/* Sección izquierda - Gris oscuro */
.catalog-left {
    background: #4a4a4a;
    width: 40%;
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.productos-title {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.productos-title h2 {
    color: black;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.cnc-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.cnc-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gear-icon {
    font-size: 2.5rem;
    color: #f39c12;
}

.cnc-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cnc {
    color: black;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.torque {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1rem;
}

/* Sección derecha - Blanca */
.catalog-right {
    background: white;
    width: 60%;
    padding: 40px 30px;
    min-height: 500px;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espacio entre los grupos de categorías */
}

/* Contenedor para cada grupo de categoría (texto vertical + lista) */
.category-group {
    display: flex; /* Nuevo: Usa Flexbox para alinear el texto y la lista */
    align-items: start;
    gap: 20px; /* Espacio entre el texto vertical y la lista */
}

.vertical-texts {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.vertical-text-item {
    flex-shrink: 0;
    margin: 0; /* Aseguramos que no tenga márgenes que impidan el estiramiento */
}

.vertical-text-item span {

    color: black;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 3px;
    background: rgba(255, 255, 255, 0.95);
    padding: 80px 8px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap; /* Evita que el texto se parta en varias líneas */
    flex-shrink: 0; /* Impide que el elemento se encoja */
    box-sizing: border-box;
    display: flex;
}

/* Estilos específicos para el texto "HERRAMIENTAS DE TORNEADO" */
.herramientas-torneado span {
    /* Ajusta este padding o altura para que se adapte a los 9 productos */
    padding-top: 140px; /* Ejemplo: puedes ajustar el padding superior/inferior */
    padding-bottom: 80px;

}

/* Estilos específicos para el texto "HERRAMIENTAS GIRATORIAS" */
.herramientas-giratorias span {
    /* Ajusta este padding o altura para que se adapte a los 6 productos */
    padding-top: 25px; /* Ejemplo: menos padding, ya que tiene menos productos */
    padding-bottom: 25px;
}

.categories-list {
    flex-grow: 1;
    margin: 0;

}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
}

.category-item:hover .category-button {
    background: #c0392b;
    transform: scale(1.1);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 20px;
}

.category-button {
    background: #e74c3c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

/* Móviles pequeños (480px y menos) */
@media (max-width: 480px) {
    .vertical-texts {
        gap: 10px;
        margin: 15px 0;
        flex-direction: column;
        align-items: center;
    }
    
    .vertical-text-item {
        max-width: 280px;
    }
    
    .vertical-text-item span {
        background: rgba(255, 255, 255, 0.95);
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #333;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        color: black;
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .catalog-left,
    .catalog-right {
        padding: 20px 15px;
    }
    
    .productos-title h2 {
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
}

/* Sección de Servicios */
.services-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--blanco);
}

.services-section .section-title {
    color: var(--azul);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-section .section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
}

.services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--gris);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    max-width: 450px;
    flex: 1 1 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card-image {
    height: 200px; /* Tamaño fijo para que las imágenes no varíen el diseño */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.service-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ajusta la imagen sin deformarla */
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--cafe);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background-color: var(--azul);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--amarillo);
    color: black;
}

/* --- */
/* Sección de Contacto */
/* --- */
/* Sección de Contacto Mejorada */
.contact-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: #f8f9fa; /* Un color de fondo suave */
    overflow: hidden; /* Para que los elementos decorativos no se desborden */
}

/* Efecto de fondo sutil para la sección */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(240,240,240,0.8));
    z-index: 0;
}

/* Título de sección más estilizado */
.contact-section .section-title {
    position: relative;
    z-index: 1;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.contact-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--amarillo), var(--azul));
    margin: 10px auto 0;
    border-radius: 2px;
}

.contact-section .section-description {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.contact-form {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.contact-form p {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    text-align: left;
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.2);
    outline: none;
    background-color: #fff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--azul);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-submit:hover {
    background-color: var(--amarillo);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Media Query para la sección de Contacto */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 15px;
    }

    .contact-section .section-title {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 25px;
    }
}

/* --- */
/* Transiciones de Página */

main {
    /* Estado inicial: invisible */
    opacity: 0; 
    /* Duración de la animación */
    transition: opacity 0.5s ease-in-out;
}

/* Transición de entrada (Fade-in) */
main.fade-in {
    opacity: 1;
}

/* Transición de salida (Fade-out) */
main.fade-out {
    opacity: 0;
}

/* --- */
/* Botón de WhatsApp con Bootstrap */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 50px; /* Tamaño del ícono */
    color: #25D366; /* Color verde de WhatsApp */
    background-color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* ======================================== */
/* MEDIA QUERIES RESPONSIVAS */
/* ======================================== */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
    .hero {
        padding: 30px 15px;
        min-height: 60vh;
    }
    
    .titulo-principal {
        font-size: 2.5rem;
    }
    
    .subtitulo {
        font-size: 1.3rem;
    }
    
    .slogan {
        font-size: 1.1rem;
        max-width: 700px;
    }
    
    .cutting-hero {
        padding: 40px 15px;
        min-height: 50vh;
    }
    
    .title-box {
        padding: 30px 25px;
        max-width: 700px;
    }
    
    .cutting-hero-title {
        font-size: 2.4rem;
    }
    
    .brands-container {
        gap: 20px;
        margin: 0 0 0 0;
    }
    
    .brand-item {
        padding: 12px 16px;
    }
    
    .brand-logo {
        max-height: 35px;
        max-width: 100px;
    }
    
    .services-line {
        gap: 15px;
        margin: 25px 0;
    }
    
    .service-item {
        font-size: 1.1rem;
    }
    
    .service-separator {
        font-size: 1.3rem;
    }
    
    .imagen-box {
        max-width: 500px;
        padding: 15px;
    }
}

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .navbar {
        padding: 6px 12px;
    }
    
    .navbar .logo {
        width: 80px;
    }
    
    .hero {
        padding: 25px 15px;
        min-height: 50vh;
    }
    
    .titulo-principal {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .subtitulo {
        font-size: 1.2rem;
        margin-top: 8px;
    }
    
    .slogan {
        font-size: 1rem;
        margin-top: 15px;
        max-width: 600px;
    }
    
    .cutting-hero {
        padding: 30px 15px;
        min-height: 45vh;
    }
    
    .title-box {
        padding: 25px 20px;
        max-width: 100%;
        margin: 0 auto 20px auto;
    }
    
    .cutting-hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .brands-container {
        gap: 15px;
        margin: 0 0 0 0;
    }
    
    .brand-item {
        padding: 10px 14px;
    }
    
    .brand-logo {
        max-height: 30px;
        max-width: 80px;
    }
    
    .services-line {
        gap: 12px;
        margin: 20px 0;
    }
    
    .service-item {
        font-size: 1rem;
        padding: 6px 0;
    }
    
    .service-separator {
        font-size: 1.2rem;
    }
    
    .imagen-box {
        max-width: 100%;
        padding: 15px;
    }
    
    .imagen-principal {
        border-radius: 12px;
    }
    
    /* Secciones generales */
    .about-section,
    .services-section,
    .contact-section,
    .valores-corporativos {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-cards,
    .services-grid,
    .valores-grid {
        gap: 20px;
    }
    
    .about-cards .card,
    .service-card,
    .valor-card {
        padding: 20px;
        max-width: 100%;
    }
    
    .contact-form {
        padding: 20px;
        margin: 0 10px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* Móviles grandes (480px y menos) */
@media (max-width: 480px) {
    .top-bar p {
        font-size: 11px;
        padding: 0 10px;
    }
    
    .navbar {
        padding: 5px 10px;
    }
    
    .navbar .logo {
        width: 70px;
    }
    
    .hero {
        padding: 20px 10px;
        min-height: 45vh;
    }
    
    .titulo-principal {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .subtitulo {
        font-size: 1rem;
        margin-top: 6px;
    }
    
    .slogan {
        font-size: 0.9rem;
        margin-top: 12px;
        line-height: 1.4;
    }
    
    .cutting-hero {
        padding: 25px 10px;
        min-height: 40vh;
    }
    
    .title-box {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .cutting-hero-title {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }
    
    .brands-container {
        gap: 10px;
        margin: 0 0 0 0;
    }
    
    .brand-item {
        padding: 8px 12px;
    }
    
    .brand-logo {
        max-height: 25px;
        max-width: 70px;
    }
    
    .services-line {
        gap: 8px;
        margin: 15px 0;
        flex-direction: column;
        align-items: center;
    }
    
    .service-item {
        font-size: 0.9rem;
        padding: 4px 0;
    }
    
    .service-separator {
        font-size: 1rem;
    }
    
    .imagen-box {
        padding: 12px;
        border-radius: 15px;
    }
    
    .imagen-principal {
        border-radius: 10px;
    }
    
    /* Secciones generales */
    .about-section,
    .services-section,
    .contact-section,
    .valores-corporativos {
        padding: 30px 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .about-cards,
    .services-grid,
    .valores-grid {
        gap: 15px;
    }
    
    .about-cards .card,
    .service-card,
    .valor-card {
        padding: 15px;
    }
    
    .about-cards h3,
    .service-card h3,
    .valor-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 15px;
        margin: 0 5px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-submit {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 35px;
        bottom: 10px;
        right: 10px;
    }
}

/* Móviles muy pequeños (360px y menos) */
@media (max-width: 360px) {
    .titulo-principal {
        font-size: 1.6rem;
    }
    
    .subtitulo {
        font-size: 0.9rem;
    }
    
    .slogan {
        font-size: 0.8rem;
    }
    
    .cutting-hero-title {
        font-size: 1.4rem;
    }
    
    .cutting-hero-list li {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .about-cards .card,
    .service-card,
    .valor-card {
        padding: 12px;
    }
    
    .contact-form {
        padding: 12px;
    }
}

/* Estilos para el modal */
.modal-body {
    text-align: center;
}

.modal-product-image {
    max-width: 100%; /* La imagen no excederá el ancho del contenedor */
    max-height: 250px; /* Define una altura máxima para todas las imágenes */
    width: auto; /* El ancho se ajustará automáticamente */
    height: auto; /* La altura se ajustará automáticamente */
    object-fit: contain; /* Ajusta la imagen dentro de su contenedor sin recortarla */
    display: block; /* Para centrar la imagen correctamente */
    margin: 0 auto; /* Centra la imagen horizontalmente */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Puedes añadir una transición suave si lo deseas */
    transition: transform 0.3s ease-in-out;
}

/* Opcional: Si quieres un efecto al pasar el ratón */
.modal-product-image:hover {
    transform: scale(1.02);
}

/* Estilos para el contenedor de la descripción */
#modal-description-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa; /* Un fondo claro para la descripción */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#product-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Estilos para el contenedor de la imagen en el modal */
#modal-images-container {
    height: 250px; /* Altura fija para el contenedor en pantallas grandes */
    width: 100%; /* Ancho completo */
    display: flex; /* Utiliza Flexbox para centrar la imagen */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    overflow: hidden; /* Oculta cualquier parte de la imagen que se desborde */
}
/* Ajustes para pantallas más pequeñas (móviles) */
@media (max-width: 768px) {
    #modal-images-container {
        height: 250px; /* Reduce la altura para pantallas pequeñas */
    }
}

/* Nuevo Hero para Misión y Visión */
.about-hero {
    position: relative;
    padding: 100px 20px;
    background: url('/static/imagen2.png') center/cover no-repeat; /* URL de la imagen */
    color: #fff;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Asegura que la capa esté sobre los demás elementos */
}

/* Superposición oscura para que el texto resalte */
.about-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 60% de opacidad negra */
    z-index: -1; /* Mueve la capa de superposición detrás del contenido */
}

/* Contenedor del contenido dentro del banner */
.about-content-wrapper {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre la superposición */
}

/* Modificación de estilos para las tarjetas de Misión y Visión */
.about-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.about-cards .card {
    background: rgba(255, 255, 255, 0.85); /* Fondo semitransparente */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 450px;
    flex: 1 1 300px;
    transition: transform 0.3s ease;
    color: #333; /* Color de texto para las tarjetas */
}

.about-cards .card:hover {
    transform: translateY(-5px);
}

.about-cards h3 {
    font-size: 1.6rem;
    color: var(--azul); /* Usando la variable de color del tema */
    margin-bottom: 15px;
}

.about-cards p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .about-hero {
        padding: 60px 15px; /* Menos padding en móviles */
    }
    
    .about-cards .card {
        max-width: 100%; /* Las tarjetas ocupan el ancho completo */
        margin: 0;
    }
}

/* Media Query para móvil */
@media (max-width: 768px) {
    /* El contenedor principal apila las secciones verticalmente */
    .catalog-container {
        flex-direction: column;
        width: 100%;
    }

    /* La sección izquierda se hace más pequeña y se mueve arriba */
    .catalog-left {
        width: 100%;
        height: auto;
        padding: 20px;
        text-align: center;
    }

    /* El contenido de la derecha ocupa todo el ancho y se asegura de mostrarse */
    .catalog-right {
        width: 100%;
        min-height: 400px; /* Fuerza una altura mínima para que se vea la caja */
        padding: 20px;
    }

    /* Ajustes de tamaño para el texto y el logo */
    .productos-title h2 {
        font-size: 1.5rem;
    }

    .cnc-logo-img {
        max-width: 80px;
    }
}

/* ======================================== */
/* SECCIÓN DE ELEMENTOS DE FIJACIÓN */
/* ======================================== */

.fixing-elements-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
}

.fixing-elements-container {
    max-width: 1400px;
    margin: 0 auto;
}

.fixing-elements-header {
    margin-bottom: 60px;
}

.fixing-elements-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--azul);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.fixing-elements-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.fixing-elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fixing-element-card {
    background: transparent;
    border-radius: 20px;
    perspective: 1200px;
    height: 400px;
    cursor: pointer;
    transform-style: preserve-3d;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.fixing-element-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    transition: all 0.3s ease;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.card-front {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.card-back {
    background: linear-gradient(135deg, var(--azul), #0056b3);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fixing-element-card:hover .card-front {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--amarillo);
}

.fixing-element-card:hover .card-back {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.fixing-element-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex: 1;
}

.fixing-element-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.fixing-element-card:hover .fixing-element-image img {
    transform: scale(1.05);
}

.fixing-element-content {
    padding: 25px;
    text-align: left;
    flex: 0 0 auto;
}

.fixing-element-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--azul);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.fixing-element-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.click-hint {
    font-style: italic;
    color: var(--amarillo) !important;
    font-weight: 600;
    text-align: center;
    margin-top: 10px !important;
}

.fixing-element-description {
    text-align: center;
    width: 100%;
}

.fixing-element-description h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.fixing-element-description p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.flip-back-btn {
    background: var(--amarillo);
    color: var(--azul);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flip-back-btn:hover {
    background: white;
    color: var(--azul);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive para elementos de fijación */
@media (max-width: 768px) {
    .fixing-elements-section {
        padding: 60px 15px;
    }
    
    .fixing-elements-title {
        font-size: 2.2rem;
    }
    
    .fixing-elements-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .fixing-elements-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    
    .fixing-element-card {
        height: 350px;
    }
    
    .card-front, .card-back {
        border-radius: 15px;
    }
    
    .fixing-element-image {
        height: 200px;
        padding: 15px;
    }
    
    .fixing-element-content {
        padding: 20px;
    }
    
    .fixing-element-content h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .fixing-element-content p {
        font-size: 0.9rem;
    }
    
    .fixing-element-description {
        padding: 15px;
    }
    
    .fixing-element-description h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .fixing-element-description p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .flip-back-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .fixing-elements-section {
        padding: 40px 10px;
    }
    
    .fixing-elements-title {
        font-size: 1.8rem;
    }
    
    .fixing-elements-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .fixing-elements-grid {
        gap: 20px;
    }
    
    .fixing-element-card {
        height: 320px;
    }
    
    .fixing-element-image {
        height: 180px;
        padding: 12px;
    }
    
    .fixing-element-content {
        padding: 15px;
    }
    
    .fixing-element-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .fixing-element-content p {
        font-size: 0.85rem;
    }
    
    .fixing-element-description {
        padding: 12px;
    }
    
    .fixing-element-description h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .fixing-element-description p {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    .flip-back-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}