@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Oswald:wght@600;700&display=swap');

:root {
    --brand-grey: #666d78;             /* Gris corporativo oficial */
    --brand-logo-bg: #666d78;          /* Color fondo de cabecera inicial */
    --accent-orange: #FF9F1C;          /* Naranja corporativo */
    --text-light: #F8F9FA;
    --text-dark: #1E252D;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --metal-grey-bg: linear-gradient(180deg, #666d78 0%, #828994 50%, #5a616c 100%);
    --metal-orange-bg: linear-gradient(135deg, #FFE0B2 0%, #FF9F1C 50%, #B35900 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, .section-tag-upper, .allies-tag {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.5;
}

/* --- LOGOS SIMÉTRICOS Y BARRA SUPERIOR --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-icon {
    width: auto;
    height: 65px !important; 
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-dark {
    display: none !important;
}

.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 85px;
    background: var(--metal-grey-bg) !important;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 2px solid #A0A7B1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* --- NAVEGACIÓN Y MENÚS --- */
.nav-menu {
    display: flex; gap: 30px;
    margin-left: auto;
    margin-right: 40px;
}

.nav-menu a {
    color: #ffffff !important;
    text-decoration: none; 
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--accent-orange) !important;
}

/* --- SCROLL DINÁMICO --- */
.main-header.scrolled,
.modal-header.scrolled {
    background-color: #ffffff !important;
    background-image: none !important; 
    height: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid #E2E8F0;
}

.main-header.scrolled .nav-menu a,
.modal-header.scrolled .nav-menu a {
    color: var(--text-dark) !important;
}

.main-header.scrolled .nav-menu a:hover,
.modal-header.scrolled .nav-menu a:hover {
    color: var(--accent-orange) !important;
}

.main-header.scrolled .logo-light,
.modal-header.scrolled .logo-light {
    display: none !important;
}

.main-header.scrolled .logo-dark,
.modal-header.scrolled .logo-dark {
    display: block !important;
}

/* --- BOTONES INDUSTRIALES --- */
.btn-primary {
    background: var(--metal-orange-bg) !important; 
    color: #1E252D !important;
    padding: 14px 28px; font-weight: 700; text-transform: uppercase;
    border: 1px solid #FFE0B2 !important;
    border-radius: 4px; cursor: pointer;
    font-size: 0.9rem; transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 159, 28, 0.45), inset 0 1px 4px rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    background-color: transparent; color: var(--text-light);
    padding: 14px 28px; font-weight: 600; text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1); color: #ffffff;
}

/* --- CONFIGURACIÓN DEL HERO --- */
.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex; 
    align-items: center;
    padding: 140px 10% 80px 10%;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 0;
}

.hero-slider-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.slide-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: industrialSlider5 50s linear infinite;
}

.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 10s; }
.slide-img:nth-child(3) { animation-delay: 20s; }
.slide-img:nth-child(4) { animation-delay: 30s; }
.slide-img:nth-child(5) { animation-delay: 40s; }

@keyframes industrialSlider5 {
    0% { opacity: 0; transform: scale(1); }
    3% { opacity: 1; }
    20% { opacity: 1; transform: scale(1.03); }
    23% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.hero-overlay { z-index: 1; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(30, 37, 45, 0.45); }
.hero-content { position: relative; z-index: 2; max-width: 750px; }

.hero-tag {
    display: inline-block; background-color: rgba(255, 159, 28, 0.2);
    color: var(--accent-orange); padding: 8px 18px; font-size: 1.0rem;
    font-weight: 700; text-transform: uppercase; border-radius: 4px; margin-bottom: 20px;
}

.hero-title {
    color: var(--text-light); font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 20px;
}

.text-orange, .emphasis-orange { color: var(--accent-orange); font-weight: 800; }
.hero-subtitle { color: #F8F9FA; font-size: 1.2rem; margin-bottom: 35px; max-width: 650px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* --- SECCIONES REUTILIZABLES --- */
.section-tag-upper {
    display: inline-block; color: var(--brand-grey); font-weight: 700;
    font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; text-transform: uppercase;
}

/* --- SECCIÓN NOSOTROS --- */
.about-section { padding: 100px 5%; background-color: #ffffff; }

.about-container {
    max-width: 1200px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start;
}

.about-text h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 25px; line-height: 1.2; }
.about-paragraph { color: #5A6573; font-size: 1.1rem; line-height: 1.7; margin-bottom: 20px; }

.mission-box {
    grid-column: 1 / -1;
    margin-top: 20px; padding: 25px;
    border-left: 4px solid var(--accent-orange); 
    background-color: #f8fafc; 
    border-radius: 0 8px 8px 0;
}

.mission-title { font-size: 1rem; font-weight: 800; letter-spacing: 1px; color: var(--text-dark); margin-bottom: 8px; }
.mission-text { color: #4B5563; font-size: 1.1rem; line-height: 1.7; font-style: italic; }

.about-image-wrapper {
    width: 100%; height: 490px; background-color: #f1f5f9;
    border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-img-placeholder { width: 100%; height: 100%; object-fit: cover; }

/* --- SECCIÓN SERVICIOS CENTRADOS (2x2) Y EFECTO HOVER --- */
.services-section { padding: 80px 5% 100px 5%; background-color: #ffffff; text-align: center; }
.services-header { max-width: 800px; margin: 0 auto 60px auto; }
.services-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; }
.section-subtitle { color: #5A6573; font-size: 1.15rem; }

/* Rejilla centrada 2x2 */
.services-grid {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    justify-content: center;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(255, 159, 28, 0.35);
}

.service-icon-container { width: 100px; height: 100px; margin: 0 auto 15px auto; display: flex; align-items: center; justify-content: center; }

.industrial-icon {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: grayscale(50%) opacity(0.8); mix-blend-mode: multiply;
    transition: var(--transition-smooth);
}

.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.service-card p { color: #626E7C; font-size: 0.98rem; line-height: 1.6; margin-bottom: 15px; }

/* Botón 'Explorar' en hover */
.explore-btn {
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.service-card:hover .explore-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- SECCIÓN CONTACTO --- */
.contact-section { padding: 100px 5%; background-color: #f8fafc; }
.contact-header { text-align: center; max-width: 800px; margin: 0 auto 60px auto; }
.contact-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; }

.contact-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.8fr; gap: 50px;
}

.contact-info { display: flex; flex-direction: column; gap: 35px; justify-content: center; }
.info-block { display: flex; align-items: center; gap: 20px; }

.info-icon {
    width: 55px; height: 55px; background-color: #ffffff; border-radius: 50px;
    display: flex; align-items: center; justify-content: center; color: var(--brand-grey);
    font-size: 1.3rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #E2E8F0;
}

.info-text h5 { font-size: 1.1rem; color: var(--text-dark); font-weight: 700; margin-bottom: 4px; }
.info-text p { color: #5A6573; font-size: 1rem; }

.contact-form-wrapper {
    background: #ffffff; padding: 40px; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03); border: 1px solid #E2E8F0;
}

.industrial-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: #4A5568; }

.form-group input, .form-group textarea {
    padding: 12px 16px; border-radius: 6px; border: 1px solid #CBD5E1;
    font-family: var(--font-main); font-size: 0.95rem; color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--brand-grey);
    box-shadow: 0 0 0 3px rgba(102, 109, 120, 0.15);
}

/* --- FOOTER --- */
.main-footer { 
    background: var(--metal-grey-bg) !important; 
    color: #E2E8F0; 
    padding: 60px 5% 30px 5%; 
    border-top: 2px solid #A0A7B1;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3); 
}

.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.logo-text { color: var(--text-light); font-size: 24px; font-weight: 800; }
.logo-dot { color: var(--accent-orange); }
.footer-brand p { font-size: 0.95rem; margin-top: 15px; max-width: 400px; opacity: 0.8; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h5 { color: white; font-size: 1.1rem; margin-bottom: 8px; }
.footer-links a { color: #CBD5E1; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent-orange); }

.footer-bottom {
    max-width: 1200px; margin: 40px auto 0 auto; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.85rem; opacity: 0.7;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-floating-btn {
    position: fixed; bottom: 30px; right: 30px; background-color: #25D366;
    padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: white; font-weight: 700; font-size: 0.95rem;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* --- ESTILOS DE LA VENTANA MODAL (OVERLAY) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: #ffffff;
}

/* Botón Cierre Modal */
.close-modal-btn {
    position: fixed;
    top: 20px;
    right: 25px;
    background: var(--accent-orange);
    color: #1E252D;
    border: none;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #ffffff;
    color: var(--accent-orange);
}

/* Header propio dentro del Modal */
.modal-header {
    position: sticky;
    top: 0; left: 0; width: 100%; height: 85px;
    background: var(--metal-grey-bg) !important;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1001;
    transition: var(--transition-smooth);
    border-bottom: 2px solid #A0A7B1;
}

/* Sección Central: Sitio en Construcción */
.under-construction-body {
    padding: 100px 5%;
    text-align: center;
    background-color: #f8fafc;
}

.construction-icon {
    font-size: 4rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.construction-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.construction-subtitle {
    font-size: 1.2rem;
    color: #5A6573;
    max-width: 600px;
    margin: 0 auto;
}

/* Selector de Idiomas */
.lang-selector { position: relative; display: inline-block; cursor: pointer; padding: 5px 10px; }
.lang-current { display: flex; align-items: center; gap: 8px; }
.flag-icon { width: 24px; height: auto; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); display: inline-block; vertical-align: middle; }
.arrow-down { font-size: 10px; color: #ffffff; transition: transform 0.3s ease; }

.lang-dropdown {
    position: absolute; top: 100%; right: 0; background-color: #ffffff; min-width: 120px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15); border-radius: 4px; list-style: none;
    padding: 0; margin: 8px 0 0 0; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000;
}

.lang-dropdown li { padding: 10px 12px; color: #333333; display: flex; align-items: center; gap: 10px; font-size: 14px; transition: background 0.2s ease; }
.lang-dropdown li:hover { background-color: #f5f5f5; }
.lang-selector:hover .lang-dropdown { opacity: 1; visibility: visible; }
.lang-selector:hover .arrow-down { transform: rotate(180deg); }

/* --- EFECTO ZOOMWORD POR SCROLL --- */
.zoom-word {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.5s ease;
    transform: scale(1);
}

.zoom-word.active { animation: industrialZoomEffect 1.2s ease forwards; }

@keyframes industrialZoomEffect {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); text-shadow: 0 0 15px rgba(255, 159, 28, 0.6); }
    100% { transform: scale(1.05); text-shadow: 0 0 8px rgba(255, 159, 28, 0.2); }
}

/* Responsive */
@media (max-width: 992px) { 
    .contact-container { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) {
    .nav-menu, .header-action { display: none; }
    .about-container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}
/* --- CONTENIDO DE SERVICIOS DENTRO DEL MODAL --- */
.modal-service-content {
    padding: 80px 5% 100px 5%;
    text-align: center;
    background-color: #ffffff;
}
/* --- SUB-MODAL DE SERVICIOS (Corte y Plegado, Laser, Elevación, Industrial) --- */
.subservice-body-container {
    padding: 120px 5% 100px 5%;
    text-align: center;
    background-color: #ffffff;
    min-height: 100vh;
}

.subservice-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.subservice-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.subservice-img {
    width: 300px;
    max-width: 30%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(80px);
}

/* Animación: aparecen de derecha a izquierda, 1s de diferencia entre cada una */
.subservice-images.animate .img-1 {
    animation: deslizarDesdeDerecha 0.7s ease forwards;
    animation-delay: 0s;
}
.subservice-images.animate .img-2 {
    animation: deslizarDesdeDerecha 0.7s ease forwards;
    animation-delay: 1s;
}
.subservice-images.animate .img-3 {
    animation: deslizarDesdeDerecha 0.7s ease forwards;
    animation-delay: 2s;
}

@keyframes deslizarDesdeDerecha {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

.subservice-description {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #5A6573;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .subservice-img { max-width: 90%; width: 100%; }
}
/* --- ÍCONOS MÁS GRANDES SOLO DENTRO DE MANTENIMIENTO PREVENTIVO --- */
#content-mantenimiento .service-icon-container {
    overflow: visible;
    margin-bottom: 45px; /* un poco más de espacio para que la imagen más grande no choque con el título */
}

/* La imagen crece más allá del tamaño del contenedor */
#content-mantenimiento .industrial-icon {
    width: 190px;
    height: 190px;
    max-width: 190px;
    max-height: 190px;
}