:root {
    --primary-blue: #0056b3; /* Azul oscuro del logo */
    --sky-blue: #87CEEB;     /* Azul Cielo */
    --accent-orange: #f39c12; /* Naranja botones */
    --text-dark: #2C3E50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Estilos para el buscador del sidebar */
.search-filter .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-filter input {
    width: 100%;
    padding: 10px 35px 10px 15px; /* Espacio para el icono a la derecha */
    border: 1px solid #ddd;
    border-radius: 25px; /* Bordes redondeados modernos */
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 0.9rem;
}

.search-filter input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

.search-filter i {
    position: absolute;
    right: 15px;
    color: var(--text-light);
    pointer-events: none; /* Para que el click pase al input */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    justify-content: center;    
    align-items: center; 
    overflow: hidden;
    height: 70px;
    
}   
.logo img {
    object-fit: cover;
    width: auto;
    height: 400%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-orange);
}

.btn-whatsapp {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section (Efecto Cielo) --- */
.hero {
    position: relative;
    /* Gradiente que simula el cielo */
    background: linear-gradient(180deg, #3498db 0%, #87CEEB 60%, #ffffff 100%);
    height: 550px; /* Ajustar según necesidad */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Nubes decorativas (opcional, simulado con CSS o imagen de fondo) */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/clouds.png'); /* Textura sutil */
    opacity: 0.5;
    pointer-events: none;
}

/* ESTILOS RECIÉN LLEGADAS */
.new-arrivals {
    padding: 60px 0;
    background-color: #f4f7f6; /* Un gris muy suave para diferenciar la sección */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.highlight {
    color: #0056b3; /* Azul similar al de tu logo */
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* GRID DE TARJETAS */
.arrivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* DISEÑO DE LA TARJETA */
.machine-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Sombra suave inicial */
    transition: all 0.3s ease; /* Suaviza la animación */
    position: relative;
    border: 1px solid #eee;
}

/* EFECTO AL PASAR EL MOUSE (HOVER) - AQUÍ ESTÁ LA MAGIA */
.machine-card:hover {
    transform: translateY(-10px); /* La tarjeta flota hacia arriba */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Sombra más fuerte */
}

/* ETIQUETA NUEVO/OFERTA */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757; /* Rojo llamativo */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-image {
    margin-top: 8%;
    height: 220px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto llene el espacio */
    transition: transform 0.5s ease;
}

.machine-card:hover .card-image img {
    transform: scale(1.05); /* Zoom suave en la imagen */
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.specs {
    color: #0056b3;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.desc {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* BOTÓN DE COTIZAR */
.btn-card {
    display: inline-block;
    background: #25D366; /* Verde WhatsApp */
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-card:hover {
    background: #128C7E; /* Verde más oscuro al pasar el mouse */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
    color: var(--white);
    margin-bottom: 80px; /* Subir un poco el texto */
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    background: var(--white);
    padding: 5px;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    padding: 10px 20px;
    flex: 1;
    border-radius: 50px;
    outline: none;
}

.search-box button {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-image img {
    max-width: 140%; /* Hacemos la máquina grande e imponente */
    transform: translateX(-10%) translateY(10%); /* Ajuste de posición */
    filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.3));
}

/* --- Services Cards (Flotando sobre el Hero) --- */
.services {
    margin-top: -80px; /* Truco para superponer */
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-blue {
    font-size: 2.5rem;
    color: var(--primary-blue); /* Iconos outline como en el diseño */
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* --- Products Grid --- */
.products {
    padding: 40px 0;
}

.section-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas exactas como la imagen */
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: contain; /* Mantiene la proporción de la máquina */
    margin-bottom: 15px;
}

.card-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Brands --- */
.brands {
    padding: 40px 0;
    text-align: center;
}

.brands-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4; /* Grisáceo */
    flex-wrap: wrap;
}

.brands-container img {
    width: 150px;
}
/* --- Footer --- */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials i {
    color: white;
    margin-left: 15px;
    cursor: pointer;
}
/* --- ESTILOS PÁGINA DE VENTA --- */

/* Cabecera "Banner" (más corta que el Hero del inicio) */
.page-header {
    background: linear-gradient(180deg, #3498db 0%, #87CEEB 100%);
    height: 250px; /* Mucho más corto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Layout Grid: Sidebar + Productos */
.catalog-container {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar fijo 250px, resto flexible */
    gap: 30px;
    align-items: start;
    padding-bottom: 50px;
}

/* Sidebar de Filtros */
.sidebar {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.filter-box {
    margin-bottom: 20px;
}

.filter-box h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.filter-box label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.filter-box select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.btn-filter-apply {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Grid de Productos en Catálogo */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsivo automático */
    gap: 20px;
}

/* Mejoras a la Tarjeta para Venta */
.sale-card .specs {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    background: #f8f9fa;
    padding: 5px;
    border-radius: 5px;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.price {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.btn-details {
    background-color: var(--text-dark); /* Botón oscuro para detalles */
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-details:hover {
    background-color: var(--accent-orange); /* Naranja al pasar el mouse */
}

/* --- Responsive para Venta --- */
@media (max-width: 768px) {
    .catalog-container {
        grid-template-columns: 1fr; /* Sidebar pasa arriba o abajo */
    }
    
    .sidebar {
        margin-bottom: 30px;
    }
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    
    /* 1. Añadimos espacio seguro entre elementos para que no se toquen */
    .nav-container {
        gap: 10px; 
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px; /* Ajustado para que no tape el header */
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999; /* Asegura que esté por encima de todo */
    }

    /* 2. ARREGLO DEL BOTÓN: Quitamos el 50% de ancho y reducimos tamaño */
    .btn-whatsapp {
        width: auto; /* Dejar que ocupe solo lo necesario */
        margin-right: 0; /* Quitamos margen innecesario */
        padding: 8px 12px; /* Botón más compacto */
        font-size: 0.85rem; /* Letra un poco más pequeña */
        white-space: nowrap; /* Evita que el texto se parta en dos líneas */
        display: flex; /* Para alinear icono y texto */
        align-items: center;
        gap: 5px;
    }
    .hero {
        height: auto; /* Importante: deja que la altura se adapte al contenido */
        padding-top: 40px; /* Empuja el contenido hacia abajo para que no toque la barra */
        padding-bottom: 80px; /* Espacio extra abajo */
        align-items: flex-start; /* Alinea al inicio, no al centro vertical */
    }

    /* 2. ARREGLO DEL TEXTO: Le damos aire arriba */
    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
        margin-top: 20px; /* Asegura que el título baje */
    }

    /* 3. ARREGLO DE LA IMAGEN: Para que no estorbe al texto */
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        transform: none; /* Quitamos la inclinación de escritorio */
        max-width: 80%; /* La hacemos un poco más pequeña */
        margin-top: 0;
    }
    
    /* 4. Ajuste del tamaño del título para móviles */
    .hero-text h2 {
        font-size: 2rem; /* Reducimos la letra gigante de 3rem a 2rem */
    }
    
    
    /* Opcional: Si la pantalla es MUY pequeña (móviles viejos), ocultamos el texto */
    @media (max-width: 380px) {
        .btn-whatsapp span {
            display: none; /* Ocultaría el texto si lo tuvieras en un span */
        }
        .btn-whatsapp {
            font-size: 1.2rem; /* Icono más grande */
            padding: 8px 10px;
        }
    }

    .logo img {
        object-fit: cover;
        width: auto;
        height: 250%; /* Reduje un poco la altura excesiva (340%) para evitar desbordes */
    }

    /* 3. Menú Hamburguesa */
    .menu-toggle {
        display: block;
        font-size: 1.8rem; /* Un poco más grande para el dedo */
        color: var(--primary-blue);
        margin-left: 5px; /* Separación del botón de wsp */
    }
    
    /* ... El resto de tu CSS móvil (hero, grids, etc) se queda igual ... */
    .nav-links.active { display: flex; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text { padding-right: 0; margin-bottom: 20px; }
    .hero-image img { transform: none; max-width: 100%; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-container img { width: 100px; }
}
/* --- ESTILOS PÁGINA NOSOTROS --- */

/* Sección Intro (Texto + Imagen) */
.about-intro {
    padding: 60px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sub-title {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0px rgba(0, 86, 179, 0.1); /* Sombra decorativa azul */
}

/* Estadísticas rápidas */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Sección de Políticas (Tarjetas) */
.policies-section {
    background-color: var(--bg-light); /* Fondo gris claro */
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.policy-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid transparent; /* Borde inferior invisible */
}

.policy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-orange); /* Aparece borde naranja al hover */
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 86, 179, 0.1); /* Azul muy suave */
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

.policy-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.policy-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Sección CTA Final */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://s7d2.scene7.com/is/image/Caterpillar/CM20200318-6f685-c54f2'); /* Fondo oscuro con imagen */
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    background-attachment: fixed; /* Efecto Parallax opcional */
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-whatsapp-large {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s;
}

.btn-whatsapp-large:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Responsive para Nosotros */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1; /* Pone la imagen arriba del texto en celular */
        margin-bottom: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    @media (max-width: 768px) {

    .about-image img {
        height: 250px;       /* Altura fija razonable para celular */
        width: 100%;         /* Ancho completo */
        object-fit: cover;   /* IMPORTANTE: Recorta la imagen para que no se deforme */
        object-position: center; /* Centra el recorte */
    }
}

}