/* ===== ESTILOS GENERALES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

main {
  padding: 20px;
}
main .hero {
  margin-left: -20px;
  margin-right: -20px;
}

/* ===== ESTILOS DE LA SECCIÓN INFO ===== */
.info-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  padding: 60px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.info-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  margin-top: 60px;
  box-shadow: 0 5px 30px 30px #588DFF;
}

.info-text {
  display: flex;
  flex-direction: column;
  align-items: stretch; 
  gap: 50px;
  max-width: 500px;
  flex: 1;
  min-width: 300px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  background: #588DFF;
  padding: 20px;
  border-radius: 40px;
  box-shadow: 0 5px 25px 5px #588DFF;
  gap: 15px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:nth-child(2) {
  margin-left: 0;
  align-self: flex-end;
  max-width: 90%;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.info-card .icon {
  background: #83C201;
  color: white;
  font-size: 20px;
  border-radius: 50%;
  padding: 12px;
  min-width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}

.info-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #000000;
}

/* ===== ESTILOS DE LA SECCIÓN HERO ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1E90FF 35%, #83C201 65%);
  color: rgb(0, 0, 0);
  margin: 40px 0;
  font-size: 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, 
              rgba(0, 0, 0, 0.25) 0%, 
              rgba(0, 0, 0, 0.1) 70%, 
              transparent 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top center, 
              rgba(255, 255, 255, 0.2) 0%, 
              rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero h2{
  margin-bottom: 40px;
  font-size: 40px;
  position: relative;
  z-index: 2;
}

.hero p {
  position: relative;
  z-index: 2;
}

/* ===== ESTILOS DE LA SECCIÓN SERVICIOS ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-title{
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-desc {
  background: #f0f0f0;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  color: #333;
  font-size: 18px;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .info-section {
    gap: 50px;
  }
  
  .info-text {
    gap: 40px;
  }
  
  .info-card:nth-child(2) {
    max-width: 95%;
  }
}

@media (max-width: 1024px) {
  .info-section {
    gap: 40px;
    padding: 40px 30px;
  }
  
  .info-text {
    max-width: 450px;
  }
  
  .info-card:nth-child(2) {
    margin-left: 0;
    align-self: center;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .info-section {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .info-section {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
  }
  
  .info-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .info-image img {
    margin-top: 20px;
    max-width: 90%;
  }
  
  .info-text {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    gap: 30px;
  }
  
  .info-card {
    flex-direction: row;
    text-align: left;
    max-width: 100% !important;
    margin-left: 0 !important;
    align-self: stretch;
  }
  
  .info-card:nth-child(2) {
    margin-left: 0;
    align-self: stretch;
    max-width: 100%;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .services h2 {
    font-size: 28px;
  }
  
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .info-section {
    gap: 30px;
    padding: 30px 15px;
  }
  
  .info-card {
    padding: 20px;
    border-radius: 25px;
  }
  
  .info-card .icon {
    font-size: 20px;
    padding: 12px;
    min-width: 45px;
    height: 45px;
  }
  
  .info-card h3 {
    font-size: 18px;
  }
  
  .info-card p {
    font-size: 14px;
  }
  
  .hero h2 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .info-section {
    padding: 25px 10px;
    gap: 25px;
  }
  
  .info-image img {
    max-width: 95%;
    box-shadow: 0 5px 20px 20px #588DFF;
  }
  
  .info-card {
    padding: 18px;
    border-radius: 20px;
    gap: 12px;
  }
  
  .info-card h3 {
    font-size: 17px;
  }
  
  .info-card p {
    font-size: 13px;
  }
}