/* =========================================
   VARIABLES Y BASE (SOFT UI CORPORATE)
   ========================================= */
:root {
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --sapphire: #1e3a8a;
    --sapphire-hover: #1e40af;
    --sky-blue: #0ea5e9;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --border-soft: #e2e8f0;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Nunito Sans', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-sapphire { color: var(--sapphire); }
.bg-white { background-color: var(--bg-white); }
.mt-20 { margin-top: 20px; }

/* BOTONES */
.btn-sapphire { background: var(--sapphire); color: #fff; padding: 14px 30px; border-radius: 30px; font-weight: 800; font-size: 15px; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2); border: none; cursor: pointer;}
.btn-sapphire:hover { background: var(--sapphire-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3); }
.btn-outline-sapphire { background: transparent; color: var(--sapphire); border: 2px solid var(--sapphire); padding: 12px 30px; border-radius: 30px; font-weight: 800; font-size: 15px; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline-sapphire:hover { background: var(--sapphire); color: #fff; }
.btn-full { width: 100%; }

/* =========================================
   HERO SOFT UI
   ========================================= */
.hero-soft { padding: 160px 0 100px; overflow: hidden; position: relative; }
.hero-grid { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1.1; z-index: 2; }

.trust-badge-soft { display: inline-flex; align-items: center; gap: 10px; background: #fff; padding: 8px 20px; border-radius: 30px; font-size: 14px; color: var(--text-main); box-shadow: var(--shadow-soft); margin-bottom: 30px; font-weight: 600; border: 1px solid var(--border-soft); }
.animate-float { animation: floatBadge 4s ease-in-out infinite; }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-content h1 { font-size: 54px; font-weight: 900; color: var(--text-dark); line-height: 1.15; margin-bottom: 25px; letter-spacing: -1px; }
.hero-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 90%; }
.hero-buttons { display: flex; gap: 20px; }

.hero-visual { flex: 0.9; position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.soft-circle { position: absolute; border-radius: 50%; z-index: 0; filter: blur(60px); opacity: 0.5; }
.circle-1 { width: 300px; height: 300px; background: var(--sky-blue); top: -20px; right: -20px; }
.circle-2 { width: 250px; height: 250px; background: var(--sapphire); bottom: -20px; left: -20px; }

.hero-image-card { width: 100%; height: 350px; border-radius: 30px; background: #fff; box-shadow: var(--shadow-hover); position: relative; z-index: 1; border: 1px solid var(--border-soft); display: flex; justify-content: center; align-items: center; }
.image-placeholder { font-size: 80px; color: var(--border-soft); }
.floating-info { position: absolute; bottom: -25px; left: -30px; background: #fff; padding: 20px; border-radius: 20px; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 15px; border: 1px solid var(--border-soft); animation: floatBadge 5s ease-in-out infinite reverse; }
.floating-info i { font-size: 24px; color: #10b981; }
.floating-info strong { display: block; font-size: 15px; color: var(--text-dark); }
.floating-info span { font-size: 13px; color: var(--text-muted); }

/* =========================================
   SECCIONES GLOBALES
   ========================================= */
.section-soft { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 38px; font-weight: 900; color: var(--text-dark); margin-bottom: 15px; letter-spacing: -0.5px; }
.section-title p { color: var(--text-muted); font-size: 18px; }

/* ABOUT */
.about-grid { display: flex; align-items: center; gap: 60px; }
.about-visual { flex: 1; }
.large-placeholder { height: 500px; background: var(--bg-body); border-radius: 30px; border: 2px dashed var(--border-soft); font-size: 100px; }
.about-text { flex: 1; }
.about-text h2 { font-size: 34px; font-weight: 900; color: var(--text-dark); margin-bottom: 25px; line-height: 1.2; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }

.features-list { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.feature-item-soft { display: flex; align-items: flex-start; gap: 15px; background: var(--bg-body); padding: 20px; border-radius: 16px; border: 1px solid var(--border-soft); }
.feat-icon { width: 45px; height: 45px; background: #fff; color: var(--sapphire); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); flex-shrink: 0;}
.feature-item-soft h4 { color: var(--text-dark); font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.feature-item-soft span { color: var(--text-muted); font-size: 14px; }

/* =========================================
   PANELES DE PESTAÑAS (SERVICIOS)
   ========================================= */
.services-layout-soft { display: flex; gap: 40px; background: #fff; border-radius: 30px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft); overflow: hidden; min-height: 400px; }
.services-sidebar-soft { width: 320px; background: #f8fafc; padding: 30px; border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; }
.tab-btn-soft { width: 100%; text-align: left; background: transparent; border: none; padding: 15px 20px; font-size: 15px; font-weight: 800; color: var(--text-muted); border-radius: 16px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 12px; }
.tab-btn-soft i { width: 24px; text-align: center; font-size: 18px; }
.tab-btn-soft:hover { background: #fff; color: var(--sapphire); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.tab-btn-soft.active { background: #fff; color: var(--sapphire); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid var(--border-soft); }

.services-content-area-soft { flex: 1; padding: 50px; }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

.tab-header-soft { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.tab-icon-soft { width: 65px; height: 65px; background: linear-gradient(135deg, var(--sky-blue), var(--sapphire)); color: #fff; border-radius: 20px; display: flex; justify-content: center; align-items: center; font-size: 26px; box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2); flex-shrink: 0;}
.tab-content h3 { font-size: 30px; font-weight: 900; color: var(--text-dark); }
.tab-content p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }

/* =========================================
   GALERÍA SLIDER (JS)
   ========================================= */
.gallery-wrapper { position: relative; display: flex; align-items: center; gap: 20px; }
.slider-container { display: flex; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; gap: 30px; padding: 20px 5px; flex-grow: 1; -ms-overflow-style: none; scrollbar-width: none; }
.slider-container::-webkit-scrollbar { display: none; }

.slide-item { flex: 0 0 calc(33.333% - 20px); scroll-snap-align: start; min-width: 280px; }
.slide-placeholder { height: 250px; background: var(--bg-body); border-radius: 24px; border: 1px solid var(--border-soft); display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--text-muted); font-weight: 700; gap: 15px; box-shadow: var(--shadow-soft); transition: 0.3s; }
.slide-placeholder:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--sky-blue); }
.slide-placeholder i { font-size: 40px; color: var(--sapphire); }

.slider-btn { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--border-soft); color: var(--text-dark); font-size: 18px; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: var(--shadow-soft); transition: 0.2s; z-index: 2; flex-shrink: 0;}
.slider-btn:hover { background: var(--sapphire); color: #fff; border-color: var(--sapphire); }

/* =========================================
   RESEÑAS
   ========================================= */
.reviews-grid-soft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-card-soft { background: #fff; border: 1px solid var(--border-soft); padding: 40px 30px; border-radius: 24px; box-shadow: var(--shadow-soft); transition: 0.3s; display: flex; flex-direction: column; }
.review-card-soft:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.highlight-soft { border-color: var(--sky-blue); transform: scale(1.02); }
.highlight-soft:hover { transform: scale(1.02) translateY(-5px); }

.stars-soft { color: #f59e0b; font-size: 14px; margin-bottom: 20px; letter-spacing: 2px; }
.review-card-soft p { font-size: 15px; color: var(--text-main); font-style: italic; margin-bottom: 30px; line-height: 1.7; flex-grow: 1; }

.rev-author-soft { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--bg-body); padding-top: 20px; }
.rev-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--bg-body); color: var(--sapphire); display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: 800; border: 1px solid var(--border-soft); }
.bg-sapphire { background: var(--sapphire); } .text-white { color: #fff; }
.rev-author-soft strong { color: var(--text-dark); font-size: 15px; display: block; font-weight: 800;}
.rev-author-soft span { color: var(--text-muted); font-size: 13px; font-weight: 600;}

/* =========================================
   CONTACTO Y FORMULARIO
   ========================================= */
.contact-wrapper-soft { display: flex; background: #fff; border-radius: 30px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft); overflow: hidden; }
.contact-info-side { flex: 1; padding: 50px; background: #f8fafc; border-right: 1px solid var(--border-soft); }
.contact-info-side h2 { font-size: 32px; font-weight: 900; color: var(--text-dark); margin-bottom: 15px; line-height: 1.2; }
.contact-info-side p { color: var(--text-muted); margin-bottom: 40px; }

.contact-data-soft { margin-bottom: 40px; display: flex; flex-direction: column; gap: 25px; }
.data-item { display: flex; gap: 15px; }
.data-item i { width: 40px; height: 40px; background: #fff; color: var(--sapphire); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); flex-shrink: 0; border: 1px solid var(--border-soft); }
.data-item span { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 3px; font-weight: 700;}
.data-item strong { color: var(--text-dark); font-size: 16px; font-weight: 800;}

/* HORARIO DINÁMICO */
.schedule-card-soft { background: #fff; border-radius: 16px; border: 1px solid var(--border-soft); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.schedule-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--bg-body); font-size: 15px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.schedule-card-soft.open .status-dot { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.schedule-card-soft.open .status-text { color: #10b981; font-weight: 800; }
.schedule-card-soft.closed .status-dot { background: #ef4444; }
.schedule-card-soft.closed .status-text { color: #ef4444; font-weight: 800; }
.status-time { color: var(--text-muted); font-size: 13px; margin-left: auto; font-weight: 600;}

.schedule-body { padding: 20px; }
.schedule-body ul { list-style: none; font-size: 14px; }
.schedule-body li { display: flex; justify-content: space-between; color: var(--text-muted); padding: 8px 0; border-bottom: 1px dashed var(--border-soft); font-weight: 600;}
.schedule-body li:last-child { border-bottom: none; padding-bottom: 0; }
.schedule-body li span:last-child { color: var(--text-dark); font-weight: 800; }
.schedule-body li.closed span:last-child { color: #ef4444; }

/* FORMULARIO */
.contact-form-side { flex: 1.2; padding: 50px; }
.form-header { margin-bottom: 30px; }
.form-header h3 { font-size: 26px; font-weight: 900; color: var(--text-dark); margin-bottom: 5px; }
.form-header p { color: var(--text-muted); font-size: 15px; }

.soft-form .form-group { margin-bottom: 20px; }
.soft-form label { display: block; font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.soft-form input, .soft-form select, .soft-form textarea { width: 100%; padding: 14px 18px; background: var(--bg-body); border: 1px solid var(--border-soft); border-radius: 12px; font-size: 15px; color: var(--text-main); font-family: 'Nunito Sans', sans-serif; font-weight: 600; transition: 0.3s; }
.soft-form textarea { resize: vertical; min-height: 100px; }
.soft-form input:focus, .soft-form select:focus, .soft-form textarea:focus { outline: none; border-color: var(--sky-blue); background: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); }

/* FOOTER */
.soft-footer { border-top: 1px solid var(--border-soft); padding: 40px 0; background: #fff; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-brand h3 { font-size: 20px; font-weight: 900; color: var(--text-dark); margin-bottom: 5px; display: flex; gap: 8px; align-items: center;}
.footer-brand p { color: var(--text-muted); font-size: 14px; font-weight: 600;}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 14px; font-weight: 700; transition: 0.2s; }
.footer-links a:hover { color: var(--sapphire); }

/* =========================================
   WIDGET WHATSAPP SOFT UI
   ========================================= */
.wa-widget-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.wa-floating-btn { width: 65px; height: 65px; background-color: #25D366; color: #fff; border: none; border-radius: 50%; font-size: 34px; cursor: pointer; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.wa-floating-btn:hover { transform: scale(1.08); background-color: #20b858; }

.wa-chat-window { position: absolute; bottom: 85px; right: 0; width: 340px; background-color: #fff; border: 1px solid var(--border-soft); border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95); transform-origin: bottom right; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wa-chat-window.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wa-chat-header-soft { background-color: var(--sapphire); padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.wa-header-info { display: flex; align-items: center; gap: 12px; }
.wa-avatar-soft { width: 45px; height: 45px; background-color: rgba(255,255,255,0.1); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; border: 1px solid rgba(255,255,255,0.2); }
.wa-header-info h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 2px;}
.wa-header-info span { color: #86efac; font-size: 12px; font-weight: 700; }
.wa-close { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 20px; cursor: pointer; transition: 0.2s; }
.wa-close:hover { color: #fff; }

.wa-chat-body-soft { padding: 25px 20px; min-height: 160px; background-color: var(--bg-body); }
.wa-typing { display: flex; gap: 5px; background-color: #fff; padding: 12px 18px; border-radius: 20px; width: fit-content; border-bottom-left-radius: 4px; border: 1px solid var(--border-soft); box-shadow: 0 4px 10px rgba(0,0,0,0.02);}
.wa-typing .dot { width: 8px; height: 8px; background-color: var(--text-muted); border-radius: 50%; animation: waBounce 1.4s infinite ease-in-out both; }
.wa-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.wa-typing .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes waBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.wa-message-soft { background-color: #fff; padding: 18px; border-radius: 16px; border-bottom-left-radius: 4px; border: 1px solid var(--border-soft); box-shadow: 0 4px 10px rgba(0,0,0,0.02); animation: fadeIn 0.4s ease; }
.wa-message-soft p { color: var(--text-main); font-size: 14px; margin-bottom: 15px; line-height: 1.6; font-weight: 600;}
.wa-message-soft p:first-child { color: var(--text-dark); font-weight: 800; font-size: 15px; margin-bottom: 8px;}
.btn-wa-solid { display: flex; align-items: center; justify-content: center; gap: 8px; background-color: #25D366; color: #fff; padding: 14px; border-radius: 10px; font-weight: 800; font-size: 14px; transition: 0.2s; border: none; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);}
.btn-wa-solid:hover { background-color: #16a34a; transform: translateY(-2px); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   CAJA LEGAL (SOFT UI)
   ========================================= */
.legal-box-soft {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.legal-box-soft h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 10px;
}

.legal-box-soft h3:first-child {
    margin-top: 0;
}

.legal-box-soft p {
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    /* --- HERO FIX --- */
    .hero-grid { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px; 
    }
    .hero-visual { 
        min-height: 250px; 
        width: 100%;
        margin-bottom: 60px;
    }
    .hero-image-card {
        height: 300px; 
    }
    .hero-buttons { 
        justify-content: center; 
    }
    .floating-info { 
        left: 2.5%; 
        transform: translateX(-50%); 
        bottom: -50px; 
        flex-direction: column;
        text-align: center;
        justify-content: center; 
        padding: 15px;
    }
    
    /* --- NOSOTROS (ABOUT) FIX --- */
    .about-grid { 
        flex-direction: column-reverse; 
        text-align: center; 
        gap: 40px;
    }
    .about-visual {
        width: 100%; 
    }
    .large-placeholder { 
        width: 100%; 
        height: 300px;
    }
    .features-list { 
        text-align: left; 
    }
    
    .services-layout-soft { flex-direction: column; }
    .services-sidebar-soft { width: 100%; border-right: none; border-bottom: 1px solid var(--border-soft); flex-direction: row; flex-wrap: wrap; }
    .tab-btn-soft { width: auto; flex-grow: 1; justify-content: center; }
    
    .reviews-grid-soft { grid-template-columns: 1fr; }
    .highlight-soft { transform: scale(1); }
    .highlight-soft:hover { transform: translateY(-5px); }

    .contact-wrapper-soft { flex-direction: column; }
    .contact-info-side { border-right: none; border-bottom: 1px solid var(--border-soft); }
}
@media (max-width: 768px) {
    /* --- Fix Textos del Hero --- */
    .hero-content h1 { font-size: 42px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn-sapphire, .btn-outline-sapphire { width: 100%; }
    
    /* --- Fix 1: Tarjeta "Mejor taller en Toledo" rota --- */
    .floating-info {
        flex-direction: column; /* Apilamos el icono y el texto */
        text-align: center;
        padding: 15px;
        bottom: -60px; /* Le damos más espacio hacia abajo */
    }
    .floating-info strong { font-size: 14px; }
    .hero-visual { margin-bottom: 50px; } /* Separamos la siguiente sección */

    /* --- Fix 2: Imagen "De las llantas..." gigante --- */
    .large-placeholder { 
        height: 280px; /* Reducimos la altura en móvil */
        width: 100%; 
    }
    
    /* --- Fix 3: Botones del Slider superpuestos --- */
    .slider-container { padding: 20px 0; }
    /* Reemplazamos el display: none; por un posicionamiento absoluto */
    .slider-btn { 
        display: flex; 
        position: absolute; 
        top: 50%; 
        transform: translateY(-50%); 
        width: 40px; 
        height: 40px; 
        font-size: 16px; 
    }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }

    /* --- Footer --- */
    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }

    .legal-box-soft { padding: 30px 20px; }
}