/*
Theme Name: RepararPC Lite
Theme URI: https://repararelpc.es
Description: Tema ultraligero y optimizado para SEO. Desarrollado específicamente para RepararPC.es. Peso total < 100KB. Sin jQuery. Optimizado para Core Web Vitals.
Author: RepararPC Team
Author URI: https://repararelpc.es
Version: 1.2.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: repararpc-lite
Tags: one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready

RepararPC Lite WordPress Theme
Copyright 2024 RepararPC
*/

/* ===================================================================
   TEMA REPARARPC LITE - ULTRALIGERO Y OPTIMIZADO
   Peso total: < 50KB de CSS
   Sin dependencias externas
   =================================================================== */

/* =================================================================== 
   1. RESET Y BASE
   =================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #6b46c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5a37a8;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =================================================================== 
   2. UTILIDADES
   =================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =================================================================== 
   3. HEADER TOP - Logo y Contacto
   =================================================================== */

.header-top {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo a {
    display: inline-block;
    line-height: 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.header-contacts {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-phone svg {
    color: #6b46c1;
}

.contact-whatsapp svg {
    color: #25d366;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    line-height: 1;
}

.contact-number {
    font-size: 18px;
    font-weight: 700;
    color: #6b46c1;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.contact-number:hover {
    color: #5a37a8;
}

/* =================================================================== 
   4. NAVEGACIÓN PRINCIPAL
   =================================================================== */

.main-navigation {
    background: #2d2d2d;
    position: relative;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    color: #fff;
    padding: 15px;
    font-size: 24px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 15px 15px;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    background: rgba(255, 255, 255, 0.1);
}

/* Submenús */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #6b46c1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.primary-menu .sub-menu li a:hover {
    background: #f5f5f5;
    color: #6b46c1;
    padding-left: 25px;
}

/* =================================================================== 
   5. HERO / INTRO SECTION
   =================================================================== */

.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 30px;
}

/* =================================================================== 
   6. SECCIONES DE CONTENIDO
   =================================================================== */

.content-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 40px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* Grid de servicios/packs */
.services-grid,
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card,
.pack-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover,
.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.15);
    border-color: #6b46c1;
}

.service-icon,
.pack-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: #6b46c1;
}

.service-title,
.pack-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 15px;
}

.pack-price {
    font-size: 2rem;
    font-weight: 700;
    color: #6b46c1;
    margin-bottom: 10px;
}

.pack-price-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.service-description,
.pack-features {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.8;
}

.pack-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pack-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pack-features li:last-child {
    border-bottom: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #6b46c1;
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #5a37a8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
    color: #fff;
}

/* =================================================================== 
   7. BLOG / ARCHIVE
   =================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #2d2d2d;
}

.post-title a:hover {
    color: #6b46c1;
}

.post-meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
}

/* =================================================================== 
   8. SINGLE POST
   =================================================================== */

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.9375rem;
    color: #999;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
}

.entry-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* =================================================================== 
   9. FOOTER
   =================================================================== */

.site-footer {
    background: #3a3a3a;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Logo en el footer */
.footer-logo {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b46c1 100%);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    max-width: 200px;
}

.footer-logo img {
    max-width: 150px;
    filter: brightness(0) invert(1);
}

.footer-widget h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget p,
.footer-widget ul li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #ccc;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #ccc;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: #8b5cf6;
    padding-left: 5px;
}

/* Enlaces con iconos */
.footer-widget a[href^="mailto:"],
.footer-widget a[href^="tel:"] {
    color: #8b5cf6;
    font-weight: 600;
}

.footer-widget a[href^="mailto:"]:hover,
.footer-widget a[href^="tel:"]:hover {
    color: #a78bfa;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.875rem;
    color: #999;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #8b5cf6;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: #a78bfa;
}

/* Footer navigation menu */
.footer-navigation {
    margin-top: 15px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu li {
    display: inline-block;
}

.footer-menu a {
    color: #999;
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: #8b5cf6;
}

/* =================================================================== 
   10. WHATSAPP FLOTANTE
   =================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

/* =================================================================== 
   11. FORMULARIOS
   =================================================================== */

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #6b46c1;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    background: #6b46c1;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form button[type="submit"]:hover {
    background: #5a37a8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

/* =================================================================== 
   12. RESPONSIVE
   =================================================================== */

/* Para pantallas grandes con muchos items de menú */
@media (min-width: 1200px) and (max-width: 1400px) {
    .primary-menu > li > a {
        padding: 15px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    
    /* Header */
    .header-top-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-left: 0;
    }
    
    .site-logo img {
        max-height: 50px;
    }
    
    /* Navegación móvil */
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #2d2d2d;
        flex-direction: column;
        padding: 60px 0 20px;
        overflow-y: auto;
        transition: right 0.3s ease;
    }
    
    .primary-menu.active {
        right: 0;
    }
    
    .primary-menu > li > a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.3);
        display: none;
    }
    
    .primary-menu li.menu-item-has-children.active > .sub-menu {
        display: block;
    }
    
    .primary-menu .sub-menu li a {
        color: #fff;
        padding-left: 40px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Secciones */
    .content-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Grid ajustes */
    .services-grid,
    .packs-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Single post */
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    /* Footer responsive */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        max-width: 150px;
        margin: 0 auto 20px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget ul li a:hover {
        padding-left: 0;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .contact-number {
        font-size: 16px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

/* =================================================================== 
   13. OPTIMIZACIONES DE RENDIMIENTO
   =================================================================== */

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: #f0f0f0;
}

/* Reducir motion para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header-top,
    .main-navigation,
    .whatsapp-float,
    .site-footer {
        display: none;
    }
}
