/* Theme: Modern Professional Style for La Rinconada
   Author: Claude - Curriculum
   Version: 2.0
   
   Este archivo contiene los estilos modernos para el sitio.
   Es el tema principal usado en la interfaz pública.
   
   Los estilos base y de administración se mantienen en styles.css
   Para evitar conflictos, este archivo tiene clases específicas con prefijo moderno
*/

/* ==== Variables y reseteo ==== */
:root {
  --primary-color: #1a56db;
  --primary-light: #3f83f8;
  --primary-dark: #1e429f;
  --secondary-color: #0d9488;
  --secondary-light: #14b8a6;
  --secondary-dark: #0f766e;
  --text-color: #374151;
  --text-light: #6b7280;
  --background-light: #ffffff;
  --background-gray: #f9fafb;
  --background-dark: #1e40af;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --container-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--background-light);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

/* ==== Elementos comunes ==== */
.section {
  padding: 6rem 0;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.375rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* ==== Back to Top Button ==== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--box-shadow);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ==== Header ==== */
.site-header {
  background-color: var(--primary-color);
  padding: 1.25rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background-color: rgba(26, 86, 219, 0.95);
  backdrop-filter: blur(10px);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo i {
  font-size: 1.8rem;
}

.logo-text {
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  position: relative;
}

.nav-link i {
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* ==== Hero Section ==== */
.hero {
  position: relative;
  background-image: url('https://rinconadadecalifornia.com/img/oficina_central.jpeg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 12rem 0 8rem;
  margin-top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(13, 148, 136, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

/* ==== Section Headers ==== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  display: block;
  color: var(--primary-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ==== News Section ==== */
.news-section {
  background-color: var(--background-light);
}

.news-container {
  margin-top: 3rem;
}

/* Mejoras para grid de noticias (blog-grid) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-article {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-article:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.blog-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
}

.blog-article:hover .blog-image::before {
  opacity: 1;
}

.blog-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-meta i {
  margin-right: 0.4rem;
  color: var(--primary-color);
}

.blog-date {
  display: flex;
  align-items: center;
}

.blog-title {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.blog-article:hover .blog-title {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  transition: var(--transition);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-read-more i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: var(--transition);
}

.blog-read-more:hover {
  color: var(--primary-dark);
}

.blog-read-more:hover i {
  transform: translateX(5px);
}

/* ==== About Section ==== */
.about-section {
  background-color: var(--background-gray);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-experience {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  min-width: 120px;
}

.about-experience .years {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.about-experience .text {
  font-size: 0.8rem;
  opacity: 0.9;
}

.about-content .section-header {
  text-align: left;
}

.about-content .section-title::after {
  left: 0;
  transform: none;
}

.about-text {
  margin-bottom: 2.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: rgba(26, 86, 219, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.feature:hover .feature-icon {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.feature-text h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* ==== Stats Section ==== */
.stats-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-title {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ==== Contact Section ==== */
.contact-section {
  background-color: var(--background-light);
}

.contact-info-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(26, 86, 219, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background-color: var(--primary-color);
  color: white;
}

.contact-card h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.contact-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
}

.contact-map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 450px;
}

.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==== Footer ==== */
.site-footer {
  background-color: var(--background-dark);
  color: white;
  font-size: 0.95rem;
  padding-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-about {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo i {
  font-size: 1.8rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-3px);
}

.footer-links h3,
.footer-app h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
  color: white;
  font-weight: 600;
}

.footer-links h3::after,
.footer-app h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-light);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
}

.footer-links ul li a:hover {
  color: white;
  transform: translateX(5px);
}

.app-download {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: white;
}

.app-download i {
  font-size: 2rem;
  transition: var(--transition);
}

.download-text {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.download-text span {
  font-size: 0.7rem;
  opacity: 0.8;
}

.download-text strong {
  font-size: 1.1rem;
}

.app-download:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.app-download:hover i {
  transform: scale(1.1);
}

.app-download:hover .download-text {
  transform: translateX(3px);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==== Blog Expanded (mantenemos compatibilidad con el existente) ==== */
.blog-expanded {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  overflow-y: auto;
  z-index: 1100;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-expanded.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.3s ease forwards;
}

.blog-expanded.closing {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-expanded-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
}

.blog-expanded-header {
  margin-bottom: 2rem;
}

.blog-expanded-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--box-shadow);
}

.blog-expanded-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.blog-expanded-meta i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.blog-expanded-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.blog-expanded-content {
  padding: 0 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-expanded-content p,
.blog-expanded-content h1,
.blog-expanded-content h2,
.blog-expanded-content h3,
.blog-expanded-content h4,
.blog-expanded-content h5,
.blog-expanded-content h6 {
  margin-bottom: 1.5rem;
}

.blog-expanded-content img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.blog-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 3rem;
  transition: var(--transition);
}

.blog-back-button:hover {
  color: var(--primary-dark);
  transform: translateX(-5px);
}

.blog-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 2;
  transition: var(--transition);
}

.blog-close:hover {
  transform: rotate(90deg);
  background-color: var(--primary-color);
  color: white;
}

.blog-expanded-share {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-expanded-share h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.share-links {
  display: flex;
  gap: 1rem;
}

.share-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.share-facebook {
  background-color: #1877f2;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-whatsapp {
  background-color: #25d366;
}

/* ==== Responsive Design ==== */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-content .section-header {
    text-align: center;
  }
  
  .about-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .about-image {
    max-width: 80%;
    margin: 0 auto;
  }
  
  .contact-info-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .blog-expanded-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--primary-color);
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-nav ul li {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem;
  }
  
  .hero {
    padding: 8rem 0 6rem;
    height: auto;
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-about {
    max-width: 100%;
  }
  
  .blog-expanded-image {
    height: 250px;
  }
  
  .blog-expanded-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .blog-expanded-title {
    font-size: 1.7rem;
  }
  
  .blog-expanded-container {
    padding: 6rem 1.5rem 3rem;
  }
  
  .blog-close {
    top: 1rem;
    right: 1rem;
  }
  
  .contact-info-container {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}

@media (max-width: 575px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .logo-text {
    display: none;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .blog-expanded-title {
    font-size: 1.5rem;
  }
  
  .blog-expanded-image {
    height: 200px;
  }
  
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Utilidades */
.no-scroll {
  overflow: hidden;
}

/* Estilos para el modo offline y notificaciones */
#connection-status {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: none;
  animation: pulse 2s infinite;
}

#offline-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10000;
  transition: all 0.3s ease;
  opacity: 0;
  max-width: 80%;
  text-align: center;
}

#connection-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  z-index: 10000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Estilos específicos para PWA */
@media (display-mode: standalone) {
  /* Ajustes cuando la aplicación se ejecuta como PWA */
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  /* Ajustes para la barra de estado en modo PWA */
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  
  #connection-status {
    bottom: calc(15px + env(safe-area-inset-bottom));
  }
} 