/*
Theme Name: DirectorioTSC Theme
Theme URI: https://www.directoriotsc.es/
Author: DirectorioTSC
Author URI: https://www.directoriotsc.es/
Description: Tema personalizado para DirectorioTSC con soporte para Tailwind CSS.
Version: 1.0.0
Text Domain: directoriotsc-theme
*/

.mega-menu-parent {
    position: static !important;
}

/* =========================================
   Global Typography & Design System
   ========================================= */

:root {
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Lato', sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: #333;
    line-height: 1.6;
    position: relative;
}

/* Prevent horizontal overflow */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

section {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Headings --- */
h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    /* Bold */
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a202c;
    /* Dark Gray */
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    /* Semibold */
    margin-bottom: 0.75rem;
    color: #2d3748;
}

/* --- UI Elements (Nav, Buttons, Forms) --- */
nav,
.main-navigation,
.menu-item a,
button,
.button,
.btn,
input[type="submit"],
input[type="button"],
label {
    font-family: var(--font-sans);
    font-weight: 600;
    /* Semibold */
}

/* Navigation Specifics */
.main-navigation a,
.menu-item a {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Tracking slightly expanded */
    font-size: 0.9rem;
}

/* Buttons */
button,
.button,
.btn,
input[type="submit"] {
    text-transform: none;
    /* Or uppercase if preferred, user said "clarity and hierarchy" */
    letter-spacing: 0.02em;
}

/* --- Special Elements --- */
blockquote,
.quote,
.testimonial,
.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    /* Light Italic */
    color: #555;
}

/* Numbers & KPIs */
.number,
.price,
.stat,
.kpi {
    font-family: var(--font-sans);
    font-weight: 700;
    /* Bold */
}

/* --- Form Inputs --- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    font-family: var(--font-sans);
    font-weight: 400;
}

/* =========================================
   Blog Styles
   ========================================= */

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose content styling */
.prose {
    color: #374151;
}

.prose p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.prose h2 {
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 700;
}

.prose h3 {
    font-size: 1.5em;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose blockquote {
    border-left: 4px solid #ae670e;
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.prose img {
    margin: 2em 0;
}

.prose a {
    color: #ae670e;
    text-decoration: underline;
    transition: color 0.2s;
}

.prose a:hover {
    color: #96580c;
}

/* Blog card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}