/*
Theme Name: Salduie a Caesaraugusta
Theme URI: https://example.com
Author: Tu Nombre
Author URI: https://example.com
Description: Tema FSE para el proyecto hist¨®rico De Salduie a Caesaraugusta
Version: 1.0.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salduie
*/

/* ========================================
   Variables CSS
   ======================================== */
:root {
    --primary: #f9f506;
    --terracotta: #C9674E;
    --ocre: #D4A574;
    --charcoal: #333333;
    --cream: #F5F1E8;
    --background-light: #f8f8f5;
    --background-dark: #23220f;
    --azul-ebro: #2B5F7F;
    --font-display: 'Spline Sans', sans-serif;
    --font-roman: 'Cinzel', serif;
}

/* ========================================
   Reset y Base
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-display);
    background-color: var(--background-light);
    color: var(--charcoal);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: var(--primary);
    color: black;
}

/* ========================================
   Utilidades de Material Symbols
   ======================================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}

/* ========================================
   Efectos Romanos
   ======================================== */
.roman-border {
    border: 8px solid;
    border-image-slice: 30;
    border-image-width: 1;
    border-image-outset: 0;
    border-image-repeat: repeat;
    border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M10 10h40v40H10V10zm5 5v30h30V15H15zm5 5h20v20H20V20z' fill='%23C9674E' fill-opacity='0.2'/%3E%3C/svg%3E");
}

.roman-card-hover {
    transition: all 0.5s ease;
    border: 1px solid rgba(212, 165, 116, 0.1);
}

.roman-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========================================
   Header con efecto scroll
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(245, 241, 232, 0.95);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    z-index: 10;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 0 1rem;
    max-width: 1200px;
}

.hero-content h1 {
    font-family: var(--font-roman);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 300;
}

.bounce-arrow {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========================================
   Cronolog¨ªa Timeline
   ======================================== */
.timeline-section {
    padding: 6rem 1.5rem;
    background-color: var(--cream);
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.timeline-item {
    text-align: center;
    transition: all 0.3s ease;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    background-color: var(--terracotta);
    color: white;
}

/* ========================================
   Grid System para Secciones
   ======================================== */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 1024px) {
    .lg\:gap-12 {
        gap: 3rem;
    }
}

/* ========================================
   Utility Classes necesarias
   ======================================== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:text-terracotta {
    color: var(--terracotta);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.h-64 {
    height: 16rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.aspect-\[16\/10\] {
    aspect-ratio: 16/10;
}

.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-\[10px\] {
    font-size: 10px;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-8xl {
    font-size: 6rem;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-relaxed {
    line-height: 1.7;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex {
    display: flex;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-white {
    background-color: #ffffff;
}

.bg-cream {
    background-color: var(--cream);
}

.bg-terracotta {
    background-color: var(--terracotta);
}

.bg-terracotta\/10 {
    background-color: rgba(201, 103, 78, 0.1);
}

.text-white {
    color: #ffffff;
}

.text-terracotta {
    color: var(--terracotta);
}

.text-charcoal {
    color: var(--charcoal);
}

.text-charcoal\/40 {
    color: rgba(51, 51, 51, 0.4);
}

.text-charcoal\/60 {
    color: rgba(51, 51, 51, 0.6);
}

.text-charcoal\/70 {
    color: rgba(51, 51, 51, 0.7);
}

.text-ocre\/30 {
    color: rgba(212, 165, 116, 0.3);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-700 {
    transition-duration: 700ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-cream {
    --tw-gradient-from: var(--cream);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-ocre\/20 {
    --tw-gradient-from: rgba(212, 165, 116, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-ocre\/20 {
    --tw-gradient-to: rgba(212, 165, 116, 0.2);
}

.to-terracotta\/20 {
    --tw-gradient-to: rgba(201, 103, 78, 0.2);
}

.text-ocre\/50 {
    color: rgba(212, 165, 116, 0.5);
}

/* ========================================
   Secciones principales - Cards
   ======================================== */
.roman-card-hover {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(212, 165, 116, 0.1);
    display: flex;
    flex-direction: column;
}

.roman-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.font-roman {
    font-family: var(--font-roman);
}

.hover\:text-charcoal:hover {
    color: var(--charcoal);
}

/* ========================================
   Posts/Cr¨®nicas
   ======================================== */
.cronica-card {
    cursor: pointer;
}

.cronica-image {
    aspect-ratio: 16/10;
    background-color: var(--cream);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cronica-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.cronica-card:hover .cronica-image-bg {
    transform: scale(1.05);
}

.cronica-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cronica-category {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--terracotta);
    text-transform: uppercase;
    background-color: rgba(201, 103, 78, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.cronica-date {
    font-size: 0.625rem;
    color: rgba(51, 51, 51, 0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cronica-title {
    font-family: var(--font-roman);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.cronica-card:hover .cronica-title {
    color: var(--terracotta);
}

.cronica-excerpt {
    color: rgba(51, 51, 51, 0.6);
    font-size: 0.875rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    padding: 5rem 1.5rem;
    background-color: var(--charcoal);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    border: 40px solid var(--ocre);
    border-image-slice: 30;
    border-image-repeat: repeat;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    color: white;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(249, 245, 6, 0.2);
}

.newsletter-button {
    background-color: var(--primary);
    color: var(--charcoal);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-button:hover {
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--cream);
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    padding: 5rem 1.5rem 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    font-family: var(--font-roman);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: 0.05em;
    color: var(--charcoal);
}

.footer-description {
    color: rgba(51, 51, 51, 0.6);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 2rem 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(212, 165, 116, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: var(--charcoal);
}

.footer-title {
    font-family: var(--font-roman);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(51, 51, 51, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--terracotta);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.625rem;
    color: rgba(51, 51, 51, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* ========================================
   Sidebar
   ======================================== */
.widget {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(244, 244, 230, 1);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-roman);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.widget ul li a:hover {
    background-color: var(--background-light);
}

.widget ul li.current-menu-item a {
    background-color: var(--primary);
    color: var(--charcoal);
    font-weight: 700;
}

/* ========================================
   Drop Cap para posts
   ======================================== */
.drop-cap::first-letter {
    font-family: var(--font-roman);
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 0.5rem;
    padding-right: 0.75rem;
    color: var(--charcoal);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }
    
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .timeline-section {
        padding: 3rem 1rem;
    }
}

/* ========================================
   Utilidades
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-spacing {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 3rem 0;
    }
}