/*
Theme Name: Mi Tema Split
Theme URI: https://nimonje.laboratoriodiseno.cl
Author: Nicole Monje
Author URI: https://nimonje.laboratoriodiseno.cl
Description: Tema personalizado para el proyecto Split - Integrando WordPress y Bootstrap.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mi-tema-split
*/
/* ============================================
   ESTILOS PERSONALIZADOS - TEMA SPLIT
   ============================================ */

/* Variables CSS */
:root {
    --color-primary: #0d6efd;
    --color-secondary: #6c757d;
    --color-success: #198754;
    --color-dark: #212529;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --spacing-section: 4rem;
}

/* Tipografia */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0056b3 100%);
    border-radius: 12px;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
    color: var(--color-dark);
}

/* Botones */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
}

/* Seccion de features */
.features {
    background-color: #f8f9fa;
}

.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Footer */
footer {
    margin-top: var(--spacing-section);
}

footer p {
    margin-bottom: 0;
}

/* Formulario */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Paginacion */
.pagination {
    margin-top: 2rem;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Entradas recientes */
.dynamic-content .card {
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .features,
    .dynamic-content,
    .contact-section {
        padding: 2rem 0;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* ============================================
   SEMANA 6-9: proyectos, taxonomias y buscador
   ============================================ */
.tarjeta-proyecto .card-img-top {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.tarjeta-proyecto .card-title a {
    color: var(--color-dark);
}

.tarjeta-proyecto .card-title a:hover {
    color: var(--color-primary);
}

.filtro-proyectos .btn {
    border-radius: 50rem;
}

.archive-header {
    border-bottom: 2px solid rgba(13, 110, 253, 0.15);
    padding-bottom: 1rem;
}

.search-form .form-control {
    border-radius: 8px 0 0 8px;
}

.search-form .btn {
    border-radius: 0 8px 8px 0;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn-primary {
        animation: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}
