/* ================================ NEWSPAPER THEME - Classic Journalism Inspirado en: NYT, El País, The Guardian ================================ */ :root { /* Tipografía Periodística */ --headline-font: 'Playfair Display', 'Georgia', 'Times New Roman', serif; --body-font: 'Merriweather', 'Georgia', serif; --sans-font: 'Lato', 'Helvetica Neue', Arial, sans-serif; /* Paleta Periodística Clásica */ --ink-black: #1a1a1a; --newspaper-gray: #333333; --paper-white: #ffffff; --paper-cream: #f9f7f4; --border-gray: #d1d1d1; --accent-red: #c1121f; --accent-red-dark: #9a0e1a; --link-blue: #326891; --text-gray: #4a4a4a; --light-gray: #f0f0f0; /* Aliases para compatibilidad con templates antiguos */ --accent-color: var(--accent-red); --primary-font: var(--headline-font); --secondary-font: var(--sans-font); --bg-color: var(--paper-cream); --text-color: var(--newspaper-gray); --card-bg: var(--paper-white); --border-color: var(--border-gray); /* Sombras subtiles */ --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08); --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12); --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15); } /* Reset y Base */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--body-font); background: var(--paper-cream); color: var(--newspaper-gray); line-height: 1.7; font-size: 17px; margin: 0; padding: 0; } a { color: var(--link-blue); text-decoration: none; transition: color 0.2s; } a:hover { color: var(--accent-red); text-decoration: underline; } /* ================================ HEADER - Cabecera del Periódico ================================ */ header.desktop-header { background: var(--paper-white); border-bottom: 4px double var(--ink-black); padding: 20px 0 10px 0; margin-bottom: 0; text-align: center; } .header-top-row { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; } .header-title-wrapper { flex: 1; text-align: center; } .header-title-wrapper h1 { font-family: 'Old Standard TT', var(--headline-font); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; letter-spacing: 2px; color: var(--ink-black); margin: 0; text-transform: uppercase; border-top: 1px solid var(--ink-black); border-bottom: 1px solid var(--ink-black); padding: 15px 0; } .header-title-wrapper h1 a { color: var(--ink-black); text-decoration: none; } .header-user-menu { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); } .user-menu-large { font-family: var(--sans-font); font-size: 0.9rem !important; padding: 8px 15px !important; font-weight: 600 !important; background: transparent !important; border: 1px solid var(--border-gray) !important; border-radius: 3px; color: var(--newspaper-gray) !important; cursor: pointer; transition: all 0.2s; } .user-menu-large:hover { background: var(--light-gray) !important; border-color: var(--newspaper-gray) !important; } .header-date { font-family: var(--sans-font); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gray); margin-top: 10px; padding: 8px 0; border-top: 1px solid var(--border-gray); display: flex; justify-content: center; gap: 15px; font-weight: 500; } /* Mobile Header */ .mobile-header { display: none !important; } @media (max-width: 768px) { .mobile-header { display: flex !important; background: var(--paper-white); border-bottom: 2px solid var(--ink-black); padding: 15px; justify-content: space-between; align-items: center; } .desktop-header { display: none; } .logo-mobile a { font-family: var(--headline-font); font-size: 1.5rem; font-weight: 900; color: var(--ink-black); text-transform: uppercase; letter-spacing: 1px; } .mobile-menu-toggle { background: var(--ink-black); color: var(--paper-white); border: none; padding: 10px 15px; border-radius: 3px; cursor: pointer; font-size: 1.2rem; } } /* ================================ NAVIGATION - Barra de Navegación ================================ */ .main-nav { background: var(--ink-black); border-bottom: 1px solid var(--accent-red); margin-bottom: 20px; position: sticky; top: 0; z-index: 100; } .nav-content-wrapper { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .nav-left, .nav-right { display: flex; align-items: center; gap: 0; } .nav-link { font-family: var(--sans-font); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--paper-white); padding: 12px 18px; display: block; transition: background 0.2s; text-decoration: none; border: none; background: none; cursor: pointer; } .nav-link:hover, .dropbtn:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; } .dropdown { position: relative; display: inline-block; } .dropbtn { margin: 0; } .dropbtn i.fa-chevron-down { font-size: 0.7em; margin-left: 4px; opacity: 0.8; } .dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: var(--paper-white); min-width: 220px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-gray); z-index: 1000; } .dropdown-content.dropdown-right { right: 0; left: auto; } .dropdown:hover .dropdown-content { display: block; } .dropdown-content a, .dropdown-logout { color: var(--newspaper-gray); padding: 12px 20px; display: block; font-family: var(--sans-font); font-size: 0.9rem; border-bottom: 1px solid var(--light-gray); transition: background 0.2s; background: none; border-left: none; border-right: none; border-top: none; text-align: left; width: 100%; cursor: pointer; } .dropdown-content a:last-child, .dropdown-logout { border-bottom: none; } .dropdown-content a:hover, .dropdown-logout:hover { background: var(--light-gray); text-decoration: none; } .dropdown-content i { width: 20px; text-align: center; margin-right: 10px; color: var(--accent-red); } .icon-btn { background: none; border: none; color: var(--paper-white); font-size: 1.1rem; padding: 12px; cursor: pointer; transition: background 0.2s; } .icon-btn:hover { background: rgba(255, 255, 255, 0.1); } /* Mobile Navigation */ .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1500; } .nav-overlay.active { display: block; } @media (max-width: 768px) { .main-nav { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; flex-direction: column; transition: left 0.3s; box-shadow: var(--shadow-lg); z-index: 2000; } .main-nav.active { left: 0; } .nav-content-wrapper { flex-direction: column; align-items: flex-start; width: 100%; padding: 0; } .nav-left, .nav-right { flex-direction: column; width: 100%; } .nav-link { width: 100%; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .dropdown-content { position: static; box-shadow: none; border: none; background: rgba(255, 255, 255, 0.05); } } /* ================================ CONTAINER & LAYOUT ================================ */ .container { max-width: 1200px; margin: 0 auto; padding: 20px; background: var(--paper-white); box-shadow: var(--shadow-md); } @media (max-width: 768px) { .container { padding: 15px; } } /* ================================ NOTICIAS GRID - Cuadrícula de Artículos ================================ */ #noticias-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; margin-top: 30px; } @media (max-width: 768px) { #noticias-container { grid-template-columns: 1fr; gap: 20px; } } /* ================================ ARTICLE CARDS - Tarjetas de Noticias ================================ */ .noticia-card { background: var(--paper-white); border: 1px solid var(--border-gray); overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; } .noticia-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } .noticia-card-image-wrapper { height: 220px; overflow: hidden; background: var(--light-gray); border-bottom: 1px solid var(--border-gray); } .noticia-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; } .noticia-card:hover img { transform: scale(1.05); } .no-image-placeholder { width: 100%; height: 100%; background: var(--light-gray); display: flex; align-items: center; justify-content: center; color: var(--border-gray); font-size: 3rem; } .noticia-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; } .noticia-meta { font-family: var(--sans-font); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-gray); margin-bottom: 10px; font-weight: 600; } .noticia-card h3 { font-family: var(--headline-font); font-size: 1.4rem; font-weight: 700; line-height: 1.3; margin: 0 0 12px 0; color: var(--ink-black); } .noticia-card h3 a { color: var(--ink-black); text-decoration: none; transition: color 0.2s; } .noticia-card h3 a:hover { color: var(--accent-red); } .noticia-summary { font-family: var(--body-font); font-size: 0.95rem; line-height: 1.6; color: var(--text-gray); margin-bottom: 15px; flex-grow: 1; } .noticia-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--light-gray); } /* ================================ BUTTONS - Botones ================================ */ .btn { font-family: var(--sans-font); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 20px; background: var(--ink-black); color: var(--paper-white); border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; } .btn:hover { background: var(--accent-red); text-decoration: none; } .btn-sm { padding: 8px 15px; font-size: 0.75rem; } .btn-secondary { background: var(--border-gray); color: var(--newspaper-gray); } .btn-secondary:hover { background: var(--text-gray); color: var(--paper-white); } .btn-fav { background: transparent; border: 1px solid var(--border-gray); color: var(--text-gray); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all 0.2s; display: flex; align-items: center; justify-content: center; padding: 0; } .btn-fav:hover { border-color: #f39c12; color: #f39c12; } .btn-fav.active { background: #f39c12; border-color: #f39c12; color: var(--paper-white); } /* ================================ FORMS & FILTERS - Formularios ================================ */ .card { background: var(--paper-white); border: 1px solid var(--border-gray); padding: 25px; margin-bottom: 20px; } .card h2, .card h3 { font-family: var(--headline-font); color: var(--ink-black); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-red); } .filter-main-row { margin-bottom: 15px; } .filter-row { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-gray); align-items: flex-end; } .filter-group { flex: 1 1 200px; min-width: 150px; } .filter-group label { font-family: var(--sans-font); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--newspaper-gray); display: block; margin-bottom: 6px; } input, select, textarea { font-family: var(--sans-font); font-size: 0.95rem; padding: 10px 12px; border: 1px solid var(--border-gray); background: var(--paper-white); color: var(--newspaper-gray); width: 100%; transition: all 0.2s; } input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.1); } /* Switch Toggle */ .switch { position: relative; display: inline-block; width: 42px; height: 22px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border-gray); transition: 0.3s; border-radius: 22px; } .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: var(--paper-white); transition: 0.3s; border-radius: 50%; } .switch input:checked+.slider { background: var(--accent-red); } .switch input:checked+.slider:before { transform: translateX(20px); } .filter-group.toggle-group { display: flex; align-items: center; gap: 10px; } /* ================================ BADGES & TAGS ================================ */ .badge { display: inline-block; font-family: var(--sans-font); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; background: var(--accent-red); color: var(--paper-white); border-radius: 2px; margin-right: 8px; } .tag { display: inline-block; font-family: var(--sans-font); font-size: 0.8rem; padding: 5px 12px; background: var(--light-gray); color: var(--newspaper-gray); border: 1px solid var(--border-gray); margin-right: 8px; margin-bottom: 8px; border-radius: 2px; transition: all 0.2s; } .tag:hover { background: var(--border-gray); } /* ================================ ARTICLE DETAIL PAGE ================================ */ .article-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-gray); } .article-breadcrumb { font-family: var(--sans-font); font-size: 0.85rem; color: var(--text-gray); margin-bottom: 15px; } .article-breadcrumb a { color: var(--link-blue); } .article-title { font-family: var(--headline-font); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; color: var(--ink-black); margin: 20px 0; } .article-meta { font-family: var(--sans-font); font-size: 0.85rem; color: var(--text-gray); display: flex; flex-wrap: wrap; gap: 15px; align-items: center; } .meta-item { display: flex; align-items: center; gap: 5px; } .meta-item i { color: var(--accent-red); } .row { display: grid; grid-template-columns: 1fr 350px; gap: 40px; } @media (max-width: 968px) { .row { grid-template-columns: 1fr; gap: 30px; } } .main-section { min-width: 0; } .sidebar { min-width: 0; } .article-content { font-family: var(--body-font); font-size: 1.05rem; line-height: 1.8; color: var(--newspaper-gray); } .article-image { margin: 25px 0; border: 1px solid var(--border-gray); } .article-image img { width: 100%; height: auto; display: block; } .image-credit { font-family: var(--sans-font); font-size: 0.8rem; color: var(--text-gray); padding: 8px; background: var(--light-gray); font-style: italic; } .article-summary { background: var(--light-gray); border-left: 4px solid var(--accent-red); padding: 20px; margin: 25px 0; font-size: 1.1rem; line-height: 1.7; } .article-summary strong { font-family: var(--sans-font); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: var(--accent-red); } .article-full-content { margin-top: 25px; } .article-full-content p { margin-bottom: 1.2em; } .article-full-content h2, .article-full-content h3 { font-family: var(--headline-font); color: var(--ink-black); margin-top: 1.5em; margin-bottom: 0.8em; } .article-actions { margin-top: 30px; padding-top: 25px; border-top: 2px solid var(--border-gray); } .action-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; } .article-tags h4 { font-family: var(--sans-font); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-red); margin-bottom: 10px; } .sidebar .card { margin-bottom: 25px; } .sidebar .card h3 { font-size: 1.3rem; border-bottom-width: 1px; } .sidebar ul { list-style: none; padding: 0; } .sidebar ul li { padding: 10px 0; border-bottom: 1px solid var(--light-gray); } .sidebar ul li:last-child { border-bottom: none; } .sidebar ul li a { color: var(--newspaper-gray); font-family: var(--sans-font); font-size: 0.95rem; transition: color 0.2s; } .sidebar ul li a:hover { color: var(--accent-red); } .sidebar ul li small { display: block; font-size: 0.75rem; color: var(--text-gray); margin-top: 4px; } /* ================================ READ HISTORY ================================ */ .noticia-card.is-read { opacity: 0.65; } .noticia-card.is-read:hover { opacity: 1; } /* ================================ PAGINATION ================================ */ .pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; padding-top: 30px; border-top: 2px double var(--ink-black); } /* ================================ FLASH MESSAGES ================================ */ .flash-messages { list-style: none; margin: 0 0 20px 0; padding: 0; } .flash-messages li { padding: 15px 20px; margin-bottom: 10px; border-left: 4px solid; font-family: var(--sans-font); } .flash-messages li.success { background: #d4edda; border-color: #28a745; color: #155724; } .flash-messages li.error { background: #f8d7da; border-color: #dc3545; color: #721c24; } .flash-messages li.info { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; } /* ================================ TABLES ================================ */ table { width: 100%; border-collapse: collapse; font-family: var(--sans-font); font-size: 0.9rem; } thead { background: var(--ink-black); color: var(--paper-white); } thead th { padding: 12px; text-align: left; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.8rem; } tbody tr { border-bottom: 1px solid var(--border-gray); } tbody tr:hover { background: var(--light-gray); } tbody td { padding: 12px; } /* Badge states */ .badge-ok { background: #28a745; color: white; padding: 4px 8px; border-radius: 2px; font-size: 0.75rem; font-weight: 600; } .badge-ko { background: #dc3545; color: white; padding: 4px 8px; border-radius: 2px; font-size: 0.75rem; font-weight: 600; } .badge-warn { background: #ffc107; color: #333; padding: 4px 8px; border-radius: 2px; font-size: 0.75rem; font-weight: 600; } .actions a { color: var(--link-blue); margin: 0 5px; } .actions a:hover { color: var(--accent-red); } /* ================================ READING MODE ================================ */ body.reading-mode .container { max-width: 750px; padding: 60px 40px; } body.reading-mode .sidebar { display: none; } body.reading-mode .row { grid-template-columns: 1fr; } body.reading-mode .article-content { font-size: 1.15rem; line-height: 1.9; } body.reading-mode .article-title { font-size: 3rem; } /* ================================ DARK MODE ================================ */ body.dark-mode { --ink-black: #e0e0e0; --newspaper-gray: #c0c0c0; --paper-white: #1a1a1a; --paper-cream: #0f0f0f; --border-gray: #333; --accent-red: #ff4444; --accent-red-dark: #cc0000; --link-blue: #6ba3d0; --text-gray: #a0a0a0; --light-gray: #222; background: #0f0f0f; color: #c0c0c0; } body.dark-mode header.desktop-header { background: #1a1a1a; border-bottom-color: #444; } body.dark-mode .header-title-wrapper h1 { color: #e0e0e0; border-color: #444; } body.dark-mode .main-nav { background: #111; border-bottom-color: #ff4444; } body.dark-mode .container { background: #1a1a1a; } body.dark-mode .noticia-card { background: #1a1a1a; border-color: #333; } body.dark-mode .noticia-card h3 a { color: #e0e0e0; } body.dark-mode .card { background: #1a1a1a; border-color: #333; } body.dark-mode input, body.dark-mode select, body.dark-mode textarea { background: #222; border-color: #333; color: #e0e0e0; } body.dark-mode .dropdown-content { background: #1a1a1a; border-color: #333; } body.dark-mode .dropdown-content a, body.dark-mode .dropdown-logout { color: #c0c0c0; } body.dark-mode .article-summary { background: #222; } body.dark-mode thead { background: #222; } body.dark-mode tbody tr:hover { background: #222; } /* ================================ UTILITIES ================================ */ .top-link { display: inline-block; font-family: var(--sans-font); font-size: 0.9rem; margin: 20px 0; color: var(--link-blue); } .top-link:hover { color: var(--accent-red); } /* Scrollbar */ ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--light-gray); } ::-webkit-scrollbar-thumb { background: var(--border-gray); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-gray); } body.dark-mode ::-webkit-scrollbar-track { background: #222; } body.dark-mode ::-webkit-scrollbar-thumb { background: #444; } body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #555; } /* ================================ TOM SELECT OVERRIDES ================================ */ .ts-control { border-radius: 2px !important; padding: 10px 12px !important; border: 1px solid var(--border-gray) !important; background: var(--paper-white) !important; } .ts-dropdown { border-radius: 0 !important; border-color: var(--border-gray) !important; background: var(--paper-white); } body.dark-mode .ts-control { background: #222 !important; border-color: #333 !important; color: #e0e0e0 !important; } body.dark-mode .ts-control input { color: #e0e0e0 !important; } body.dark-mode .ts-dropdown { background: #1a1a1a !important; color: #e0e0e0 !important; border-color: #333 !important; } body.dark-mode .ts-dropdown .active { background-color: #333 !important; } /* ================================ RESPONSIVE ================================ */ @media (max-width: 768px) { body { font-size: 16px; } .container { box-shadow: none; } .noticia-card h3 { font-size: 1.2rem; } .filter-group { flex: 1 1 100%; } .article-title { font-size: 1.8rem !important; } .article-meta { font-size: 0.8rem; } } /* Animation para carga */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .noticia-card { animation: fadeInUp 0.4s ease backwards; } /* Stagger effect */ .noticia-card:nth-child(1) { animation-delay: 0.05s; } .noticia-card:nth-child(2) { animation-delay: 0.1s; } .noticia-card:nth-child(3) { animation-delay: 0.15s; } .noticia-card:nth-child(4) { animation-delay: 0.2s; } .noticia-card:nth-child(5) { animation-delay: 0.25s; } .noticia-card:nth-child(6) { animation-delay: 0.3s; }