/*
Theme Name: Aire BCN Pro
Theme URI: https://reparacionaireacondicionadobarcelona.net
Author: Tu Nombre
Description: Tema profesional optimizado para conversión local.
Version: 1.2
Text Domain: aire-bcn
*/

:root {
    --primary-color: #004d99;
    --secondary-color: #00b3e6;
    --accent-color: #e63900;
    --text-dark: #333333;
    --text-light: #777777;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* 1. BASE Y TIPOGRAFÍA */
* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    font-size: 16px;
}

h1, h2, h3, h4 { margin-top: 0; font-weight: 700; line-height: 1.2; color: #003366; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 2. HEADER Y TOP BAR */
.top-bar {
    background-color: #f0f2f5;
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #e1e4e8;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.main-navigation ul { display: flex; gap: 20px; }
.main-navigation ul li a { font-weight: 500; color: var(--text-dark); padding: 5px 0; }
.main-navigation ul li a:hover { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }

.header-cta .btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
}
.header-cta .btn-primary:hover { background: #003366; }

/* 3. HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #004e92 0%, #000428 100%);
    color: #fff;
    padding: 100px 0 120px 0;
    text-align: center;
    position: relative;
}
.hero-badge {
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: #fff;
}
.hero-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
    color: #fff;
}
.hero-trust { margin-top: 25px; font-size: 0.9rem; opacity: 0.8; }

/* 4. BOTONES */
.cta-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn-call { background-color: #28a745; color: white !important; border: 2px solid #28a745; }
.btn-budget { background-color: transparent; color: white !important; border: 2px solid white; }
.btn-budget:hover { background-color: white; color: #003366 !important; }
.btn-large { font-size: 1.2rem; padding: 20px 40px; }

/* 5. USP BAR (Ventajas) */
.usp-bar {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.usp-grid { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; gap: 20px; }
.usp-item strong { display: block; color: #003366; font-size: 1.1rem; }
.usp-item p { margin: 0; font-size: 0.9rem; color: #666; }
.usp-icon { font-size: 1.5rem; margin-right: 10px; }

/* 6. SERVICIOS */
.services-section { padding: 80px 0; background-color: #fff; }
.section-header { margin-bottom: 50px; }
.divider { height: 4px; width: 60px; background: #28a745; margin: 20px auto; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}
.service-card:hover { border-color: #28a745; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-icon { font-size: 3rem; margin-bottom: 20px; color: #004e92; }
.service-card h3 { font-size: 1.25rem; color: #333; margin-bottom: 15px; }

/* 7. GRID DE MARCAS (NUEVO & COMPACTO) */
.brands-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    justify-content: center;
}
.brand-item {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    color: #555;
    font-weight: 600;
    padding: 12px 5px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: default;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-item:hover {
    border-color: #28a745;
    color: #28a745;
    background-color: #f9fff9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 2;
}

/* 8. SÍNTOMAS */
.symptoms-section { padding: 80px 0; background-color: #f1f5f8; }
.row-flex { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.text-col { flex: 1; min-width: 300px; }
.image-col { flex: 1; min-width: 300px; text-align: center; }
.check-list { list-style: none; padding: 0; margin: 30px 0; }
.check-list li { margin-bottom: 15px; font-size: 1.1rem; }
.check-list strong { color: #d32f2f; }
.placeholder-img { background: #ddd; height: 300px; width: 100%; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.btn-left { margin-top: 20px; }

/* 9. BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.blog-thumb { height: 200px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-content { padding: 25px; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.blog-content h3 a { color: #003366; text-decoration: none; }
.blog-excerpt { font-size: 0.95rem; color: #666; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { color: #28a745; font-weight: bold; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; }
.read-more:hover { color: #1e7e34; text-decoration: underline; }

/* 10. FAQ */
.faq-section { padding: 80px 0; background: #fff; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.faq-item { background: #f9f9f9; padding: 25px; border-left: 4px solid #004e92; }
.faq-item h3 { font-size: 1.1rem; margin-top: 0; }
.faq-item p { margin-bottom: 0; font-size: 0.95rem; color: #555; }

/* 11. FINAL CTA */
.final-cta { padding: 80px 0; text-align: center; background: #28a745; color: white; }
.final-cta h2 { color: white; }
.final-cta .btn { background: white; color: #28a745 !important; margin-top: 20px; }

/* 12. FOOTER */
.site-footer { background-color: #222; color: #bbb; padding-top: 60px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-title { color: #fff; font-size: 1.2rem; margin-bottom: 20px; border-bottom: 2px solid #28a745; display: inline-block; padding-bottom: 5px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #bbb; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.contact-info p { margin-bottom: 10px; color: #bbb; }
.contact-info a { color: #fff; text-decoration: none; }
.site-info { background-color: #111; padding: 20px 0; text-align: center; border-top: 1px solid #333; font-size: 0.85rem; }

/* 13. BOTÓN FLOTANTE DE LLAMADA */
.call-float {
    position: fixed; bottom: 20px; right: 20px;
    background-color: #28a745; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 1000;
    transition: all 0.3s ease; border: 2px solid #fff;
    animation: pulse-phone 2s infinite;
}
.call-float:hover { background-color: #1e7e34; transform: scale(1.1); }
.call-float svg { width: 30px; height: 30px; }
@keyframes pulse-phone {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* 14. LISTAS Y TABLAS (Para contenido) */
.entry-content, .entry-content-body, .wp-content { font-size: 1.1rem; line-height: 1.8; }
.entry-content ul li, .entry-content-body ul li, .wp-content ul li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.entry-content ul li::before, .entry-content-body ul li::before, .wp-content ul li::before { content: '✔'; position: absolute; left: 0; top: 0; color: #28a745; font-weight: bold; font-size: 1.2rem; }
.entry-content ol, .entry-content-body ol, .wp-content ol { counter-reset: my-counter; }
.entry-content ol li, .entry-content-body ol li, .wp-content ol li { counter-increment: my-counter; position: relative; padding-left: 35px; margin-bottom: 15px; }
.entry-content ol li::before, .entry-content-body ol li::before, .wp-content ol li::before { content: counter(my-counter) "."; position: absolute; left: 0; top: 0; color: #003366; font-weight: 800; }

/* Tablas */
.entry-content table, .wp-content table { width: 100%; border-collapse: collapse; box-shadow: 0 0 10px rgba(0,0,0,0.05); margin-bottom: 30px; border-radius: 8px; overflow: hidden; display: block; overflow-x: auto; }
.entry-content th, .wp-content th { background-color: #003366; color: #ffffff; font-weight: bold; padding: 15px; border-bottom: 3px solid #28a745; text-align: left; }
.entry-content td, .wp-content td { padding: 12px 15px; border-bottom: 1px solid #eee; color: #555; }
.entry-content tr:nth-child(even), .wp-content tr:nth-child(even) { background-color: #f8f9fa; }

/* 15. RESPONSIVE GENERAL */
@media (max-width: 768px) {
    .site-header .container { flex-direction: column; gap: 15px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .desktop-only { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .usp-grid { flex-direction: column; }
    .usp-bar { margin-top: 0; }
    .row-flex { flex-direction: column; }
    .faq-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; justify-content: center; }
    .site-footer { text-align: center; }
    .call-float { bottom: 15px; right: 15px; width: 55px; height: 55px; }
    .top-bar .container { flex-direction: column; gap: 5px; }
    
    /* Ajuste Grid Marcas en Móvil */
    .brands-grid-box { grid-template-columns: repeat(2, 1fr); }
    .brand-item { white-space: normal; font-size: 0.8rem; }
}