/* Estilos Generales y Variables */
:root {
    --primary-color: #D32F2F; /* Un rojo tejano podría ser */
    --secondary-color: #333;
    --accent-color: #FFA000; /* Un ámbar o amarillo */
    --light-gray: #f4f4f4;
    --dark-gray: #212121;
    --text-color: #333;
    --light-text-color: #fff;
    --font-family: 'Arial', sans-serif; /* Considera fuentes más modernas o robustas */
    --container-width: 90%;
    --max-container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--dark-gray);
}

.text-light {
    color: var(--light-text-color);
}

.text-light a {
    color: var(--accent-color);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.bg-dark .section-title {
    color: var(--light-text-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
}
.bg-dark .section-subtitle {
    color: #ccc;
}


/* Header y Navegación */
header {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--accent-color); /* O --light-text-color */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-text-color);
    padding: 0.5rem 0.8rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active { /* Para la sección actual */
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.menu-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x800?text=Fondo+Llantera+Texas') no-repeat center center/cover;
    /* Reemplaza la URL con una imagen real de Texas o de llantas/taller */
    color: var(--light-text-color);
    text-align: center;
    padding: 6rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0.5rem;
}

.btn:hover {
    background-color: #A02020; /* Un rojo más oscuro */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}


/* Sección Llantas */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h4 {
    margin-top: 1rem;
    color: var(--secondary-color);
}

.product-card p {
    font-size: 0.9rem;
    padding: 0 1rem;
    color: #666;
}

.btn-product {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    margin: 1rem 0;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-product:hover {
    background-color: #E69500; /* Un acento más oscuro */
}

/* Sección Servicios */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center; /* O left si prefieres con iconos */
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Sección Nosotros */
.about-content {
    display: flex;
    flex-wrap: wrap; /* Para que en móvil se ponga uno debajo del otro */
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 280px; /* Para que no se encoja demasiado */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-content div {
    flex: 1.5; /* Más espacio para el texto */
    min-width: 300px;
}

/* Sección Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: var(--light-text-color);
}

.form-group textarea {
    resize: vertical;
}

.map-placeholder {
    margin-top: 1.5rem;
    text-align: center;
}
.map-placeholder img {
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}


/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.3rem;
}

/* ----- Media Queries para Responsividad ----- */

/* Tabletas y móviles grandes */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .contact-grid {
        grid-template-columns: 1fr; /* Una columna */
    }
    .contact-info {
        margin-top: 2rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        width: 100%;
        margin-top: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    nav.active { /* Clase que se añade con JS */
        max-height: 300px; /* Ajusta según el número de ítems */
    }
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        margin: 0;
        text-align: center;
    }
    nav ul li a {
        display: block;
        padding: 0.8rem;
        border-bottom: 1px solid #444;
    }
    nav ul li a:hover,
    nav ul li a.active {
        border-bottom: 1px solid var(--accent-color);
        color: var(--accent-color);
    }
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .hero {
        padding: 4rem 0;
        min-height: 50vh;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .grid-products, .grid-services {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }

    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-bottom: 1.5rem;
    }

    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
}