/**
 * Estilos Principales - SL Reparación y Service (sl.uy)
 * Reproducción fiel de la identidad visual original
 */

:root {
    --sl-cream: #f6f4eb;
    --sl-dark: #221e1d;
    --sl-dark-hover: #151312;
    --sl-charcoal: #47443e;
    --sl-gold: #c5a065;
    --sl-red: #d82b4a;
    --sl-red-hover: #b81e3a;
    --sl-text: #2c2c2c;
    --sl-text-light: #ffffff;
    --sl-whatsapp: #25d366;
    --font-heading: 'Fjalla One', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base & Tipografía */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--sl-text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-fjalla,
.site-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: var(--sl-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Header & Barra de Navegación
   ========================================================================== */
.site-header {
    background-color: #ffffff !important;
    transition: all 0.3s ease;
    z-index: 1030;
}

.site-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-custom-link {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--sl-red) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.nav-custom-link:hover,
.nav-custom-link.active {
    color: var(--sl-red-hover) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   Hero Section (Portada)
   ========================================================================== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 28, 26, 0.62);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--sl-gold);
    letter-spacing: 4px;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================================
   Sección: Servicio Oficial & Marcas
   ========================================================================== */
.section-oficial {
    background-color: var(--sl-cream);
    padding: 60px 0 0 0;
}

.section-title-condensed {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--sl-dark);
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logos-row {
    padding-bottom: 40px;
}

.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.brand-logo-img {
    max-height: 65px;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
    transition: transform 0.25s ease;
}

.brand-logo-img:hover {
    transform: scale(1.06);
}

/* Barra botón Conoce nuestros servicios */
.services-banner-btn {
    display: block;
    width: 100%;
    background-color: var(--sl-dark);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    text-transform: uppercase;
    text-align: center;
    padding: 18px 20px;
    letter-spacing: 1px;
    transition: background-color 0.25s ease;
}

.services-banner-btn:hover {
    background-color: var(--sl-dark-hover);
    color: #ffffff;
}

/* ==========================================================================
   Secciones Split Features (Cards de 2 columnas)
   ========================================================================== */
.split-feature-section {
    padding: 0;
}

.split-card {
    min-height: 380px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-card-cream {
    background-color: var(--sl-cream);
}

.split-card-white {
    background-color: #ffffff;
}

.split-titles-stack {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--sl-dark);
    text-transform: uppercase;
    margin: 0;
}

.split-description-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--sl-text);
    margin-bottom: 2rem;
}

.split-description-text u {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

/* Botón con borde negro "CONSÚLTANOS" */
.btn-outline-dark-custom {
    display: inline-block;
    border: 3px solid var(--sl-dark);
    background-color: #ffffff;
    color: var(--sl-dark);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 10px 32px;
    border-radius: 0;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-outline-dark-custom:hover {
    background-color: var(--sl-dark);
    color: #ffffff;
}

/* ==========================================================================
   Sección: ¿Quiénes Somos?
   ========================================================================== */
.about-section {
    background-color: var(--sl-charcoal);
    color: #ffffff;
    padding: 70px 0;
}

.about-box-border {
    border: 3px solid #ffffff;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.about-title-white {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* ==========================================================================
   Sección: Confían en Nosotros (Clientes)
   ========================================================================== */
.clients-section {
    background-color: var(--sl-cream);
    padding: 60px 0;
}

.client-logo-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 20px 15px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.client-logo-img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Sección: Contacto & Formulario
   ========================================================================== */
.contact-section {
    background-color: var(--sl-cream);
    padding: 70px 0 90px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-info-list p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--sl-dark);
}

.contact-highlight-link {
    color: var(--sl-red) !important;
    font-weight: 500;
}

.contact-highlight-link:hover {
    color: var(--sl-red-hover) !important;
    text-decoration: underline;
}

.contact-form-card .form-control {
    background-color: #ffffff;
    border: 1px solid #767676;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--sl-text);
}

.contact-form-card .form-control:focus {
    border-color: var(--sl-dark);
    box-shadow: 0 0 0 0.2rem rgba(34, 30, 29, 0.15);
}

.contact-form-card .form-control::placeholder {
    color: #767676;
}

.btn-submit-dark {
    background-color: var(--sl-dark);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    width: 100%;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.btn-submit-dark:hover {
    background-color: var(--sl-dark-hover);
    color: #ffffff;
}

/* ==========================================================================
   Página de Servicios (/servicios.php) - Estilo 2 Columnas
   ========================================================================== */
.services-hero-banner {
    position: relative;
    background-image: url('/assets/img/servicios-hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
}

.services-hero-box {
    background-color: var(--sl-cream);
    padding: 35px 50px;
    text-align: center;
    max-width: 620px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.services-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--sl-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.services-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #4a4a4a;
    margin: 0;
    font-weight: 400;
}

.service-item-2col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item-img-wrapper {
    overflow: hidden;
    margin-bottom: 1.25rem;
    background-color: #f0f0f0;
}

.service-item-img {
    width: 100%;
    aspect-ratio: 570 / 330;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-item-2col:hover .service-item-img {
    transform: scale(1.02);
}

.service-item-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: var(--sl-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
}

.service-item-desc {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-item-cta {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--sl-red) !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.service-item-cta:hover {
    color: var(--sl-red-hover) !important;
    transform: translateX(4px);
    text-decoration: none;
}

/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */
.whatsapp-floating-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: var(--sl-whatsapp);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #ffffff;
}

.whatsapp-tooltip {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--sl-dark);
    max-width: 220px;
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #f8f9fa;
}

.footer-link {
    color: var(--sl-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--sl-red);
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .split-card {
        padding: 40px 25px;
        min-height: auto;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 70px 15px;
    }

    .brand-logo-img {
        max-height: 48px;
    }

    .client-logo-card {
        height: 90px;
    }
}

