:root {
  --primary-color: #6b7280;
  --secondary-color: #ffffff;
  --accent-color: #dc2626;
  --dark-color: #000000;
  --light-color: #f8f9fa;
  --text-dark: #000000;
  --text-light: #ffffff;
  --header-color: rgba(81, 81, 83, 0.9);
  --footer-color: rgba(81, 81, 83, 0.9);
}

/* Estilos para tarjetas de blog con imágenes */
.blog-preview-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.blog-preview-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.blog-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-preview-card:hover .blog-preview-img {
  transform: scale(1.05);
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.blog-preview-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-preview-content h5 {
  color: var(--header-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.2rem;
  line-height: 1.4;
  min-height: 3.5rem;
}

.blog-excerpt {
  color: #666;
  flex-grow: 1;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.blog-meta {
  display: flex;
  align-items: center;
}

.btn-read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
}

.btn-read-more:hover {
  color: #c53030;
  transform: translateX(3px);
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

.btn-read-more:hover i {
  transform: translateX(3px);
}

/* Botón principal del blog */
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c53030;
  border-color: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .blog-preview-image {
    height: 200px;
  }
  
  .blog-preview-content h5 {
    font-size: 1.1rem;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .blog-preview-card {
    margin-bottom: 25px;
  }
  
  .blog-preview-image {
    height: 180px;
  }
  
  .blog-preview-content {
    padding: 20px;
  }
  
  .blog-meta {
    flex-wrap: wrap;
  }
  
  .blog-meta small {
    margin-bottom: 5px;
  }
}

@media (max-width: 576px) {
  .blog-preview-image {
    height: 160px;
  }
  
  .blog-preview-content h5 {
    font-size: 1rem;
  }
  
  .blog-excerpt {
    font-size: 0.9rem;
  }
}

/* About Preview con Imagen Redonda */
.about-preview {
  padding: 100px 0;
  background: var(--footer-color);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.about-preview:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(107, 114, 128, 0.05) 100%);
  clip-path: circle(60% at 70% 50%);
  z-index: 0;
}

.about-preview .container {
  position: relative;
  z-index: 1;
}

.about-preview h2 {
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.about-preview h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}

.about-preview .lead {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.4;
}

.about-preview p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 95%;
}

/* Features */
.feature-item {
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  border-left: 4px solid var(--accent-color);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), #c53030);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: white;
  font-size: 1.3rem;
}

.feature-item h5 {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-item p.small {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Imagen redonda */
.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.circular-image-container {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.circular-image {
  width: 100%;
  height: 130%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 7px solid rgb(179, 110, 110);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.circular-image-container:hover .circular-image {
  transform: scale(1.03);
}

/* Anillo de experiencia */
.experience-ring {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-color), #c53030);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
  animation: float 3s ease-in-out infinite;
  border: 5px solid white;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.ring-content {
  text-align: center;
  color: white;
}

.ring-content .years {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.ring-content .years-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Badges flotantes */
.image-badges {
  position: absolute;
  bottom: 30px;
  left: -30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 3;
}

.badge-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.badge-item:nth-child(1) {
  animation-delay: 0.3s;
}

.badge-item:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.badge-item:hover {
  transform: translateX(5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.badge-item i {
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 0.9rem;
}

.badge-item span {
  font-weight: 600;
  color: var(--header-color);
  font-size: 0.9rem;
  white-space: nowrap;
}

.quality-badge i {
  background: var(--accent-color);
}

.service-badge i {
  background: var(--primary-color);
}

/* Botón */
.btn-about {
  background: linear-gradient(to right, var(--accent-color), #c53030);
  color: white;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.btn-about:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
  color: white;
}

/* Responsive */
@media (max-width: 1200px) {
  .circular-image-container {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 992px) {
  .about-preview {
    padding: 80px 0;
  }
  
  .about-preview h2 {
    font-size: 2.4rem;
  }
  
  .circular-image-container {
    width: 300px;
    height: 300px;
  }
  
  .experience-ring {
    width: 100px;
    height: 100px;
    top: -15px;
    right: -15px;
  }
  
  .ring-content .years {
    font-size: 1.8rem;
  }
  
  .image-badges {
    left: 0;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .about-preview {
    padding: 70px 0;
  }
  
  .about-preview h2 {
    font-size: 2.2rem;
    text-align: center;
  }
  
  .about-preview h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .about-preview .lead,
  .about-preview p {
    text-align: center;
    max-width: 100%;
  }
  
  .about-preview .row {
    justify-content: center;
  }
  
  .circular-image-container {
    width: 280px;
    height: 280px;
    margin-bottom: 40px;
  }
  
  .experience-ring {
    width: 90px;
    height: 90px;
  }
  
  .ring-content .years {
    font-size: 1.6rem;
  }
  
  .image-badges {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 30px;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
  
  .badge-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .btn-about {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .about-preview {
    padding: 60px 0;
  }
  
  .about-preview h2 {
    font-size: 2rem;
  }
  
  .about-preview .lead {
    font-size: 1.2rem;
  }
  
  .circular-image-container {
    width: 250px;
    height: 250px;
  }
  
  .circular-image {
    border-width: 6px;
  }
  
  .experience-ring {
    width: 80px;
    height: 80px;
    top: -10px;
    right: -10px;
    border-width: 4px;
  }
  
  .ring-content .years {
    font-size: 1.4rem;
  }
  
  .ring-content .years-text {
    font-size: 0.8rem;
  }
  
  .image-badges {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .badge-item {
    width: 100%;
    max-width: 250px;
  }
  
  .feature-item {
    margin-bottom: 15px;
  }
}

/* SLIDER */
.slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
  margin-bottom: 0;
}

.slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 1.5s ease-in-out
}

.slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.slide-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-slider {
  background-color: var(--header-color);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid var(--header-color);
}

.btn-slider:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* CONTROLES DEL SLIDER */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 30px;
}

.slider-arrow.next {
  right: 30px;
}

.slider-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  /* Deshabilitar cursor durante transición */
}

.slider-dot.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Suavizar hover en las flechas */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-arrow:hover:not(.disabled) {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Estilos para el collage en el slider */
.collage-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo semi-transparente */
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.collage-item:hover {
    transform: scale(1.02);
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-item:hover .collage-img {
    transform: scale(1.1);
}

/* Posiciones específicas para cada imagen del collage */
.collage-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.collage-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.collage-item-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.collage-item-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Asegurar que el contenido del slide esté sobre el collage */
.slide .slide-content {
    position: relative;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo más oscuro para mejor legibilidad */
    padding: 20px;
    border-radius: 10px;
    margin: 0 20px;
}

/* Ajustes para el slide con collage */
.slide {
    position: relative;
}