/* ======== RESET ======== */
* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #2d3748;
    line-height: 1.7;
    font-size: 16px;
}

/* ======== TIPOGRAFÍA ======== */
h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.4rem;
    color: #f78309;
    text-align: center;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.8rem;
    color: #f78309;
    text-align: center;
    margin: 50px 0 20px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #4299e1;
    margin: 14px auto 0;
    border-radius: 2px;
}

h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin: 12px 0 6px;
}

header {
     background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    position: static; /* header normal */
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}


header h1 {
    font-size: 1.9rem;
    color: #f78309;
}


nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    list-style: none;
    margin-top: 12px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f78309;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #f78309;
}

nav a:hover::after {
    width: 100%;
}

/* ======== MAIN ======== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #4a5568;
    line-height: 1.8;
}

/* ======== GRID ======== */
.productos-grid, .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    padding: 20px 10px;
}

/* ======== TARJETAS PROFESIONALES ======== */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: calc(0.1s * var(--i, 0));
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(66, 153, 225, 0.15);
    border-color: #bee3f8;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}

.card:hover img {
    transform: scale(1.03);
    border-color: #90cdf4;
}

.card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-detalles {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: 2px solid #4299e1;
    background: transparent;
    color: #2c5282;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-detalles::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: #4299e1;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-detalles:hover {
    color: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.btn-detalles:hover::before {
    width: 100%;
}

/* ======== FILTRO ======== */
#filtro {
    display: block;
    margin: 30px auto;
    padding: 12px 20px;
    width: 300px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    background: white;
    color: #2d3748;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#filtro:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* ======== MODAL ======== */
#modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 32px;
    width: 90%;
    max-width: 460px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    animation: modalPop 0.4s ease;
    text-align: center;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#modal h2 {
    color: #2c5282;
    margin-bottom: 16px;
}

#modal p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.7;
}

#modal button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #e53e3e;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#modal button:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

/* ======== ANIMACIÓN DE ENTRADA ======== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======== SECCIONES ======== */
section {
    margin-bottom: 60px;
}
/* ======== PARALLAX HERO ======== */
.parallax-hero {
    position: relative;
    height: 10vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.parallax-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 120%;
   background-image: url("img/MaquinaCNC_parallax.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ← EFECTO PARALLAX */
    z-index: 1;
    transform: none;
}




.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(26, 54, 93, 0.75);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    color: white;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    color: #e2e8f0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll; /* Evita problemas en móviles */
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

.map-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px; /* opcional */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}





/* ====================== FOOTER ====================== */
.site-footer {
    background: rgba(2, 19, 34, 0.856);
    color: #aaa;
    padding: 60px 20px 20px;
    margin-top: 100px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #e74c3c;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e74c3c;
}

.contact-info {
    list-style: none;
    padding: 0;
    line-height: 1.7;
}

.contact-info strong {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    color: #aaa;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: #555;
}

/* Año automático */
#year {
    font-weight: 600;
}

/* Responsivo extra */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-col {
        order: -1;
    }
}

.costu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    padding: 20px 10px;
}

.productos-grid, .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    padding: 20px 10px;
}
.costu-grid .card img {
    width: 100%;
    height: 120px;           
    object-fit: contain;     
    object-position: center; 
    background-color: #fff;  
    padding: 10px;           
    border-radius: 10px;     
}

/* ======== DOS COLUMNAS ======== */
.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.col {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Caja negra del título */
.box-title {
    background: #2c5282;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Listas internas */
.capacity-list {
    list-style: disc;
    margin-left: 20px;
    color: #4a5568;
    line-height: 1.8;
}

.capacity-list ul {
    list-style: circle;
    margin-left: 20px;
}

.btn-descarga {
    width: 100%;  /* O ajusta según necesites, e.g., auto para ancho automático */
    margin-top: 16px;
    padding: 12px;
    border: 2px solid #4299e1;
    background: transparent;
    color: #2c5282;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;  /* Para centrar el texto si no es width:100% */
    display: inline-block;  /* Para que se comporte como botón */
    text-decoration: none;  /* Quita subrayado de enlace */
}

.btn-descarga::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: #4299e1;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-descarga:hover {
    color: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.btn-descarga:hover::before {
    width: 100%;
}



/* ====================== GALERÍA ====================== */

/*TARDA MUCHO EN CARGAR LAS IMAGENES *BUSCAR COMO RESOLVERLO* */

#galeria-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    padding: 20px 10px;
}

/* Card especial de galería */
.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    cursor: pointer;
    transform: translateY(0);
    transition: transform .35s ease, box-shadow .35s ease;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(66,153,225,0.2);
}

/* Imagen principal */
.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

/* Overlay con info */
.gallery-info {
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
    color: white;
    transition: all 0.35s ease;
}

.gallery-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.gallery-info p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Hover levanta más el texto */
.gallery-card:hover .gallery-info {
    padding-bottom: 20px;
}

/* ====================== CONTACT FORM ====================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Labels */
.contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

/* Inputs & textarea */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #2d3748;
    transition: all 0.3s ease;
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0aec0;
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #4299e1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Textarea height */
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Button alignment */
.contact-form button {
    margin-top: 10px;
}

/* Optional small helper text */
.contact-form small {
    font-size: 0.8rem;
    color: #718096;
}

