/* RESET & VARIABLES */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
:root {
    --primary: #1877F2; 
    --primary-dark: #165EBE;
    --dark: #1c1e21;
    --light: #f0f2f5;
    --white: #ffffff;
    --text: #606770;
    --success: #42b72a; 
}

body { background-color: var(--white); color: var(--dark); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-white { background-color: var(--white); }

/* NAVBAR (Para el Home) */
.navbar { background: var(--dark); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-content { display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.logo strong { font-size: 1.5rem; letter-spacing: 1px; color: var(--white); }
.nav-btn { width: auto; padding: 10px 20px; font-size: 1rem; }

/* HERO SECTION (Taller y Home) */
.hero { 
    /* IMAGEN REFERENCIADA COMO .png */
    background: linear-gradient(rgba(28, 30, 33, 0.85), rgba(28, 30, 33, 0.95)), url('img/hero-llantera.png') center/cover no-repeat;
    color: var(--white); 
    padding: 80px 0; 
}
.hero-home { padding: 120px 0; } /* Más espacio para el Home */
.hero-content { display: flex; gap: 40px; align-items: center; }
.hero-content-home { max-width: 800px; margin: 0 auto; } /* Centrado para el Home */
.hero-text { flex: 1; }
.badge { background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; letter-spacing: 1px; }
.hero-text h1 { font-size: 3rem; line-height: 1.2; margin: 20px 0; }
.hero-text p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.hero-info { display: flex; gap: 20px; font-size: 1.1rem; }

/* FORMULARIO (Taller) */
.hero-form { flex: 0 0 400px; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.form-header { background: var(--primary); color: var(--white); padding: 20px; text-align: center; font-size: 1.2rem; font-weight: bold; }
.form-body { padding: 30px; }
.form-body input, .form-body select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccd0d5; border-radius: 5px; font-size: 1rem; color: var(--dark);}
.btn-submit { display: inline-block; text-align: center; text-decoration: none; width: 100%; background: var(--success); color: var(--white); border: none; padding: 15px; font-size: 1.1rem; font-weight: bold; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: #36a420; }
.form-body small { display: block; text-align: center; font-size: 0.8rem; color: var(--text); margin-top: 15px; }

/* AUTORIDAD */
.authority { background: var(--primary); color: var(--white); padding: 60px 20px; text-align: center; }
.autor-foto { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.authority blockquote { font-size: 1.5rem; font-style: italic; max-width: 800px; margin: 0 auto; line-height: 1.4; }

/* PILARES Y TARJETAS */
.learnings { padding: 80px 20px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
/* Hacemos que la última fila centre sus tarjetas si sobran */
.grid-3 .card:nth-child(4) { grid-column: 1 / 3; } /* Ajuste visual opcional según contenido */
@media (min-width: 769px) {
    .grid-3 { display: flex; flex-wrap: wrap; justify-content: center; }
    .card { flex: 1 1 30%; min-width: 300px; }
}
.card { padding: 30px; border: 1px solid #e4e6eb; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.card h3 { color: var(--primary); margin-bottom: 15px; }
.card p { color: var(--text); }

/* PALANCAS (Taller) */
.bg-light { background: var(--light); padding: 80px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.img-fluida { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 20px; object-fit: cover; max-height: 350px;}
.palancas-text h2 { font-size: 2.2rem; margin-bottom: 10px; }
.palancas-text p { margin-bottom: 20px; color: var(--text); }
.btn-outline { display: inline-block; padding: 10px 25px; border: 2px solid var(--primary); color: var(--primary); text-decoration: none; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.acc-item { background: var(--white); padding: 15px 20px; margin-bottom: 10px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid var(--primary); }

/* FOOTER */
footer { background: var(--dark); color: var(--white); text-align: center; padding: 60px 20px; }
footer h2 { margin-bottom: 30px; }
.inline-btn { width: auto; padding: 15px 40px; margin-bottom: 20px; }

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .hero-content, .grid-2 { flex-direction: column; grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-form { flex: 1; width: 100%; }
    .palancas-imagen-container { order: -1; }
    .card { flex: 1 1 100%; }
}