/* 
   ___  _____    ___
  /   ||  _  |  /   | _
 / /| || |/' | / /| |(_)
/ /_| ||  /| |/ /_| |
\_CONEXIÓN INESTABLE| _
    |_/ \___/     |_/(_)

  https://cicsa.netlify.app/
*/

/* ==== RESET BÁSICO ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==== HEADER ==== */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  max-height: 60px;
}

nav {
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: rgb(186, 25, 192);
  z-index: 1101;
  background: none;
  border: none;
  position: fixed;
  top: 15px;
  right: 20px;
}

/* === NAV MENU === */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

/* Efecto al pasar el mouse: tipo botón cuadrado */
nav ul li a:hover {
  background-color: #f0f0f0;
  box-shadow: 0 0 0 2px #ba19c0 inset;
  color: #ba19c0;
}

/* Enlace activo: solo color de texto + línea inferior */
nav ul li a.active {
  color: #ba19c0;
}

/* ==== SLIDER ==== */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.02);
}

.hero .content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  padding: 2rem;
  color: #fff;
  max-width: 500px;
  border-radius: 10px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #810096;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #550462;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ==== SECTION GENÉRICA ==== */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #810096;
}

/* ==== CARDS ==== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 1024px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.cardn {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 300px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.card:hover,
.cardn:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 5px #efcaf5,
    0 0 10px #efcaf5,
    0 0 10px #efcaf5;
}

.card img,
.cardn img {
  max-width: 100%;
  border-radius: 6px;
}

.card h3,
.cardn h3 {
  margin-top: 1rem;
  color: #333;
}