/* Style system for Taller Electro Inyección Guerra */

:root {
    --color-bg-main: #f9fafb;
    --color-bg-card: #ffffff;
    --color-text-dark: #111827;
    --color-text-muted: #4b5563;
    
    /* Core brand colors */
    --color-grey-dark: #1f2937;
    --color-grey-deep: #111827;
    --color-red-primary: #dc2626;
    --color-red-hover: #b91c1c;
    
    /* Harmonized secondary colors from original logo */
    --color-blue-electric: #2563eb;
    --color-blue-soft: #eff6ff;
    --color-orange-warm: #ea580c;
    --color-orange-soft: #fff7ed;
    
    /* Typography */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 6px;
    --transition: none; /* static & fast visual feel */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--color-grey-deep);
    color: #ffffff;
    border-bottom: 3px solid var(--color-red-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    line-height: 1;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
    background-color: transparent;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    font-weight: 700;
}

.logo-highlight {
    color: var(--color-blue-electric);
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-top: 0.2rem;
}

.inyeccion-word {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}

.injector-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.85em;
    height: 1.1em;
    margin-right: -0.05em;
}

.diesel-injector-svg {
    height: 100%;
    width: auto;
    color: var(--color-red-primary);
}

.remaining-text {
    letter-spacing: -0.02em;
}

.guerra-word {
    color: var(--color-orange-warm);
    margin-left: 0.4rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--color-grey-dark);
    border: 1px solid #374151;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Dynamic State colors */
.status-badge.open {
    color: #10b981;
}
.status-badge.open .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-badge.closed {
    color: #f59e0b;
}
.status-badge.closed .status-dot {
    background-color: #f59e0b;
}

.status-badge.loading {
    color: #9ca3af;
}
.status-badge.loading .status-dot {
    background-color: #9ca3af;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-red-primary);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
}

.header-cta-btn:hover {
    background-color: var(--color-red-hover);
}

.icon-phone {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero-section {
    background-color: var(--color-grey-dark);
    background-image: linear-gradient(135deg, var(--color-grey-deep) 0%, var(--color-grey-dark) 100%);
    color: #ffffff;
    padding: 5rem 0;
    border-bottom: 1px solid #2d3748;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-red-primary);
    color: #ffffff;
    border: 2px solid var(--color-red-primary);
}

.btn-primary:hover {
    background-color: var(--color-red-hover);
    border-color: var(--color-red-hover);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #4b5563;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #9ca3af;
}

.icon-btn {
    width: 20px;
    height: 20px;
}

.hero-info-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #9ca3af;
}

.bullet-item.highlight {
    color: var(--color-orange-warm);
    font-weight: 600;
}

.bullet-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sections General */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: left;
    color: var(--color-grey-deep);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
}

/* Services / Especialidades */
.services-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg-card);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Highlight Service Card (Electricidad) */
.service-card.highlight {
    border: 2px solid var(--color-blue-electric);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.badge-star {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--color-blue-electric);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-wrapper.diesel {
    background-color: rgba(220, 38, 38, 0.08);
    color: var(--color-red-primary);
}

.service-icon-wrapper.electricity {
    background-color: rgba(37, 99, 217, 0.08);
    color: var(--color-blue-electric);
}

.service-icon-wrapper.ac {
    background-color: rgba(249, 115, 22, 0.08);
    color: var(--color-orange-warm);
}

.service-icon {
    width: 32px;
    height: 32px;
}

.service-icon-wrapper.diesel .service-icon {
    width: auto;
    height: 48px;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-grey-deep);
    margin-bottom: 1rem;
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.25rem;
    margin-top: auto;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.service-list li::before {
    content: "•";
    color: var(--color-red-primary);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

.service-card.highlight .service-list li::before {
    color: var(--color-blue-electric);
}

/* Schedule Section */
.schedule-section {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.schedule-content-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.schedule-tables {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.schedule-block {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.schedule-block.summer {
    border-left: 4px solid var(--color-orange-warm);
}

.schedule-block-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-grey-deep);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.block-icon {
    width: 22px;
    height: 22px;
    color: var(--color-text-muted);
}

.schedule-block.summer .block-icon {
    color: var(--color-orange-warm);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.time-cell {
    text-align: right;
    font-weight: 700;
    color: var(--color-grey-deep);
}

.status-closed {
    text-align: right;
    color: #b45309;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Interactive Status Widget Card */
.status-widget-card {
    background-color: var(--color-grey-dark);
    color: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #374151;
}

.status-widget-header {
    background-color: var(--color-grey-deep);
    padding: 1.5rem;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.widget-indicator-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}

.widget-indicator-pill.online {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.widget-indicator-pill.offline {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-widget-body {
    padding: 2rem;
}

.status-message {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.status-submessage {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.widget-divider {
    border: 0;
    height: 1px;
    background-color: #374151;
    margin: 1.5rem 0;
}

.appointment-tip {
    font-size: 0.85rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.full-width {
    display: flex;
    width: 100%;
}

/* Contact & Location Section */
.contact-section {
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.location-card {
    background-color: var(--color-bg-main);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-grey-deep);
    margin-bottom: 0.75rem;
}

.address-text {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.parking-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--color-blue-electric);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.parking-letter {
    background-color: var(--color-blue-electric);
    color: #ffffff;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 3px;
    font-family: var(--font-body);
}

.phone-block {
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.25rem;
}

.phone-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-link {
    font-size: 1.15rem;
    color: var(--color-red-primary);
    display: inline-flex;
    align-items: center;
}

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

.value-statement {
    margin-bottom: 2rem;
}

.value-statement h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-grey-deep);
    margin-bottom: 0.5rem;
}

.value-statement p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.social-block {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.social-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.btn-social {
    color: var(--color-grey-dark);
    border-color: #d1d5db;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
}

.btn-social:hover {
    color: var(--color-blue-electric);
    border-color: var(--color-blue-electric);
    background-color: var(--color-blue-soft);
}

.icon-social {
    width: 18px;
    height: 18px;
}

/* Map Visual Card */
.contact-map-col {
    display: flex;
}

.map-visual-placeholder {
    width: 100%;
    min-height: 380px;
    background-color: #e5e7eb;
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    position: relative;
    /* Stylized mechanical blueprint / technical map look using CSS grid pattern */
    background-image: 
        radial-gradient(circle, #d1d5db 1px, transparent 1px),
        linear-gradient(rgba(229,231,235,0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229,231,235,0.7) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.map-info-overlay {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.map-pin-icon {
    width: 36px;
    height: 36px;
    color: var(--color-red-primary);
    margin-bottom: 1rem;
}

.map-overlay-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-grey-deep);
    margin-bottom: 0.25rem;
}

.map-overlay-city {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

#maps-cta-btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--color-grey-deep);
    color: #9ca3af;
    padding: 3rem 0;
    border-top: 1px solid #2d3748;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-copy {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.footer-subtext {
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .schedule-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .logo {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .status-badge {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-info-bullets {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-container {
        padding: 3rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Tech Section */
.tech-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
}

.tech-card {
    background-color: var(--color-bg-main);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.tech-logo-wrapper {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
}

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

.tech-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-grey-deep);
}

.tech-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tech-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .tech-logo-wrapper {
        margin: 0 auto;
    }
}
