/*
Theme Name: MediFlexi Theme
Description: Tema personalizado para MediFlexi - Servicios de marketing digital para redes sociales
Author: MediFlexi Team
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mediflexi
Tags: marketing, social-media, business, responsive, modern
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS */
:root {
    --primary-purple: #7C3AED;
    --primary-orange: #F97316;
    --primary-black: #1F2937;
    --pure-white: #FFFFFF;
    --light-gray: #F9FAFB;
    --medium-gray: #6B7280;
    --dark-gray: #374151;
    --border-color: #E5E7EB;
}

/* Estilos base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--pure-white);
    color: var(--primary-black);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

/* Contenedores */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-black);
}

/* Enlaces */
a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-orange));
    color: var(--pure-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    color: var(--pure-white);
    text-decoration: none;
}

/* Tarjetas */
.card {
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
    border-color: var(--primary-purple);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        background: transparent !important;
        color: black !important;
    }
}

/* WordPress specific styles */
.wp-block-image {
    margin: 0 0 1rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Comentarios */
.comment-form-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Navegación de posts */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

/* Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: var(--primary-black);
    color: var(--pure-white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--pure-white);
}

.site-footer a:hover {
    color: var(--primary-orange);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999999;
    padding: 8px 16px;
    background: var(--primary-black);
    color: var(--pure-white);
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
