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

body{
  width: 100%;
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: 'Poppins', sans-serif;
}

header{
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

nav ul{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  gap: 12px;
  padding: 0;
  margin: 0;
}

nav ul li{
  display: flex;
}

nav ul li a{
  display: block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all .25s ease;
}

nav ul li a:hover{
  color: #fff;
  background: #007BFF;
  transform: translateY(-1px);
}

nav ul li a:active{
  transform: translateY(0);
}

nav ul li a:focus-visible{
  outline: 3px solid rgba(0,123,255,.35);
  outline-offset: 2px;
}

.btn-contact{
    background: #007BFF;
    color: #fff;
    transition: all .3s ease;
}

.hero-banner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007bff1c 0%, #1f2bc5 100%), url(../assets/head-hero.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 0 20px;
}

.hero-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  text-align: left;
  color: #fff;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0.95;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-button {
  background: #fff;
  color: #667eea;
  border: none;
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.cta-button i {
  margin-right: 8px;
  font-size: 20px;
  vertical-align: middle;
  transition: transform .3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,.3);
}

.cta-button:hover i {
  transform: rotate(15deg);
}

.cta-button:active {
  transform: translateY(-1px);
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.3));
}

/* Services Section */
#services {
  padding: 80px 20px;
  background-color: #f5f5f5;
}

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

.section-title {
  text-align: center;
  font-size: 42px;
  color: #333;
  margin-bottom: 60px;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,123,255,.2);
}

.card-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 64px;
  transition: all .3s ease;
}

/* Colores específicos para cada tarjeta de servicio */
.service-card:nth-child(1) .card-icon i {
  color: #007BFF; /* Azul - Consultoría IT */
}

.service-card:nth-child(2) .card-icon i {
  color: #10B981; /* Verde - Arquitectura */
}

.service-card:nth-child(3) .card-icon i {
  color: #F97316; /* Naranja - Agile */
}

.service-card:hover .card-icon i {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 16px;
  font-weight: 600;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-button {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
}

.card-button:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.card-button:active {
  transform: scale(0.98);
}

/* Consultant Section */
#consultant {
  padding: 80px 20px;
  background: linear-gradient(135deg, #007bff 0%, #1f2bc5 100%);
  color: #fff;
}

.consultant-container {
  max-width: 1000px;
  margin: 0 auto;
}

.consultant-container h1 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  font-weight: 700;
}

.consultant-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.consultant-item {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .3s ease;
}

.consultant-item:hover {
  background: rgba(255,255,255,.15);
  transform: translateX(8px);
}

.consultant-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

.consultant-item h3 i {
  margin-right: 12px;
  font-size: 34px;
  vertical-align: middle;
  transition: all .3s ease;
}

/* Colores específicos para cada item de Consultoría - Optimizados para fondo azul */
.consultant-item:nth-child(1) h3 i {
  color: #FDE047; /* Amarillo brillante - Análisis */
}

.consultant-item:nth-child(2) h3 i {
  color: #FFFFFF; /* Blanco - Optimización */
}

.consultant-item:nth-child(3) h3 i {
  color: #FF6B9D; /* Rosa vibrante - Implementación */
}

.consultant-item:nth-child(4) h3 i {
  color: #4ADE80; /* Verde brillante - Monitoreo */
}

.consultant-item:hover h3 i {
  transform: scale(1.2);
  filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
}

.consultant-item p {
  line-height: 1.6;
  opacity: 0.9;
}

.section-button {
  display: block;
  margin: 0 auto;
  background: #fff;
  color: #667eea;
  border: none;
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.section-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,.3);
}

.section-button:active {
  transform: scale(0.98);
}

/* Arquitect Section */
#arquitect {
  padding: 80px 20px;
  background-color: #fff;
}

.arquitect-container {
  max-width: 1000px;
  margin: 0 auto;
}

.arquitect-container h1 {
  text-align: center;
  font-size: 48px;
  color: #333;
  margin-bottom: 60px;
  font-weight: 700;
}

.arquitect-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.arquitect-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid #007BFF;
  transition: all .3s ease;
}

.arquitect-item:hover {
  transform: translateX(8px);
}

.arquitect-item h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.arquitect-item h3 i {
  margin-right: 12px;
  font-size: 26px;
  vertical-align: middle;
  transition: all .3s ease;
}

.arquitect-item p {
  color: #666;
  line-height: 1.6;
}

/* Colores específicos para cada item de Arquitectura */
.arquitect-item:nth-child(1) {
  border-left-color: #007BFF;
}

.arquitect-item:nth-child(1):hover {
  background: #e7f3ff;
}

.arquitect-item:nth-child(1) h3 i {
  color: #007BFF;
}

.arquitect-item:nth-child(1):hover h3 i {
  color: #0056b3;
}

.arquitect-item:nth-child(2) {
  border-left-color: #0EA5E9;
}

.arquitect-item:nth-child(2):hover {
  background: #e0f2fe;
}

.arquitect-item:nth-child(2) h3 i {
  color: #0EA5E9;
}

.arquitect-item:nth-child(2):hover h3 i {
  color: #0284c7;
}

.arquitect-item:nth-child(3) {
  border-left-color: #8B5CF6;
}

.arquitect-item:nth-child(3):hover {
  background: #f3e8ff;
}

.arquitect-item:nth-child(3) h3 i {
  color: #8B5CF6;
}

.arquitect-item:nth-child(3):hover h3 i {
  color: #7c3aed;
}

.arquitect-item:nth-child(4) {
  border-left-color: #EF4444;
}

.arquitect-item:nth-child(4):hover {
  background: #fee2e2;
}

.arquitect-item:nth-child(4) h3 i {
  color: #EF4444;
}

.arquitect-item:nth-child(4):hover h3 i {
  color: #dc2626;
}

/* Agile Section */
#agile {
  padding: 80px 20px;
  background: linear-gradient(135deg, #007bff 0%, #1f2bc5 100%);
  color: #fff;
}

.agile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.agile-container h1 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  font-weight: 700;
}

.agile-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.agile-item {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  transition: all .3s ease;
}

.agile-item:hover {
  background: rgba(255,255,255,.2);
  transform: translateX(8px);
}

.agile-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

.agile-item h3 i {
  margin-right: 12px;
  font-size: 34px;
  vertical-align: middle;
  transition: all .3s ease;
}

/* Colores específicos para cada item de Agile - Optimizados para fondo azul */
.agile-item:nth-child(1) h3 i {
  color: #FBBF24; /* Amarillo dorado - Formación */
}

.agile-item:nth-child(2) h3 i {
  color: #FB7185; /* Rosa brillante - Transformación */
}

.agile-item:nth-child(3) h3 i {
  color: #FB923C; /* Naranja brillante - Mejora Continua */
}

.agile-item:nth-child(4) h3 i {
  color: #22D3EE; /* Cyan brillante - Facilitación */
}

.agile-item:hover h3 i {
  transform: scale(1.2);
  filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
}

.agile-item p {
  line-height: 1.6;
  opacity: 0.9;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #fff;
  padding: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px 20px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #fff;
}

.footer-signature {
  font-size: 72px;
  margin-bottom: 20px;
  text-align: center;
}

.footer-signature i {
  font-size: 72px;
  vertical-align: middle;
}

.footer-email {
  font-size: 16px;
  margin-bottom: 20px;
  color: #ecf0f1;
  text-align: center;
}

.footer-email i {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icon {
  text-decoration: none;
  transition: all .3s ease;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  background: rgba(255,255,255,.15);
}

.social-icon i {
  font-size: 28px;
  vertical-align: middle;
  color: #fff;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(255,255,255,.25);
  box-shadow: 0 6px 15px rgba(255,255,255,.2);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 16px;
  transition: all .3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #3498db;
  transform: translateX(5px);
}

.footer-bottom {
  background: #1a252f;
  padding: 25px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom p {
  margin: 0;
  color: #bdc3c7;
  font-size: 14px;
}

@media (max-width: 768px){
  nav {
    flex-direction: column;
    padding: 15px 20px;
    min-height: auto;
    gap: 15px;
  }

  .logo img {
    height: 40px;
  }

  nav ul{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
  }

  nav ul li a{
    padding: 10px 14px;
    font-size: 14px;
    letter-spacing: 0.3px;
  }

  /* Hero Banner Responsive */
  .hero-banner {
    background-attachment: scroll;
    padding: 60px 15px;
  }

  .hero-wrapper {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .hero-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 16px;
  }

  .hero-image img {
    max-height: 400px;
  }

  /* Services Responsive */
  #services {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .card-icon {
    font-size: 48px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  /* Consultant Responsive */
  #consultant {
    padding: 50px 15px;
  }

  .consultant-container h1 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .consultant-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .consultant-item {
    padding: 24px;
  }

  .consultant-item:hover {
    transform: translateY(-4px);
  }

  .consultant-item h3 {
    font-size: 20px;
  }

  .section-button {
    padding: 14px 32px;
    font-size: 16px;
  }

  /* Arquitect Responsive */
  #arquitect {
    padding: 50px 15px;
  }

  .arquitect-container h1 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .arquitect-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .arquitect-item {
    padding: 24px;
  }

  .arquitect-item:hover {
    transform: translateY(-4px);
  }

  .arquitect-item h3 {
    font-size: 20px;
  }

  /* Agile Responsive */
  #agile {
    padding: 50px 15px;
  }

  .agile-container h1 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .agile-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .agile-item {
    padding: 24px;
  }

  .agile-item:hover {
    transform: translateY(-4px);
  }

  .agile-item h3 {
    font-size: 20px;
  }

  /* Footer Responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
    text-align: center;
  }

  .footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-signature {
    font-size: 56px;
    margin-bottom: 15px;
  }

  .footer-email {
    font-size: 14px;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icon {
    font-size: 24px;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links a:hover {
    transform: translateX(0) scale(1.05);
  }

  .footer-bottom {
    padding: 20px;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}
