/* =========================
   RESET BÁSICO
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   CONTENEDOR PRODUCTOS
   ========================= */
.productos {
    display: grid;

    /* 🔥 automático y sin deformarse */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 15px;

    padding: 30px 5%;

    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   TARJETA
   ========================= */
.producto {
    background: #fff;

    border-radius: 10px;

    padding: 12px;

    text-align: center;

    box-shadow: 0 3px 8px rgba(0,0,0,0.1);

    transition: 0.3s;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* =========================
   HOVER
   ========================= */
.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* =========================
   IMAGEN
   ========================= */
.producto img {
    width: 100%;

    height: 140px;

    object-fit: contain;

    margin-bottom: 10px;
}

.descripcion {
    font-size: 13px;
    color: #555;
    margin: 8px 0 12px 0;
    line-height: 1.3;
}

/* =========================
   BOTÓN
   ========================= */
.ver {
    display: inline-block;

    padding: 8px 12px;

    background: #007BFF;

    color: white;

    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;

    transition: 0.3s;
}

.ver:hover {
    background: #0056b3;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
    .productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .productos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .productos {
        grid-template-columns: 1fr;
    }
}
/* =========================
   CONTENEDOR DEL CARRUSEL
   ========================= */
.swiper {
    width: 100%;
    height: 300px; /* 🔥 controla la altura */
}


/* =========================
   SLIDE
   ========================= */
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   IMAGEN DEL BANNER
   ========================= */
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 recorta sin deformar */
}


/* =========================
   TEXTO ENCIMA (overlay)
   ========================= */
.banner-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);

    color: white;
}

.text-overlay h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.text-overlay h3 {
    font-size: 20px;
}

/* --- AJUSTES PARA CELULARES (Responsive) --- */
@media (max-width: 700px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    .modal-content h2 { font-size: 1.2rem; }
    .contact-number { font-size: 1.1rem; }
}
/* Botón de cerrar dentro del menú móvil */
.close-menu {
    display: none; /* Oculto en computadora */
    color: #f1b42f;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .close-menu {
        display: block; /* Se muestra solo en celular */
    }
    
    /* Asegúrate de que las líneas NO se muevan */
    .hamburger.toggle span {
        transform: none !important;
        opacity: 1 !important;
    }
}
/* Contenedor principal del logo y texto parte superior
izquierda alcon  */
.navbar-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 12px; /* Espacio entre el círculo y el texto */
}

/* Estilo para la imagen circular del logo */
.navbar-logo {
    height: 50px; /* Ajusta según el tamaño de tu navbar */
    width: auto;
    display: block;
}

/* Contenedor del texto al lado del logo */
.navbar-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-slogan {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Ajuste general del navbar para que todo fluya en línea */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #333; /* Color oscuro como el de tu imagen */
}

/* --- FOOTER --- */
.simple-footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: auto;
}

/* --- MENÚ MÓVIL Y HAMBURGUESA (CORREGIDO) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f1b42f;
}

@media (max-width: 900px) {
    .hamburger { display: flex; }

    .projects-container, .projects-container.compact {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 2000;
    }

    .nav-links.active { right: 0; }

    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        color: #f1b42f;
        cursor: pointer;
    }
}


