/* RESET & GENERAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333333;
  background-color: #f4f7f9;
  line-height: 1.5;
}

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

/* PALETA DE COLORES */
:root {
  --navy-blue: #091c36;
  --bright-blue: #0072ce;
  --light-blue-bg: #eaf3fa;
  --orange-gold: #f38200;
  --yellow-accent: #fbb03b;
  --text-dark: #1b2533;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background: url('images/hero-bg.webp') no-repeat center center/cover;
  background-color: var(--navy-blue);
  color: #ffffff;
  padding: 50px 0 40px;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(9, 28, 54, 0.95) 50%, rgba(9, 28, 54, 0.6) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.main-logo {
  max-width: 150px;
  height: auto;
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.03);
}

.hero-text {
  flex: 2 1 400px;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
}

.main-title span {
  color: var(--yellow-accent);
}

.subtitle {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 400;
  color: #e2e8f0;
}

.hero-badges {
  flex: 1 1 200px;
  text-align: right;
}

.hero-badges ul {
  list-style: none;
  display: inline-block;
  text-align: left;
}

.hero-badges li {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: default;
}

.hero-badges li:hover {
  transform: translateX(5px);
  color: var(--yellow-accent);
}

.hero-badges i {
  color: var(--yellow-accent);
  margin-right: 8px;
}

/* INTRO SECTION */
.intro-section {
  padding: 35px 0;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.intro-container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1 1 500px;
  color: var(--bright-blue);
  font-size: 1.1rem;
  border-right: 2px solid #e0e0e0;
  padding-right: 20px;
}

.intro-text strong {
  font-weight: 800;
}

.intro-banner {
  flex: 1 1 400px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.target-icon {
  font-size: 2.5rem;
  color: var(--orange-gold);
  transition: transform 0.4s ease;
}

.intro-banner:hover .target-icon {
  transform: rotate(180deg) scale(1.1);
}

.intro-banner h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bright-blue);
  line-height: 1.2;
}

/* GRID DE CATEGORÍAS */
.services-grid-section {
  padding: 30px 0;
}

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

/* --- EFECTO HOVER EN LAS TARJETAS (CARDS) --- */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #d0e1f9;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
}

/* Levantamiento, sombra pronunciada y borde brillante al hacer HOVER */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 114, 206, 0.18);
  border-color: var(--bright-blue);
}

/* Efecto Zoom en la Imagen */
.card-image {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Efecto en la Insignia/Ícono Flotante */
.card-badge-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 55px;
  height: 55px;
  background-color: var(--bright-blue);
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  z-index: 2;
}

.card-badge-icon.orange-icon {
  background-color: var(--orange-gold);
}

.service-card:hover .card-badge-icon {
  transform: scale(1.15) rotate(10deg);
  background-color: var(--navy-blue);
}

/* Contenido de la Tarjeta */
.card-content {
  padding: 25px 22px;
  background-color: var(--light-blue-bg);
  flex-grow: 1;
  transition: background-color 0.3s ease;
}

.service-card:hover .card-content {
  background-color: #e2effa;
}

.card-content h3 {
  color: var(--bright-blue);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.service-card:hover .card-content h3 {
  color: var(--navy-blue);
}

.card-content ul {
  list-style: none;
}

.card-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--navy-blue);
  font-size: 0.95rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Efecto al pasar el mouse sobre un elemento de la lista */
.card-content li:hover {
  transform: translateX(4px);
  color: var(--bright-blue);
  font-weight: 600;
}

.card-content li::before {
  content: "•";
  color: var(--bright-blue);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* SECCIÓN MAQUINARIA PESADA */
.heavy-machinery-section {
  padding: 10px 0 40px;
}

.machinery-card {
  flex-direction: row;
  flex-wrap: wrap;
}

.machinery-image {
  flex: 1 1 500px;
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.machinery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.machinery-content {
  flex: 1 1 400px;
  padding: 30px;
}

/* PROPUESTA DE VALOR Y POR QUÉ ELEGIRNOS */
.value-proposition-section {
  background-color: var(--navy-blue);
  color: #ffffff;
  padding: 45px 0;
}

.value-container {
  display: flex;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.value-col {
  flex: 1 1 400px;
}

.value-col.separator {
  flex: 0 0 1px;
  background-color: #1e3a60;
}

.value-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--yellow-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--yellow-accent);
  transition: all 0.3s ease;
}

.value-col:hover .value-icon {
  background-color: var(--yellow-accent);
  color: var(--navy-blue);
  transform: rotate(15deg);
}

.value-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.value-col h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--yellow-accent);
  margin-bottom: 15px;
}

.value-col p {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.why-us-list {
  list-style: none;
}

.why-us-list li {
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.why-us-list li:hover {
  transform: translateX(6px);
  color: var(--yellow-accent);
}

.why-us-list i {
  color: var(--yellow-accent);
}

/* FOOTER */
.footer-section {
  background-color: #e6f2ff;
  border-top: 4px solid var(--navy-blue);
  padding: 25px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo img {
  max-width: 100px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.info-item:hover {
  transform: translateY(-2px);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--bright-blue);
  transition: color 0.3s ease;
}

.info-item:hover i {
  color: var(--orange-gold);
}

.info-item div {
  display: flex;
  flex-direction: column;
}

.info-item a {
  color: var(--navy-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: var(--bright-blue);
}

.footer-tagline p {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--yellow-accent);
  line-height: 1.1;
  text-align: right;
}

.footer-tagline span {
  font-weight: bold;
}

/* RESPONSIVE DESIGN (MÓVILES Y TABLETS) */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .intro-text {
    border-right: none;
    border-bottom: 2px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 15px;
  }
  
  .value-col.separator {
    display: none;
  }
  
  .hero-badges {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.1rem;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-tagline p {
    text-align: left;
  }
  
  .machinery-card {
    flex-direction: column;
  }
}
