/* ============================================
   FRONTEND - VARIABLES Y BASE
   ============================================ */

:root {
    /* Paleta Black & White */
    --bg-light: #FBF6F0;
    --bg-dark: #0a0a0a;

    --text-light: #0a0a0a;
    --text-dark: #ffffff;

    --accent: #222222;
    --accent-light: #e5e5e5;
    
    /* Color acento */
    --color-accent: #E0CDEB;
    
    /* Superficies Light */
    --color-surface-light: #ffffff;
    --color-surface-alt-light: #f5f0e8;
    
    /* Superficies Dark */
    --color-surface-dark: #080808;
    --color-surface-alt-dark: #2a2a2a;

    /* Tipografías */
    --font-serif: 'Baskervville', serif;
    --font-sans: 'Jost', sans-serif;

    /* Sistema responsive */
    --site-width: 1200px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;

    /* Easing para animaciones */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s var(--ease-smooth);
}

/* Animaciones FadeInUp/FadeInDown */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.link-animated {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1.5px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover .link-animated,
.article-card .link-animated:hover {
    background-size: 100% 1.5px;
}

/* Links en contenido de artículo */
.article-content a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1.5px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
    text-decoration: none;
}

[data-theme="light"] .article-content a {
    color: #78350f;
}

[data-theme="dark"] .article-content a {
    color: #E0CDEB;
}

.article-content a:hover {
    background-size: 100% 1.5px;
}

/* Párrafos en contenido de artículo */
.article-content p {
    margin-bottom: var(--space-5);
}

.article-content p+p {
    margin-top: var(--space-5);
}

/* Títulos en contenido de artículo */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-bottom: var(--space-4);
    margin-top: var(--space-6);
}

/* Imágenes en contenido de artículo */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

/* Extracto con drop cap */
.article-excerpt {
    font-size: 1.15rem;
    font-family: var(--font-serif);
    margin-bottom: var(--space-5);
    line-height: 1.8;
    font-style: italic;
}

.article-excerpt::first-letter {
    font-size: 2.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.15em;
    margin-top: 0.1em;
    font-weight: 700;
}

[data-theme="light"] .article-excerpt::first-letter {
    color: var(--text-light);
}

[data-theme="dark"] .article-excerpt::first-letter {
    color: var(--text-dark);
}

/* Extracto en cards */
.card-excerpt {
    font-size: 1rem;
    margin-bottom: var(--space-4);
    opacity: 0.85;
    flex-grow: 1;
    line-height: 1.6;
}

@keyframes fadeInDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Card hover effects */
.article-card {
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

/* Masonry Layout */
.articles-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    align-items: start;
}

.articles-masonry .article-card {
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.article-card:hover .card-image-hover,
.article-card:hover .card-img-hover {
    transform: scale(1.08);
}

.article-card:hover .link-animated {
    background-size: 100% 2px;
}

/* Swiper card hover */
.swiper-slide .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.swiper-slide .article-card:hover .card-img-hover {
    transform: scale(1.08);
}

.swiper-slide .article-card:hover .link-animated {
    background-size: 100% 2px;
}

/* Modo actual */
[data-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-light);
    --border-color: rgba(0, 0, 0, 0.1);
    --btn-bg: var(--text-light);
    --btn-text: var(--bg-light);
    --color-surface: var(--color-surface-light);
    --color-surface-alt: var(--color-surface-alt-light);
}

[data-theme="dark"] {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --border-color: rgba(255, 255, 255, 0.1);
    --btn-bg: var(--text-dark);
    --btn-text: var(--bg-dark);
    --color-surface: var(--color-surface-dark);
    --color-surface-alt: var(--color-surface-alt-dark);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container general */
.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--btn-bg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn:hover {
    background-color: transparent;
    color: var(--btn-bg);
}

/* Formularios Floating Frontend */
.form-group {
    position: relative;
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
}

.form-control {
    width: 100%;
    padding: 16px 14px;
    background: transparent !important;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--text-color);
}

.form-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 0 4px;
    color: rgba(120, 120, 120, 0.8);
    font-size: 0.95rem;
    transition: transform 0.2s ease-out, font-size 0.2s ease-out, background-color 0.2s, top 0.2s;
    pointer-events: none;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-weight: 500;
}

textarea.form-control {
    padding-top: 24px;
}

textarea.form-control~.form-label {
    top: 24px;
}

textarea.form-control:focus~.form-label,
textarea.form-control:not(:placeholder-shown)~.form-label {
    top: 8px;
}

.form-control::placeholder {
    color: transparent;
}

.form-control:focus::placeholder {
    color: rgba(120, 120, 120, 0.4);
}

/* Evitar fondo amarillo de Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* SweetAlert Theme Overrides */
div:where(.swal2-container) div:where(.swal2-popup) {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    color: var(--text-color);
}

div:where(.swal2-container) div:where(.swal2-html-container) {
    color: var(--text-color);
    opacity: 0.8;
}

/* Scroll Top Button - Flecha Animada */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    padding: 0;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn .btn {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.scroll-top-btn .btn .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scroll-top-btn .btn .circle .bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1.5;
}

.scroll-top-btn .btn .circle .progress {
    fill: none;
    stroke: var(--text-color);
    stroke-width: 1.5;
    stroke-dasharray: 301;
    stroke-dashoffset: 301;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.scroll-top-btn:hover .btn .circle .progress {
    stroke-dashoffset: 0;
}

.scroll-top-btn .btn .arrow {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-90deg);
    background: transparent;
}

.scroll-top-btn .btn .arrow::before {
    content: "";
    position: absolute;
    width: 0;
    height: 1.5px;
    background: var(--text-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease;
}

.scroll-top-btn .btn .arrow::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid var(--text-color);
    border-right: 1.5px solid var(--text-color);
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%) rotate(45deg);
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover .btn .arrow::before {
    width: 20px;
}

.scroll-top-btn:hover .btn .arrow::after {
    transform: translate(-30%, -50%) rotate(45deg);
}

/* ─── TRANSICIONES DE SECCIÓN ─── */
main.fade-out {
    animation: fadeOutDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ─── SWIPER NAV BUTTONS ─── */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    top: 40%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-next .btn,
.swiper-button-prev .btn {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}

.swiper-button-next .btn .circle,
.swiper-button-prev .btn .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.swiper-button-next .btn .circle .bg,
.swiper-button-prev .btn .circle .bg {
    fill: none;
    stroke: #555;
    stroke-width: 1.5;
}

.swiper-button-next .btn .circle .progress,
.swiper-button-prev .btn .circle .progress {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-dasharray: 301;
    stroke-dashoffset: 301;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.swiper-button-next:hover .btn .circle .progress,
.swiper-button-prev:hover .btn .circle .progress {
    stroke-dashoffset: 0;
}

.swiper-button-next .btn .arrow,
.swiper-button-prev .btn .arrow {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Derecha */
.swiper-button-next .btn .arrow::before {
    content: "";
    position: absolute;
    width: 0;
    height: 1.5px;
    background: #aaa;
    top: 50%;
    left: 50%;
    transform: translate(-55%, -50%);
    transition: width 0.3s ease, background 0.3s ease;
}

.swiper-button-next .btn .arrow::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid #aaa;
    border-right: 1.5px solid #aaa;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%) rotate(45deg);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover .btn .arrow::before {
    width: 20px;
    background: #000;
}

.swiper-button-next:hover .btn .arrow::after {
    border-color: #000;
    transform: translate(-30%, -50%) rotate(45deg);
}

/* Izquierda */
.swiper-button-prev .btn .arrow::before {
    content: "";
    position: absolute;
    width: 0;
    height: 1.5px;
    background: #aaa;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, background 0.3s ease;
}

.swiper-button-prev .btn .arrow::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.swiper-button-prev:hover .btn .arrow::before {
    width: 20px;
    background: #000;
}

.swiper-button-prev:hover .btn .arrow::after {
    border-color: #000;
    transform: translate(-70%, -50%) rotate(-45deg);
}

/* Modo Dark */
[data-theme="dark"] .swiper-button-next .btn .arrow::before {
    background: #fff;
}

[data-theme="dark"] .swiper-button-next .btn .arrow::after {
    border-top-color: #fff;
    border-right-color: #fff;
}

[data-theme="dark"] .swiper-button-next:hover .btn .arrow::before {
    background: #fff;
}

[data-theme="dark"] .swiper-button-next:hover .btn .arrow::after {
    border-color: #fff;
}

[data-theme="dark"] .swiper-button-prev .btn .arrow::before {
    background: #fff;
}

[data-theme="dark"] .swiper-button-prev .btn .arrow::after {
    border-top-color: #fff;
    border-left-color: #fff;
}

[data-theme="dark"] .swiper-button-prev:hover .btn .arrow::before {
    background: #fff;
}

[data-theme="dark"] .swiper-button-prev:hover .btn .arrow::after {
    border-color: #fff;
}

/* ============================================
   ESTILOS DE MÓDULOS FRONTEND
   ============================================ */

/* Page Header */
.page-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-family: var(--font-sans);
    opacity: 0.8;
    font-weight: 300;
}

/* Container */
.container {
    padding: var(--space-8) var(--space-4);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.container-wide {
    max-width: 900px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-title h2 {
    font-size: 2.5rem;
    font-style: italic;
}

.section-title .divider {
    width: 40px;
    height: 2px;
    background: var(--text-color);
    margin: var(--space-3) auto 0;
}

/* Grid Systems */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

/* Article Card */
.article-card {
    border: 1px solid var(--border-color);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    background: var(--bg-color);
    height: 100%;
}

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

.article-card .card-image {
    height: 200px;
    background: var(--border-color);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.article-card .card-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd 0%, #aaa 100%);
    transition: transform 0.5s var(--ease-smooth);
    background-size: cover;
    background-position: center;
}

.article-card:hover .card-image-fallback {
    transform: scale(1.05);
}

.article-card .card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-2);
    opacity: 0.7;
}

.article-card .card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    line-height: 1.3;
    font-family: var(--font-serif);
    font-weight: 400;
}

.article-card .card-title span {
    display: inline;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1.5px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover .card-title span {
    background-size: 100% 1.5px;
    color: #E0CDEB;
}

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

.article-card .card-title a {
    text-decoration: none;
    color: inherit;
    display: inline;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease;
}

.article-card:hover .card-title a,
.article-card:hover .card-title {
    color: var(--color-accent);
}

.article-card:hover .card-title a {
    background-size: 100% 2px;
}

.article-card .card-excerpt {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.article-card .card-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-header {
    text-align: center;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--border-color);
}

.article-header .meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
    opacity: 0.7;
}

.article-header h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
}

.article-header .info {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-image {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-6) 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.article-tags {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
}

.article-tags-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    padding-top: 5px;
}

.article-tags a {
    font-size: 0.8rem;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.article-nav {
    margin-top: var(--space-8);
    display: flex;
    justify-content: space-between;
}

.article-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
}

.article-nav a:hover {
    opacity: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
    gap: var(--space-2);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
}

.pagination a.active {
    background: var(--text-color);
    color: var(--bg-color);
}

.pagination a.inactive {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.pagination .ellipsis {
    opacity: 0.5;
}

/* Filter Tags */
.filter-tags {
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-4) 0;
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.filter-tags a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.filter-tags a:hover,
.filter-tags a.active {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-8) 0;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.7;
}

.empty-state .btn {
    margin-top: var(--space-4);
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    align-items: start;
}

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

.about-image {
    margin: 0 auto var(--space-6);
    width: 260px;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-image .placeholder-icon {
    width: 80px;
    height: 80px;
    opacity: 0.1;
}

.about-social {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.about-content {
    padding: 50px;
}

.about-content .bio {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.8;
    font-family: var(--font-serif);
}

.about-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Contact Page */
.contact-header {
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-6) 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) 0;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.contact-form .btn-submit {
    align-self: flex-start;
}

/* About Page Social Links */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.social-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
    opacity: 1;
    transform: translateY(-3px);
}

/* Botones */
.btn-cv {
    background: var(--text-color);
    color: var(--bg-color);
    width: 100%;
}

.btn-primary-dark {
    background: var(--text-color);
    color: var(--bg-color);
}

[data-theme="dark"] .btn-cv,
[data-theme="dark"] .btn-primary-dark {
    background: #ffffff;
    color: #000000;
}

[data-theme="light"] .btn-cv,
[data-theme="light"] .btn-primary-dark {
    background: #000000;
    color: #ffffff;
}

/* ============================================
   NEWSLETTER SECTION STYLES (ya migrado a style.css)
   ============================================ */

/* Newsletter Section */
.newsletter-section {
    background: var(--color-surface);
    border: 1px solid var(--border-color);
    margin: var(--space-8) var(--space-4);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: var(--space-3);
}

.newsletter-inner p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--space-5);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-6) 0;
    margin-top: var(--space-8);
    text-align: center;
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: inline-block;
}

.breadcrumb-separator {
    opacity: 0.5;
    margin: 0 var(--space-2);
}

.breadcrumb-link {
    color: var(--text-color);
}

/* 404 Page */
.not-found {
    padding: 10rem 0;
    text-align: center;
}

/* Main Content */
main {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    padding: 0 var(--space-4);
}

main.main-full-width {
    padding: 0;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.hero p {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto var(--space-5);
}

/* Swiper Container */
.swiper-container {
    padding-bottom: var(--space-6);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1,
    .article-header h1 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .about-content {
        padding: var(--space-4);
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}