/* 
 * FinArg - Blog Financiero Argentino
 * Estilos principales
 */

/* Variables */
:root {
  --primary-color: #0056b3;
  --primary-dark: #004494;
  --primary-light: #e6f0fa;
  --secondary-color: #ffc107;
  --secondary-dark: #e0a800;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --gray: #e0e0e0;
  --dark-gray: #555555;
  --danger: #dc3545;
  --success: #28a745;
  --border-radius: 5px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-main: 'Roboto', 'Helvetica Neue', sans-serif;
  --font-headings: 'Poppins', 'Helvetica Neue', sans-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-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

button, .btn {
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--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;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: 50px;
  margin-right: 0.5rem;
  border-radius: 50%;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

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

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

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

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

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

nav ul li a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--primary-light);
  padding: 5rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Featured Posts */
.featured-posts {
  padding: 5rem 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.25rem;
}

.post p {
  padding: 0 1.5rem;
  color: var(--text-light);
}

.read-more {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

/* Newsletter */
.newsletter {
  background-color: var(--primary-light);
  padding: 5rem 0;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-light);
}

.newsletter form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* About Preview */
.about-preview {
  padding: 5rem 0;
}

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

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

.about-text p {
  margin-bottom: 2rem;
}

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

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

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

.footer-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.footer-info p {
  margin-bottom: 0.5rem;
  color: #ecf0f1;
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: #ecf0f1;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

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

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

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: #bdc3c7;
}

/* Complaint Form */
.complaint-form {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  width: 300px;
  z-index: 90;
}

.complaint-form h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.complaint-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  height: 100px;
  margin-bottom: 1rem;
  resize: none;
}

.complaint-form button {
  width: 100%;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
  padding: 1rem;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-accept {
  background-color: var(--success);
}

.btn-accept:hover {
  background-color: #218838;
}

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

.btn-reject {
  background-color: var(--danger);
}

.btn-reject:hover {
  background-color: #c82333;
}

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

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Content */
.blog-content {
  padding: 5rem 0;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.post-content {
  padding: 2rem;
}

.post-date {
  color: var(--text-lighter);
  margin-bottom: 1rem;
  display: block;
}

.post-content h2 {
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
  padding: 5rem 0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.team-section {
  margin-bottom: 5rem;
}

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

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

.team-member {
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--text-light);
}

.team-member .social-icons {
  justify-content: center;
  margin-top: 1rem;
}

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

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

.value-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
}

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

.value-item h3 {
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.contact-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

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

.checkbox-group input {
  width: auto;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

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

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  color: var(--success);
  margin-bottom: 1.5rem;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 2rem;
}

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

/* Blog Post Page */
.blog-post-page {
  padding: 5rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-header h1 {
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.post-meta {
  color: var(--text-lighter);
}

.post-meta span {
  margin: 0 0.5rem;
}

.post-featured-image {
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-featured-image img {
  width: 100%;
}

.post-content {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-intro {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 2rem;
}

.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.post-content ul, 
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.post-tags {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.post-tags h3 {
  margin-bottom: 1rem;
}

.post-tags ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
}

.post-tags ul li a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--light-gray);
  border-radius: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.post-share {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-share h3 {
  margin-bottom: 1rem;
}

.social-share {
  display: flex;
  gap: 0.75rem;
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-gray);
  border-radius: 50%;
  color: var(--text-color);
}

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

.related-posts {
  max-width: 1200px;
  margin: 0 auto;
}

.related-posts h3 {
  margin-bottom: 2rem;
  text-align: center;
}

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

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

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-post h4 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.1rem;
}

.related-post p {
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-text {
    order: 1;
  }
  
  .about-image {
    order: 0;
    margin-bottom: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .post-image img {
    height: 300px;
  }
}

@media (max-width: 767px) {
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  nav ul li {
    margin: 0 0.75rem;
  }
  
  .newsletter form {
    flex-direction: column;
  }
  
  .newsletter input {
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
  }
  
  .newsletter button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .cookie-content {
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h2 {
    font-size: 1.7rem;
  }
  
  .featured-posts, 
  .about-preview, 
  .newsletter, 
  .contact-section, 
  .about-section, 
  .blog-content, 
  .blog-post-page {
    padding: 3rem 0;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .post-intro {
    font-size: 1.1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto 1rem;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin: 0 auto 0.5rem;
  }
  
  .complaint-form {
    width: calc(100% - 40px);
  }
}
