:root {
    --primary-blue: #0b1d3a;
    --accent-yellow: #f5b041;
    --accent-yellow-hover: #d49a31;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Se usa 'proximity' para que el magnetismo sea suave y no atrape a la fuerza al usuario */
    scroll-snap-type: y proximity; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Secciones generales con scroll magnético fluido */
section {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 90px 20px 40px 20px;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-margin-top: 80px;
}

/* --- HEADER / NAVBAR FIJO --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    transition: color var(--transition-speed);
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-yellow);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-btn {
    background-color: var(--accent-yellow) !important;
    color: var(--primary-blue) !important;
    padding: 9px 20px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    transition: all var(--transition-speed) !important;
}

.nav-btn:hover {
    background-color: var(--accent-yellow-hover) !important;
    transform: translateY(-2px);
    color: var(--primary-blue) !important;
}

/* --- SECCIÓN 1: INICIO --- */
#inicio {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 15%, rgba(255, 255, 255, 0.82) 30%, rgba(255, 255, 255, 0.45) 40%, rgba(255, 255, 255, 0.15) 100%),
        url('../img/landing-imagen-taller.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px 20px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 25px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
    line-height: 1.2;
    word-break: break-word;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

.hero-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 2;
}

/* Botones generales */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    border: none;
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-yellow:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- SECCIÓN 2: SERVICIOS --- */
#servicios {
    background-color: var(--bg-light);
    justify-content: center;
    align-items: center;
    padding: 90px 20px 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 15px;
    word-break: break-word;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-bottom: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- SECCIÓN 3: CITAS --- */
#citas {
    background-color: var(--white);
    justify-content: center;
    align-items: center;
    padding: 90px 20px 40px 20px;
}

.specialty-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.specialty-text h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 800;
    word-break: break-word;
}

.specialty-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.badge-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-item {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

.appointment-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent-yellow);
}

.appointment-box h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.appointment-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- SECCIÓN 4: REPUESTOS --- */
#repuestos {
    background: linear-gradient(rgba(11, 29, 58, 0.9), rgba(11, 29, 58, 0.95)), url('../img/repuestos.jpg') no-repeat center center/cover;
    color: var(--white);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 90px 20px 40px 20px;
}

.parts-content {
    max-width: 800px;
    margin: 0 auto;
}

.parts-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    word-break: break-word;
}

.parts-content p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* --- SECCIÓN 5: FILOSOFÍA CORPORATIVA, CONTACTO Y FOOTER --- */
#contacto {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 100px 20px 40px 20px;
    box-sizing: border-box;
    width: 100%;
    height: auto;          /* Permite que crezca según su contenido y se pueda scrollear bien */
    min-height: auto;      /* Evita que fuerce una pantalla completa estricta */
    scroll-snap-align: none; /* Desactiva el bloqueo de snap para permitir lectura libre hasta el final */
    display: block;        /* Cambiado de flex a block para permitir un flujo natural de lectura de arriba a abajo */
}

/* 1. Contenedor de Filosofía Corporativa */
.corporate-grid-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 35px auto;
    box-sizing: border-box;
}

.corporate-grid-wrapper .section-title {
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.corporate-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.corporate-col {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 4px solid var(--accent-yellow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.corporate-col:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.corporate-col h3 {
    margin-bottom: 6px;
    color: var(--accent-yellow);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.corporate-col p {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0;
}

.values-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

.values-list li {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.values-list li strong {
    color: var(--white);
}

/* 2. Cuadrícula de Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 25px auto;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 25px;
}

.contact-col h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--accent-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-col p, 
.contact-col a {
    color: #cbd5e1;
    margin-bottom: 6px;
    font-size: 0.85rem;
    line-height: 1.3;
    text-decoration: none;
}

.contact-col a:hover {
    color: var(--accent-yellow);
}

/* 3. Iconos sociales */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--white);
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* 4. Footer final */
.footer-bottom {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    font-size: 0.8rem;
    box-sizing: border-box;
}

/* --- MEDIA QUERIES PARA PANTALLAS TABLET Y DESKTOP --- */
@media (min-width: 768px) {
    section {
        padding: 90px 5% 50px 5%;
    }

    #servicios, #citas, #repuestos {
        padding: 0 8%;
    }

    header {
        padding: 0 5%;
    }

    nav ul {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .parts-content h2 {
        font-size: 2.5rem;
    }

    .specialty-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .specialty-text h2 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .corporate-grid-wrapper .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 4%;
    }
    nav ul {
        display: none;
    }
}