/* style.css - Versión 6.0 */
:root {
    --primary: #004e92;
    --secondary: #000428;
    --accent: #4facfe;
    --text: #333;
    --bg-light: #f8f9fa;
    /* FOOTER AHORA ES AZUL */
    --footer-bg: #004e92;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background: var(--bg-light); color: var(--text); display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* --- HERO --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--secondary), var(--primary)); 
    background-size: cover; background-position: center;
    color: white; text-align: center;
    min-height: 75vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;     
    padding-top: 8rem; padding-bottom: 6rem;
}
.logo-box-container { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: center; z-index: 10; }
.logo-box { background: white; padding: 1.5rem 3rem; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: all 0.3s ease; }
.logo-box img { height: 70px; display: block; object-fit: contain; transition: all 0.3s ease; }
@media (max-width: 768px) { .logo-box { padding: 1rem 1.5rem; } .logo-box img { height: 45px; } }

.hero-content { position: relative; z-index: 5; width: 100%; max-width: 900px; margin: 0 auto; text-shadow: 0 2px 10px rgba(0,0,0,0.7); padding: 0 20px; }
.hero-content h2 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; line-height: 1.2; }
.hero-content p { font-size: 1.5rem; opacity: 1; font-weight: 300; }
@media (max-width: 768px) { .hero-content h2 { font-size: 2.2rem; } .hero-content p { font-size: 1.1rem; } }

/* Ondas */
.wave-container { position: absolute; bottom: 0; width: 100%; height: 120px; overflow: hidden; line-height: 0; }
.waves { position: relative; width: 100%; height: 100%; margin-bottom: -7px; min-height: 100px; max-height: 150px; }
.parallax > use { animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite; }
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }
@keyframes move-forever { 0% { transform: translate3d(-90px,0,0); } 100% { transform: translate3d(85px,0,0); } }

/* --- SECCIONES GENÉRICAS --- */
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
.section-title { text-align: center; color: var(--primary); font-size: 2.2rem; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 1px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 3rem; font-size: 1.5rem; font-weight: 300; }

/* --- SERVICIOS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; }
.service-card { background: white; padding: 2.5rem 2rem; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); text-align: center; height: 100%; transition: transform 0.3s ease; border-top: 5px solid var(--accent); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.icon-wrapper img { height: 65px; margin-bottom: 1.5rem; object-fit: contain; }
.service-card h3 { color: var(--secondary); margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: bold; text-transform: uppercase; }
.service-list { list-style: none; text-align: left; padding: 0 5px; }
.service-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: #555; font-size: 1rem; line-height: 1.4; }
.service-list li::before { content: ""; display: block; width: 8px; height: 8px; background-color: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* --- NUEVO: GRUPO EMPRESAS (ELEGANTE) --- */
.group-bg { background: #f0f4f8; border-top: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }

.group-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--accent);
}
.group-icon { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.group-icon img { max-height: 100%; max-width: 100%; object-fit: contain; }
.group-card h4 { color: var(--secondary); font-size: 1.3rem; margin-bottom: 15px; font-weight: 700; }
.group-card p { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.group-link { display: inline-block; color: var(--primary); font-weight: bold; border: 1px solid var(--primary); padding: 8px 15px; border-radius: 50px; transition: 0.3s; font-size: 0.9rem; }
.group-link:hover { background: var(--primary); color: white; }

/* --- CLIENTES (MARQUEE) --- */
.marquee { overflow: hidden; width: 100%; position: relative; padding: 20px 0; }
.marquee-content { display: flex; gap: 60px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.marquee-item img { height: 70px; width: auto; object-fit: contain; /* A COLOR, SIN FILTRO */ }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve la mitad (porque duplicamos el contenido) */
}

/* --- FOOTER AZUL & COOKIES --- */
.footer-wrapper { margin-top: auto; }
.waves-footer { width: 100%; height: 80px; display: block; margin-bottom: -1px; }
.main-footer { background: var(--footer-bg); color: rgba(255,255,255,0.8); padding: 3rem 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; text-align: center; }
@media(min-width: 768px) { .footer-content { text-align: left; } }
.footer-col h4 { color: white; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 10px; display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: white; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 1.5rem; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.credits a { color: white; font-weight: bold; }

/* Cookies */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: white; border-top: 5px solid var(--primary); box-shadow: 0 -5px 30px rgba(0,0,0,0.15); padding: 2rem; z-index: 9999; display: none; justify-content: center; align-items: center; }
.cookie-content { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; max-width: 1000px; }
@media(min-width: 768px) { .cookie-content { flex-direction: row; text-align: left; } }
.cookie-content p { font-size: 0.95rem; color: #444; margin: 0; }
.cookie-buttons { flex-shrink: 0; }
.btn-accept, .btn-reject { padding: 12px 25px; border: none; border-radius: 50px; cursor: pointer; font-weight: bold; margin-left: 10px; transition: 0.2s; }
.btn-accept { background: var(--primary); color: white; } .btn-accept:hover { background: var(--secondary); }
.btn-reject { background: #f1f1f1; color: #333; } .btn-reject:hover { background: #ddd; }

/* Admin */
.admin-panel input[type="text"], .admin-panel input[type="password"], textarea { width: 100%; padding: 10px; margin: 5px 0; border: 1px solid #ccc; border-radius: 4px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 10px 20px; cursor: pointer; border-radius: 4px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.admin-cat-card { background: white; padding: 20px; border-radius: 8px; border: 1px solid #ddd; position: relative; }
.cat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.btn-delete { margin-left: auto; color: red; font-weight: bold; cursor: pointer; }
.service-form { display: flex; gap: 5px; }
.del-small { color: red; font-size: 0.8rem; margin-left: 5px; }
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; background: var(--secondary); }
.login-form { background: white; padding: 2rem; border-radius: 8px; text-align: center; width: 100%; max-width: 400px; }