/* Variables de Diseño */
:root {
    --primary: #004a99;
    --accent: #ff6600;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --dark: #222;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark);
    background-color: var(--bg-light);
}

/* Header */
.top-bar {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.8rem; font-weight: bold; color: var(--primary); }
.phone-link { 
    text-decoration: none; color: var(--primary); 
    font-weight: bold; border: 2px solid var(--primary);
    padding: 5px 15px; border-radius: 5px;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://promaxmexico.com.mx/wp-content/uploads/2023/06/rapara-lavadora.png');
    background-size: cover; background-position: center;
    padding: 100px 5%; color: var(--white);
}

.hero-container {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}

.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 3rem; margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; font-size: 1.2rem; }
.check-list li { margin-bottom: 10px; }

/* Formulario */
.contact-card {
    background: var(--white); padding: 30px; border-radius: 10px;
    width: 350px; color: var(--dark); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-card h3 { text-align: center; color: var(--primary); }
input, select { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; }
.btn-submit {
    width: 100%; background: var(--accent); color: var(--white);
    border: none; padding: 15px; font-weight: bold; cursor: pointer; border-radius: 5px;
}

/* Animación Marcas (Hacia la derecha) */
.brands-carousel {
    background: var(--white); padding: 25px 0; overflow: hidden; border-bottom: 1px solid #eee;
}

.brands-track {
    display: flex; width: calc(250px * 14);
    animation: scroll-right 40s linear infinite;
}

.brand {
    width: 250px; font-weight: bold; color: #ccc; font-size: 1.4rem; text-align: center;
}

@keyframes scroll-right {
    0% { transform: translateX(calc(-250px * 7)); }
    100% { transform: translateX(0); }
}

/* Servicios */
.services { padding: 60px 5%; text-align: center; }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px;
}

.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.image-box { width: 100%; height: 200px; background: #eee;}
.image-box img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 20px; }


/* Facturación */
.billing { background: var(--primary); color: var(--white); padding: 50px 5%; }
.billing-container { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 30px; }
.billing-icon { font-size: 4rem; }

/* Footer */
.footer { background: #111; color: #888; padding: 50px 5%; text-align: center; }
.pay-method { border: 1px solid #444; padding: 5px 10px; margin: 0 5px; font-size: 0.8rem; border-radius: 3px; color: #ccc; }

/* WhatsApp */
.wa-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: var(--white); padding: 15px 25px;
    border-radius: 50px; text-decoration: none; font-weight: bold; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* --- Sección de Servicios con Imágenes --- */
.card { 
    background: var(--white); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    display: flex; /* Esto ayuda a alinear el contenido internamente */
    flex-direction: column; /* Apila imagen y texto */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Pequeño efecto al pasar el mouse */
}

/* El recuadro contenedor de la imagen */
.image-box { 
    width: 100%; 
    height: 250px; /* O la altura que prefieras para tus recuadros */
    background: #f8f9fa; /* Un fondo gris muy claro por si la imagen es pequeña */
    display: flex; /* Centra la imagen internamente */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
}

/* La regla mágica para la imagen */
.image-box img { 
    max-width: 90%; /* Que no toque los bordes del recuadro */
    max-height: 90%; /* Que no toque los bordes del recuadro */
    object-fit: contain; /* Ajusta la imagen sin cortarla */
    width: auto; /* Mantén la proporción */
    height: auto; /* Mantén la proporción */
}

.card-info { 
    padding: 20px; 
    text-align: center; /* Centra el texto */
}