/* ==========================================
   BOLSOSCO - Estilos Principales
   Educación Financiera
   ========================================== */

:root {
  --primary-color: #001f3f;
  --secondary-color: #ffffff;
  --accent-color: #0066cc;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --light-bg: #f8f9fa;
  --shadow: 0 2px 10px rgba(0, 31, 63, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 31, 63, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

/* ==========================================
   TIPOGRAFÍA
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ==========================================
   CONTENEDOR Y GRID
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.col {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
}

.col-1 { flex: 0 0 calc(8.333% - 1rem); }
.col-2 { flex: 0 0 calc(16.666% - 1rem); }
.col-3 { flex: 0 0 calc(25% - 1rem); }
.col-4 { flex: 0 0 calc(33.333% - 1rem); }
.col-6 { flex: 0 0 calc(50% - 1rem); }
.col-12 { flex: 0 0 calc(100% - 1rem); }

/* ==========================================
   BOTONES
   ========================================== */

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */

header {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d66 100%);
  color: var(--secondary-color);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  color: var(--secondary-color);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   SECCIONES
   ========================================== */

section {
  padding: 80px 0;
}

section.light {
  background-color: var(--light-bg);
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ==========================================
   TARJETAS
   ========================================== */

.card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================
   SERVICIOS
   ========================================== */

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

.service-card {
  background: var(--secondary-color);
  padding: 2.5rem;
  border-radius: 10px;
  border-left: 5px solid var(--accent-color);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* ==========================================
   TESTIMONIOS
   ========================================== */

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: var(--secondary-color);
  padding: 2.5rem;
  border-radius: 10px;
  border-left: 5px solid var(--accent-color);
  box-shadow: var(--shadow);
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-item.active {
  display: block;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1.5rem;
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--text-light);
}

.stars {
  color: var(--warning-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  background-color: transparent;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent-color);
  width: 30px;
  border-radius: 6px;
}

/* ==========================================
   FORMULARIOS
   ========================================== */

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

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

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: none;
}

.form-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: none;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-item strong {
  min-width: 80px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ==========================================
   COOKIES BANNER
   ========================================== */

.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 31, 63, 0.2);
  display: none;
  z-index: 999;
  animation: slideUp 0.3s ease;
}

.cookies-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookies-text {
  flex: 1;
  font-size: 0.95rem;
}

.cookies-text a {
  color: var(--accent-color);
}

.cookies-buttons {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ==========================================
   WHATSAPP FLOTANTE
   ========================================== */

.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 998;
  text-decoration: none;
  color: white;
  font-size: 1.8rem;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   BLOG
   ========================================== */

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

.blog-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--light-bg);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-category {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-title {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-read-more {
  color: var(--accent-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* ==========================================
   PÁGINA INDIVIDUAL DE BLOG
   ========================================== */

.blog-single {
  max-width: 800px;
  margin: 0 auto;
}

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

.blog-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.blog-single-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.blog-single-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.blog-body {
  line-height: 1.8;
  color: var(--text-dark);
}

.blog-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-body p {
  margin-bottom: 1.5rem;
}

.blog-body ul,
.blog-body ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-body li {
  margin-bottom: 0.5rem;
}

/* ==========================================
   EQUIPO
   ========================================== */

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

.team-member {
  text-align: center;
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: var(--light-bg);
}

.team-info {
  padding: 2rem;
}

.team-name {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

/* ==========================================
   MAPA
   ========================================== */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
   BREADCRUMB
   ========================================== */

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--accent-color);
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--primary-color);
    padding: 1rem;
    gap: 1rem;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 50px 0;
  }

  .col-6 {
    flex: 0 0 calc(100% - 1rem);
  }

  .services-grid,
  .blog-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookies-banner.show {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookies-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookies-buttons button {
    width: 100%;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .testimonial-item {
    padding: 1.5rem;
  }

  .carousel-controls {
    gap: 0.5rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .blog-featured-image {
    height: 250px;
  }

  .team-image {
    height: 250px;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 12px 25px;
    font-size: 1rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .cookies-text {
    font-size: 0.85rem;
  }

  .cookies-buttons {
    gap: 0.5rem;
  }

  .cookies-buttons button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
