/* 
* Argentina y la Economía Mundial - Styles
* Tema: Análisis económico
* Año: 2024
*/

/* Variables */
:root {
  --primary-color: #1a56db;
  --primary-dark: #1345b8;
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --accent-color: #10b981;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --background-dark: #111827;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --error-color: #ef4444;
  --success-color: #10b981;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-radius: 0.375rem;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', Times, serif;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--background-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--background-light);
  font-style: italic;
  color: var(--text-secondary);
}

/* Layout y contenedores */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

/* Header y Navegación */
header {
  background-color: var(--background-white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--background-white);
  text-align: center;
  padding: 6rem 0;
}

.hero h1 {
  font-size: 3rem;
  color: var(--background-white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Botones */
.btn-primary, 
.btn-secondary,
.btn-tertiary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--background-white);
}

.btn-secondary {
  background-color: var(--background-white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-tertiary:hover {
  color: var(--primary-color);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background-color: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

.post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.read-more:hover {
  color: var(--primary-dark);
}

.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-card.featured .post-image {
  height: 100%;
}

/* Post Single Page */
.post-single {
  padding: 3rem 0;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0 1rem;
}

.post-header .post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-header .post-category {
  color: var(--primary-color);
  font-weight: 500;
}

.post-author {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.post-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 1rem;
}

.post-author .author-name {
  font-weight: 500;
  display: block;
}

.post-author .reading-time {
  font-size: 0.875rem;
  color: var(--text-light);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.post-content h2 {
  margin-top: 2rem;
  font-size: 1.75rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  font-size: 1.35rem;
}

.post-content img {
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.post-content a {
  text-decoration: underline;
}

.post-tags {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-tags span {
  font-weight: 500;
}

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--border-light);
  border-radius: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

.post-navigation {
  margin: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.post-navigation-links {
  display: flex;
  justify-content: space-between;
}

.prev-post, .next-post {
  max-width: 45%;
}

.prev-post span, .next-post span {
  display: block;
}

.prev-post span:first-child, .next-post span:first-child {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
}

figure {
  margin: 2rem 0;
}

figcaption {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Secciones de página de inicio */
.featured-posts,
.latest-posts {
  padding: 4rem 0;
}

.featured-posts h2,
.latest-posts h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.inspiration-block,
.beginner-mistakes {
  background-color: var(--background-white);
  padding: 4rem 0;
}

.inspiration-block h2,
.beginner-mistakes h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.inspiration-content {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.quote {
  flex: 1;
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quote svg {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.quote p {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.daily-tip {
  flex: 1;
  background-color: rgba(26, 86, 219, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.daily-tip h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.daily-tip p {
  margin-bottom: 0;
}

.mistakes-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mistake-card {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.mistake-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.1;
  color: var(--primary-color);
}

.mistake-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.mistake-card p {
  margin-bottom: 0;
}

/* About Page */
.page-header {
  background-color: var(--primary-color);
  color: var(--background-white);
  text-align: center;
  padding: 4rem 0;
}

.page-header h1 {
  color: var(--background-white);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.about-intro {
  padding: 4rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.our-values {
  background-color: var(--background-light);
  padding: 4rem 0;
}

.our-values h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.value-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.value-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Team Section */
.team-section {
  padding: 4rem 0;
  background-color: var(--background-white);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.25rem;
  padding: 0 1.5rem;
}

.team-member p {
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.team-member p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 500;
}

.team-member p:nth-of-type(2) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--background-white);
  color: var(--primary-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 4rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--background-white);
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
}

.cta-content .btn-primary {
  background-color: var(--background-white);
  color: var(--primary-color);
}

.cta-content .btn-primary:hover {
  background-color: transparent;
  color: var(--background-white);
  border: 1px solid var(--background-white);
}

/* Contact Page */
.contact-section {
  padding: 4rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2, 
.contact-form h2 {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  margin-bottom: 2rem;
}

.info-icon {
  color: var(--primary-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.info-text p {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.social-contact {
  margin-top: 3rem;
}

.social-contact h3 {
  margin-bottom: 1rem;
}

.social-contact .social-icons {
  display: flex;
  gap: 1rem;
}

.social-contact .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--background-light);
  color: var(--primary-color);
  transition: var(--transition);
}

.social-contact .social-icons a:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

/* Map Section */
.map-section {
  padding: 4rem 0;
  background-color: var(--background-light);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--background-white);
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--background-white);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--box-shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

.modal-body {
  padding: 3rem;
  text-align: center;
}

.modal-icon {
  color: var(--success-color);
  margin-bottom: 1rem;
}

.modal-body h2 {
  margin-bottom: 1rem;
}

.modal-body p {
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--background-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-posts h3,
.footer-contact h3 {
  color: var(--background-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-posts ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-posts ul li a {
  color: var(--border-color);
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-posts ul li a:hover {
  color: var(--background-white);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--border-color);
}

.footer-contact p svg {
  margin-right: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--background-white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.copyright {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--background-white);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-white);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-more-info {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
  }
  
  .about-content,
  .inspiration-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .post-card.featured {
    grid-template-columns: 1fr;
  }
  
  .post-card.featured .post-image {
    height: 200px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .mistakes-content {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .post-navigation-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .prev-post, .next-post {
    max-width: 100%;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
