.blog-hero {
    padding: 200px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://apce.mx/blog/Blog1/BLOG/ 1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
    opacity: 0.15;
}

/* Asegura que el contenido quede encima */
.blog-hero > * {
    position: relative;
    z-index: 1;
}


.blog-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.blog-hero .lead {
    font-size: 1.25rem;
    color: #555;
    max-width: 850px;
    margin: 0 auto;
}

.partner-logo {
    width: 300px;
    height: 150px;
}



        .posts-section h2 {
            font-family: 'Arial', sans-serif;
            font-weight: 700;
            margin-bottom: 30px;
            color: #000000;
        }

        .text-muted {
            font-family: 'Arial', sans-serif;
            font-weight: bold;
            margin-bottom: 30px;
            color: #000000;
        }
        
        .recent-posts .post-preview {
            margin-bottom: 30px;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }
        .recent-posts .post-preview:last-child {
            border-bottom: none;
        }
        .recent-posts .post-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #007bff;
        }
        .recent-posts .post-excerpt {
            color: #666;
            margin-bottom: 10px;
        }
        .recent-posts .post-date {
            color: #999;
            font-size: 0.9rem;
        }
        .full-list .post-item {
            margin-bottom: 20px;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 4px;
        }
        .full-list .post-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 5px;
            color: #333;
        }
        .full-list .post-excerpt {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 5px;
        }
        .full-list .post-date {
            color: #999;
            font-size: 0.85rem;
        }



.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}

.blog-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.3;
  flex-grow: 1;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
  overflow: hidden;

  display: block;       
  display: -webkit-box; 
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; 

  line-clamp: 3;
  box-orient: vertical;
}


.blog-link {
  color: #0066cc;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  align-self: flex-start;
  transition: all 0.3s;
}

.blog-link:hover {
  color: #003366;
  padding-right: 8px;
}

























/* ============================================================
   SECCIÓN DE FORMULARIO DE CONTACTO
   ============================================================ */
.contact-form-section {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.contact-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
}

/* ============================================================
   COLUMNA IZQUIERDA - FORMULARIO
   ============================================================ */
.form-column {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.form-header h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.form-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================================
   ESTILOS DEL FORMULARIO
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
    color: #333;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 250px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* Botón de envío */
.submit-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Estados de validación */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

/* ============================================================
   COLUMNA DERECHA - IMAGEN Y REDES SOCIALES
   ============================================================ */
.image-column {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.image-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.contact-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.image-caption {
    color: white;
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
}

/* Redes sociales */
.form-social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.form-social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Hover específico por red social */
.form-social-icon[aria-label*="LinkedIn"]:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.form-social-icon[aria-label*="Instagram"]:hover {
    background: linear-gradient(45deg, #833ab4, #fd1d1d);
    border-color: #e1306c;
}

.form-social-icon[aria-label*="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.form-social-icon[aria-label*="YouTube"]:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 992px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-column {
        padding: 50px 40px;
    }
    
    .image-column {
        padding: 50px 40px;
        min-height: 500px;
    }
    
    .form-header h2 {
        font-size: 1.75rem;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL
   ============================================================ */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 0 20px;
    }
    
    .form-column {
        padding: 40px 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.2rem;
    }
    
    .image-column {
        padding: 40px 30px;
        min-height: 400px;
    }
    
    .contact-image {
        max-width: 100%;
    }
    
    .form-social-links {
        gap: 15px;
    }
    
    .form-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .form-column {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-header h3 {
        font-size: 1.1rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px 30px;
    }
    
    .image-column {
        padding: 30px 20px;
        min-height: 350px;
    }
    
    .image-caption {
        font-size: 1rem;
    }
}

/* ============================================================
   ANIMACIONES Y LOADING STATES
   ============================================================ */
.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensaje de éxito/error */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}





































































/* ============================================================
   SECCIÓN DE FORMULARIO DE CONTACTO - CORREGIDA
   ============================================================ */
.footer-contact-section.top-section {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  padding: 60px 0; /* 👈 Cambiado de altura fija a padding */
  position: relative;
  min-height: 600px; /* 👈 Altura mínima en lugar de fija */
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center; /* 👈 Cambiado de start a center */
  padding: 0 40px;
  width: 100%;
}

/* ===== LADO IZQUIERDO: FORMULARIO ===== */
.footer-contact-form-wrapper {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header-block {
  margin-bottom: 20px; /* 👈 Aumentado de 7px */
}

.main-slogan {
  font-size: clamp(1.7rem, 2vw, 2.0rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px; /* 👈 Aumentado de 5px */
  line-height: 1.3;
}

.form-title {
  font-size: clamp(1.4rem, 2.0vw, 1.5rem);
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 10px; /* 👈 Aumentado de 7px */
}

.form-subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

/* ===== FORMULARIO ===== */
.modern-contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px; /* 👈 Aumentado de 7px */
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  margin-bottom: 15px; /* 👈 Aumentado de 7px */
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 8px; /* 👈 Aumentado de 6px */
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px; /* 👈 Aumentado de 10px */
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Arial', sans-serif;
  background: #fff;
  transition: all 0.3s ease;
  min-height: 44px; /* 👈 Aumentado de 42px */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a4a4a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px; /* 👈 Aumentado de 60px */
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

/* ===== BOTÓN DE ENVÍO ===== */
.btn-submit-form {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.btn-submit-form:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit-form i {
  transition: transform 0.3s ease;
}

.btn-submit-form:hover i {
  transform: translateX(5px);
}

/* ===== MENSAJES DE ESTADO ===== */
.form-message {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

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

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message i {
  font-size: 1.1rem;
}

/* ===== LADO DERECHO: VISUAL ===== */
.footer-visual-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px; /* 👈 Aumentado de 15px */
  padding: 20px 0; /* 👈 Aumentado de 10px */
  justify-content: center;
}

.social-links-top {
  display: flex;
  gap: 12px;
  margin-bottom: 20px; /* 👈 Cambiado de margin-top */
}

.social-icon {
  width: 40px; /* 👈 Aumentado de 36px */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #2a2a2a;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-icon:hover {
  background: #2a2a2a;
  color: #fff;
  border-color: #2a2a2a;
  transform: translateY(-3px);
}

.products-image-container {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 350px; /* 👈 Aumentado de 250px */
}

.products-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 250px;
  background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.products-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-caption {
  font-size: 0.95rem; /* 👈 Aumentado de 0.9rem */
  color: #555;
  text-align: right;
  max-width: 500px;
  line-height: 1.5;
  margin-top: 10px; /* 👈 Aumentado de 5px */
}

/* ============================================================
   RESPONSIVE - FORMULARIO
   ============================================================ */

/* Rango problemático alrededor de 1600px */
@media (max-width: 1600px) and (min-width: 1400px) {
  .contact-container {
    gap: 50px;
    padding: 0 30px;
  }
  
  .footer-contact-section.top-section {
    padding: 50px 0;
    min-height: 550px;
  }
  
  .products-image-container {
    max-height: 300px;
  }
}

@media (max-width: 1400px) and (min-width: 1200px) {
  .contact-container {
    gap: 40px;
    padding: 0 25px;
  }
  
  .footer-contact-section.top-section {
    padding: 40px 0;
    min-height: 500px;
  }
  
  .main-slogan {
    font-size: 1.6rem;
  }
  
  .form-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 1200px) {
  .footer-contact-section.top-section {
    padding: 40px 0;
    min-height: auto;
  }
  
  .contact-container {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-contact-section.top-section {
    padding: 50px 20px;
  }
  
  .footer-visual-section {
    align-items: center;
    margin-top: 0;
  }
  
  .social-links-top {
    margin-bottom: 20px;
  }
  
  .products-image-container {
    max-width: 100%;
    max-height: 400px;
  }
  
  .image-caption {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-contact-section.top-section {
    padding: 40px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .main-slogan {
    font-size: 1.5rem;
  }
  
  .form-title {
    font-size: 1.2rem;
  }
  
  .products-image-container {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .footer-contact-section.top-section {
    padding: 30px 15px;
  }
  
  .contact-container {
    padding: 0 15px;
  }
  
  .footer-contact-form-wrapper {
    padding: 0;
  }
  
  .form-header-block {
    margin-bottom: 15px;
  }
  
  .main-slogan {
    font-size: 1.3rem;
  }
  
  .form-title {
    font-size: 1.1rem;
  }
  
  .form-subtitle {
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
  }
  
  .products-image-container {
    max-height: 250px;
  }
}

/* ============================================================
   TABLET PORTRAIT (768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Hero Section */
    .blog-hero {
        padding: 140px 20px 50px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .blog-hero .lead {
        font-size: 1.05rem;
        max-width: 100%;
        text-align: center;
    }
    
    /* Posts Section */
    .posts-section h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .text-muted {
        text-align: center;
    }
    
    /* Blog Cards - 2 columnas en tablet */
    .blog-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-card {
        margin-bottom: 0;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 16px;
    }
    
    .blog-content h4 {
        font-size: 1.1rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Post Previews */
    .recent-posts .post-preview {
        padding: 15px;
    }
    
    .recent-posts .post-title {
        font-size: 1.3rem;
    }
    
    /* Formulario - 1 columna */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .footer-contact-section.top-section {
        min-height: auto;
        max-height: none;
        flex: none;
    }
    
    .footer-contact-form-wrapper {
        margin-top: 30px;
        height: auto;
    }
    
    .footer-visual-section {
        margin-top: 30px;
        height: auto;
        align-items: center;
    }
    
    .social-links-top {
        margin-top: 20px;
        justify-content: center;
    }
    
    .products-image-container {
        max-width: 100%;
        max-height: 300px;
    }
    
    .image-caption {
        text-align: center;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================================
   TABLET ALTO (768px ancho + 1000px alto)
   ============================================================ */
@media (max-width: 768px) and (min-height: 1000px) {
    .blog-hero {
        padding: 180px 20px 70px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .blog-hero .lead {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-content h4 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .blog-excerpt {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .footer-contact-form-wrapper {
        margin-top: 50px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 1rem;
    }
}

/* ============================================================
   MÓVIL GRANDE (480px)
   ============================================================ */
@media (max-width: 480px) {
    /* Hero Section */
    .blog-hero {
        padding: 120px 15px 40px;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .blog-hero .lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Posts Section */
    .posts-section {
        padding: 40px 15px;
    }
    
    .posts-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    /* Blog Cards - 1 columna en móvil */
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        max-width: 100%;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-date {
        font-size: 0.8rem;
    }
    
    .blog-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .blog-link {
        font-size: 0.9rem;
    }
    
    /* Post Previews */
    .recent-posts .post-preview {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .recent-posts .post-title {
        font-size: 1.2rem;
    }
    
    .recent-posts .post-excerpt {
        font-size: 0.9rem;
    }
    
    /* Full List */
    .full-list .post-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .full-list .post-title {
        font-size: 1.15rem;
    }
    
    /* Formulario */
    .contact-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .footer-contact-form-wrapper {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .main-slogan {
        font-size: 1.4rem;
    }
    
    .form-title {
        font-size: 1.2rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-submit-form {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .footer-visual-section {
        margin-top: 20px;
    }
    
    .social-links-top {
        margin-top: 15px;
        gap: 10px;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    
    .products-image-container {
        max-height: 250px;
    }
    
    .image-caption {
        font-size: 0.85rem;
    }
}

/* ============================================================
   MÓVIL MEDIANO (390px) - iPhone 12/13/14
   ============================================================ */
@media (max-width: 390px) {
    .blog-hero {
        padding: 110px 12px 35px;
    }
    
    .blog-hero h1 {
        font-size: 1.6rem;
    }
    
    .blog-hero .lead {
        font-size: 0.9rem;
    }
    
    .posts-section {
        padding: 35px 12px;
    }
    
    .posts-section h2 {
        font-size: 1.4rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 14px;
    }
    
    .blog-content h4 {
        font-size: 1.05rem;
    }
    
    .blog-excerpt {
        font-size: 0.88rem;
    }
    
    .contact-container {
        padding: 0 12px;
    }
    
    .main-slogan {
        font-size: 1.3rem;
    }
    
    .form-title {
        font-size: 1.15rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 9px 12px;
        font-size: 0.88rem;
    }
    
    .products-image-container {
        max-height: 220px;
    }
}

/* ============================================================
   MÓVIL PEQUEÑO (375px) - iPhone SE (2022)
   ============================================================ */
@media (max-width: 375px) {
    .blog-hero {
        padding: 105px 12px 30px;
    }
    
    .blog-hero h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    
    .blog-hero .lead {
        font-size: 0.88rem;
        line-height: 1.5;
    }
    
    .posts-section {
        padding: 30px 12px;
    }
    
    .posts-section h2 {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .blog-card {
        border-radius: 10px;
    }
    
    .blog-image {
        height: 170px;
    }
    
    .blog-content {
        padding: 13px;
    }
    
    .blog-date {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .blog-content h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .blog-excerpt {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    .blog-link {
        font-size: 0.85rem;
    }
    
    .recent-posts .post-preview {
        padding: 10px;
    }
    
    .recent-posts .post-title {
        font-size: 1.1rem;
    }
    
    .recent-posts .post-excerpt,
    .recent-posts .post-date {
        font-size: 0.85rem;
    }
    
    .contact-container {
        padding: 0 10px;
        gap: 25px;
    }
    
    .footer-contact-form-wrapper {
        padding: 10px 0;
    }
    
    .main-slogan {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .form-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .form-subtitle {
        font-size: 0.88rem;
    }
    
    .form-header-block {
        margin-bottom: 10px;
    }
    
    .form-group label {
        font-size: 0.82rem;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 9px 11px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .btn-submit-form {
        padding: 11px;
        font-size: 0.88rem;
        margin-top: 12px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .products-image-container {
        max-height: 200px;
    }
    
    .image-caption {
        font-size: 0.82rem;
    }
}

/* ============================================================
   MÓVIL MUY PEQUEÑO (360px) - Galaxy S8/S9
   ============================================================ */
@media (max-width: 360px) {
    .blog-hero {
        padding: 100px 10px 28px;
    }
    
    .blog-hero h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .blog-hero .lead {
        font-size: 0.85rem;
        line-height: 1.45;
    }
    
    .posts-section {
        padding: 28px 10px;
    }
    
    .posts-section h2 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .text-muted {
        font-size: 0.85rem;
    }
    
    .blog-card {
        border-radius: 8px;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-content {
        padding: 12px;
    }
    
    .blog-date {
        font-size: 0.72rem;
    }
    
    .blog-content h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .blog-excerpt {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 8px;
    }
    
    .blog-link {
        font-size: 0.82rem;
    }
    
    .recent-posts .post-preview {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .recent-posts .post-title {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    
    .recent-posts .post-excerpt {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }
    
    .recent-posts .post-date {
        font-size: 0.75rem;
    }
    
    .full-list .post-item {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .full-list .post-title {
        font-size: 1.05rem;
    }
    
    .full-list .post-excerpt {
        font-size: 0.82rem;
    }
    
    .full-list .post-date {
        font-size: 0.75rem;
    }
    
    .contact-container {
        padding: 0 10px;
        gap: 20px;
    }
    
    .footer-contact-form-wrapper {
        padding: 8px 0;
        margin-top: 15px;
    }
    
    .main-slogan {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .form-title {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .form-header-block {
        margin-bottom: 8px;
    }
    
    .form-row {
        gap: 10px;
        margin-bottom: 5px;
    }
    
    .form-group.full-width {
        margin-bottom: 5px;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.82rem;
        min-height: 38px;
        border-radius: 3px;
    }
    
    .form-group textarea {
        min-height: 55px;
    }
    
    .btn-submit-form {
        padding: 10px;
        font-size: 0.85rem;
        margin-top: 10px;
        border-radius: 4px;
    }
    
    .form-message {
        margin-top: 12px;
        padding: 10px 12px;
        font-size: 0.82rem;
    }
    
    .footer-visual-section {
        margin-top: 15px;
    }
    
    .social-links-top {
        margin-top: 12px;
        gap: 8px;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .products-image-container {
        max-height: 180px;
        border-radius: 6px;
    }
    
    .image-caption {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* ============================================================
   MÓVIL HORIZONTAL (Altura baja)
   ============================================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .blog-hero {
        padding: 80px 20px 30px;
    }
    
    .blog-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .blog-hero .lead {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .posts-section {
        padding: 30px 20px;
    }
    
    .posts-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .blog-image {
        height: 140px;
    }
    
    .blog-content {
        padding: 12px;
    }
    
    .blog-content h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .blog-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 8px;
    }
    
    .footer-contact-section.top-section {
        min-height: auto;
        max-height: none;
    }
    
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .footer-contact-form-wrapper {
        margin-top: 20px;
        padding: 10px 0;
    }
    
    .main-slogan {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .form-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
    }
    
    .form-header-block {
        margin-bottom: 8px;
    }
    
    .form-row {
        gap: 10px;
        margin-bottom: 5px;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 7px 10px;
        font-size: 0.85rem;
        min-height: 35px;
    }
    
    .form-group textarea {
        min-height: 50px;
    }
    
    .btn-submit-form {
        padding: 9px;
        font-size: 0.85rem;
        margin-top: 8px;
    }
    
    .footer-visual-section {
        margin-top: 20px;
    }
    
    .social-links-top {
        margin-top: 10px;
    }
    
    .products-image-container {
        max-height: 160px;
    }
    
    .image-caption {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

/* ============================================================
   AJUSTES FINALES GENERALES
   ============================================================ */
@media (max-width: 768px) {
    /* Asegurar que las cards no se desborden */
    .blog-card {
        width: 100%;
        max-width: 100%;
    }
    
    /* Mejorar legibilidad en móvil */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Ajustar espaciado de secciones */
    section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    /* Reducir sombras para mejor rendimiento */
    .blog-card {
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }
    
    .blog-card:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }
}



