/* --- VARIABLES --- */
:root {
    --bg-dark: #0a0a0a;
    --accent: #d35400; /* Naranja Óxido */
    --text-main: #e0e0e0;
    --font-head: 'Black Ops One', cursive;
    --font-body: 'Roboto', sans-serif;
    --whatsapp-green: #25d366;
}

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

/* --- FONDO --- */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    background-image: 
        linear-gradient(rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.96)),
        url('patroncalavera.jpg');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 300px;
}

/* --- NAV --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: rgba(0,0,0,0.95); position: fixed; width: 100%; z-index: 1000; border-bottom: 1px solid #333;
}
.logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--text-main); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: white; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.btn-nav { border: 1px solid var(--accent); padding: 5px 15px; color: var(--accent) !important; }

.menu-toggle { display: none; background: transparent; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    background: url('fondometal.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 5%;
    overflow: hidden;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-container {
    position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}

.hero-text { flex: 1; min-width: 300px; margin-right: 20px; z-index: 3; }
.hero h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1; margin-bottom: 10px; color: #fff; text-shadow: 2px 2px 10px #000; }
.slogan-main { font-size: 1.2rem; color: var(--accent); margin-bottom: 30px; letter-spacing: 2px; }

.hero-img-box { flex: 1.2; display: flex; justify-content: center; }
.hero-featured-img {
    max-width: 100%;
    width: 800px; 
    border: none; 
    filter: drop-shadow(0px 15px 30px rgba(0,0,0,0.9));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- BOTONES --- */
.cta-group { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--accent); color: white; padding: 15px 30px; text-decoration: none; font-weight: bold; border: 2px solid var(--accent); margin-bottom: 10px; }
.btn-secondary { display: inline-block; background: transparent; color: white; padding: 15px 30px; text-decoration: none; font-weight: bold; border: 2px solid white; margin-bottom: 10px; }

/* --- GALERÍA --- */
section { padding: 80px 5%; border-bottom: 1px solid #222; }
.section-header { text-align: center; margin-bottom: 60px; }
h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--text-main); border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: 10px; }
.subtitle { display: block; margin-top: 10px; color: #888; letter-spacing: 2px; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.card { background: #141414; border: 1px solid #333; transition: 0.3s; }
.card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.card-img { 
    height: 300px; 
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center; 
    background-color: #050505; 
    filter: grayscale(60%); 
    transition: 0.3s; 
}
.card:hover .card-img { filter: grayscale(0%); }
.card-info { padding: 25px; }
.card-info h3 { font-family: var(--font-head); color: white; margin-bottom: 10px; font-size: 1.3rem; }
.card-info p { color: #aaa; font-size: 0.9rem; margin-bottom: 15px; }
.tag { font-size: 0.75rem; background: #222; color: var(--accent); padding: 5px 10px; border: 1px solid #444; font-weight: bold; }

/* --- HISTORIA --- */
.text-section { text-align: center; background: rgba(0,0,0,0.3); }
.content-box { max-width: 700px; margin: 0 auto; }
.lead { font-size: 1.4rem; color: var(--accent); font-style: italic; margin-bottom: 30px; }
.divider { border: 0; height: 1px; background: #333; width: 100px; margin: 30px auto; }

/* --- FOOTER --- */
footer { background: #050505; padding: 80px 5% 30px 5%; border-top: 4px solid var(--accent); color: #ccc; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; max-width: 1200px; margin: 0 auto; gap: 50px; }
.footer-info { flex: 1; min-width: 300px; text-align: left; }
.footer-info h3 { font-family: var(--font-head); font-size: 2.5rem; color: white; margin-bottom: 10px; }
.slogan-footer { color: var(--accent); font-weight: bold; letter-spacing: 2px; margin-bottom: 20px; }
.contact-details p { margin-bottom: 15px; color: #fff; font-size: 1.1rem; }
.socials { margin-top: 30px; font-weight: bold; }
.socials a { color: white; text-decoration: none; transition: 0.3s; }
.socials a:hover { color: var(--accent); }
.mail-link { color: var(--accent); text-decoration: none; font-weight: bold; }
.mail-link:hover { text-decoration: underline; color: white; }

.form-wrapper { flex: 1; min-width: 300px; background: #111; padding: 30px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.input-field { width: 100%; padding: 15px; background: #1a1a1a; border: 1px solid #333; color: white; font-family: var(--font-body); font-size: 1rem; transition: 0.3s; outline: none; }
.input-field:focus { border-color: var(--accent); background: #222; }
.full-width { width: 100%; text-align: center; cursor: pointer; border: none; font-size: 1.1rem; }
.copyright { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid #222; font-size: 0.8rem; color: #555; }

/* --- WHATSAPP --- */
.whatsapp-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.whatsapp-bubble {
    background: white; color: #333; padding: 10px 15px; border-radius: 10px 10px 0 10px; font-size: 0.9rem; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3); max-width: 200px; text-align: right; opacity: 0; transform: translateY(20px); animation: bubble-appear 0.5s ease-out forwards; animation-delay: 2s;
}
.btn-whatsapp {
    background-color: var(--whatsapp-green); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(0,0,0,0.4); transition: transform 0.3s ease; animation: whatsapp-pulse 3s infinite;
}
.btn-whatsapp:hover { transform: scale(1.1); background-color: #1ebe57; }
@keyframes bubble-appear { to { opacity: 1; transform: translateY(0); } }
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MÓVIL (AQUÍ ESTÁ EL CAMBIO) --- */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 20px; }
    .hero-text { margin-right: 0; margin-bottom: 50px; }
    .hero h1 { font-size: 3rem; }
    .cta-group { justify-content: center; }
    .hero-featured-img { width: 90%; max-width: 500px; }
    .footer-container { flex-direction: column; }
    .footer-info { text-align: center; }
    .whatsapp-container { bottom: 20px; right: 20px; }
    .btn-whatsapp { width: 50px; height: 50px; }
    
    /* ESTA LÍNEA OCULTA EL GLOBO DE TEXTO EN CELULARES */
    .whatsapp-bubble { display: none; }

    .menu-toggle { display: block; z-index: 1001; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: #0a0a0a; flex-direction: column; justify-content: center; transition: 0.4s; border-left: 2px solid var(--accent); box-shadow: -10px 0 20px rgba(0,0,0,0.8);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; }
}