
/* =========================
   DESIGN SYSTEM
========================= */
:root {
  --primary: #ff6600;
  --dark: #111;
  --light: #fff;

  --space-xs: 10px;
  --space-sm: 20px;
  --space-md: 40px;
  --space-lg: 60px;
  --space-xl: 80px;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

.section-title {
  margin-bottom: var(--space-md);
}

/* =========================
   LAYOUT GLOBAL
========================= */
section {
  padding: var(--space-lg) 0;
}

.slider {
  margin-top: 110px;
  margin-bottom: var(--space-lg);
}

/* =========================
   SLIDER
========================= */
.slider {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 3;
  max-width: 500px;
}

/* BOTONES */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* DOTS */
.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  width: 12px;
  height: 12px;
  background: white;
  display: inline-block;
  border-radius: 50%;
  margin: 5px;
  opacity: 0.5;
}

.dot.active {
  opacity: 1;
  background: var(--primary);
}

/* =========================
   CARDS
========================= */
.card {
  margin-bottom: var(--space-md);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* =========================
   FOOTER
========================= */
footer {
  background: #222;
  color: #fff;
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){

  .slider {
    height: 55vh;
  }

  .content {
    left: 5%;
    right: 5%;
  }

  h1 { font-size: 1.8rem; }

  .nav-btn {
    display: none;
  }
}


/* Quitar espacio con slider */
.slider {
  margin-bottom: 0 !important;
}

.feature-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* columnas */
.feature-item {
  padding: 40px 20px;
  border-right: 1px solid #eee;
}

.feature-item:last-child {
  border-right: none;
}

/* iconos */
.feature-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #ff6600;
}

/* hover profesional */
.feature-item:hover {
  background: #f8f9fa;
  transition: 0.3s;
}

/* =========================
   FEATURE SECTION PRO
========================= */

/* eliminar espacio con slider */
.slider {
  margin-bottom: 0 !important;
}

.feature-section {
  background: #fff;
}

/* columna base */
.feature-item {
  position: relative;
  padding: 50px 25px;
  transition: all 0.3s ease;
  border-right: 1px solid #eee;
}

.feature-item:last-child {
  border-right: none;
}

/* contenedor interno */
.feature-box {
  text-align: center;
  max-width: 280px;
  margin: auto;
}

/* icono */
.icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255,102,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  color: #ff6600;

  transition: all 0.3s ease;
}

/* texto */
.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-box p {
  font-size: 0.95rem;
  color: #666;
}

/* =========================
   HOVER EFECTO PRO
========================= */
.feature-item:hover {
  background: #f9f9f9;
}

.feature-item:hover .icon-wrap {
  background: #ff6600;
  color: #fff;
  transform: scale(1.1);
}

/* efecto elevación */
.feature-item:hover .feature-box {
  transform: translateY(-5px);
  transition: 0.3s;
}

/* línea animada inferior */
.feature-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #ff6600;
  transition: 0.3s;
  transform: translateX(-50%);
}

.feature-item:hover::after {
  width: 60%;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .feature-item {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .feature-item:last-child {
    border-bottom: none;
  }

  .feature-item {
    padding: 40px 20px;
  }
}


