/* --- CONFIGURACIÓN GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* --- NAVEGACIÓN --- */
.navbar {
    background: #ffffff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-btn {
    background: #3498db;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 5px;
}

/* BOTÓN HAMBURGUESA CSS */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,30,60,0.7), rgba(0,30,60,0.7)), url('img/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* --- BOTONES DEL HERO (CORREGIDOS) --- */
.hero-btns {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none; /* Esto quita el subrayado */
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white !important;
    border: 2px solid #3498db;
}

.btn-secondary {
    background: transparent;
    color: white !important;
    border: 2px solid #fff;
}

/* Efectos al pasar el ratón */
.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background: #fff;
    color: #1a2a3a !important;
    transform: translateY(-3px);
}

/* --- SERVICIOS --- */
.services {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1a2a3a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-card:hover { transform: translateY(-10px); }

.img-serv {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- CONTACTO --- */
.contact {
    padding: 80px 0;
    background: #1a1a1a;
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.info-card {
    margin-bottom: 30px;
}

.info-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
}

/* --- FORMULARIO --- */
.form-section {
    padding: 60px 0;
    background: #f0f2f5;
}

.container-form {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn-enviar {
    width: 100%;
    background: #3498db;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* --- WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    z-index: 2000;
}

/* --- RESPONSIVE / MÓVIL --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Mostrar hamburguesa */
    }

    .nav-links {
        display: none; /* Ocultar por defecto */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Se muestra al pulsar */
    }

    .nav-links li { margin: 15px 0; width: 100%; text-align: center; }
    .nav-links li a { margin-left: 0; font-size: 1.2rem; }

    .hero h1 { font-size: 2.2rem; }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* --- NUEVA SECCIÓN TIENDA --- */
.shop-section {
    padding: 80px 0;
    background: #ffffff; /* Fondo blanco para contrastar con el gris de servicios */
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.shop-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.shop-card i {
    font-size: 2.5rem;
    color: #3498db; /* Tu azul corporativo */
    margin-bottom: 20px;
}

.shop-card h3 {
    margin-bottom: 15px;
    color: #1a2a3a;
}

.shop-card p {
    font-size: 0.95rem;
    color: #666;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

/* Tarjeta resaltada para Fotocopias */
.shop-card.highlight {
    background: #f0f8ff; /* Un azul muy clarito para destacar */
    border: 1px dashed #3498db;
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr; /* En móvil una debajo de otra */
    }
}

/* Estilo para el contenedor del mapa */
.contact-map {
    border-radius: 15px; /* Bordes suaves */
    overflow: hidden;    /* Para que el mapa respete el redondeado */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Una sombra elegante */
    border: 1px solid #eee;
}

/* Ajuste para que el mapa ocupe todo su contenedor */
.contact-map iframe {
    display: block;
    width: 100%;
}

/* Si usas display: grid en contact-grid, esto lo hace responsivo */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas en PC */
    gap: 30px;
    margin-top: 40px;
}

/* En móviles, el mapa se pone debajo de la info */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CORRECCIÓN DE IMAGEN DE FONDO EN MÓVIL --- */
@media (max-width: 768px) {
    #inicio {
        /* Reducimos la altura para que la imagen no necesite estirarse tanto */
        height: 35vh !important; 
        
        /* Centramos la imagen para que el recorte sea equitativo */
        background-position: center center !important;
        
        /* Evitamos el efecto parallax que a veces causa zoom en iPhone/Android */
        background-attachment: scroll !important;
    }

    /* Ajuste opcional: si el texto del Hero se pisa, bajamos el tamaño */
    .hero h1 {
        font-size: 1.8rem !important;
    }
}

/* --- BOTONES SOCIALES FLOTANTES --- */
.social-btn {
    position: fixed;
    right: 30px; /* Misma distancia que tu WhatsApp */
    width: 60px; /* Mismo tamaño que tu WhatsApp */
    height: 60px; /* Mismo tamaño que tu WhatsApp */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px; /* Mismo tamaño de icono que tu WhatsApp */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* Posición y color de Instagram */
.ig-btn {
    bottom: 100px; /* Justo encima de WhatsApp (30px + 60px + 10px de margen) */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Posición y color de Facebook */
.fb-btn {
    bottom: 170px; /* Encima de Instagram (100px + 60px + 10px de margen) */
    background-color: #1877f2;
}

/* Efecto al pasar el ratón */
.social-btn:hover {
    transform: scale(1.1);
}

/* Pequeño ajuste responsivo para que no tapen mucho la pantalla en móvil */
@media (max-width: 768px) {
    .whatsapp-btn, .social-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px; /* Solo necesario para WhatsApp según tu código */
        right: 15px;
    }
    
    .whatsapp-btn {
        bottom: 15px;
    }
    
    .ig-btn {
        bottom: 75px;
    }
    
    .fb-btn {
        bottom: 135px;
    }
}

