/* ======================= */
/* ====== VARIABLES ====== */
/* ======================= */
:root {
  --bg-dark-1: #0f2027;          /* Fondo gradiente oscuro 1 */
  --bg-dark-2: #203a43;          /* Fondo gradiente oscuro 2 */
  --accent-primary: #00c6ff;     /* Color principal */
  --accent-secondary: #0072ff;   /* Color secundario */
  --surface-light: #ffffff;      /* Fondo secciones claras */
  --text-dark: #0b2433;          /* Texto oscuro */
  --text-muted: #6b7280;         /* Texto secundario */
  --glass: rgba(17,17,17,0.6);   /* Fondo tipo glass */
  --max-width: 1200px;           /* Ancho máximo contenedores */
  --radius: 12px;                /* Bordes redondeados */
  --shadow-light: rgba(8,20,30,0.06);
  --shadow-heavy: rgba(8,20,30,0.09);
}

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

html, body {
  height: 100%;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ======================= */
/* ====== BODY ========= */
/* ======================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
  color: #e6f0f6; /* texto claro sobre fondo oscuro */
}

/* ======================= */
/* ====== CONTENEDOR ===== */
/* ======================= */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ======================= */
/* ====== HEADER ========= */
/* ======================= */
header {
  background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.2));
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: white;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.nav a:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-nav {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: #041425;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,198,255,0.12);
}

/* ======================= */
/* ====== HERO =========== */
/* ======================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 72vh;
  padding: 3.5rem 1rem;
  position: relative;
}

.hero .content {
  width: 100%;
  max-width: 920px;
}

.kicker {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: #dff6ff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.05;
  text-shadow: 0 6px 18px rgba(2,10,20,0.4);
}

.hero p {
  color: #dceefb;
  font-size: 1.05rem;
  margin: 0 auto 1.4rem;
  max-width: 760px;
}

.hero .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* BOTONES */
.btn-main {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: #041425;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,198,255,0.12);
  transition: transform 0.2s ease;
}

.btn-main:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #eaf7ff;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.03);
}

/* ======================= */
/* ====== SECCIONES ====== */
/* ======================= */
.main {
  background: transparent;
  padding-bottom: 3rem;
}

.section {
  margin: 2rem auto;
  padding: 3rem 1rem;
  background: var(--surface-light);
  color: var(--text-dark);
  border-radius: var(--radius);
  width: 90%;
  max-width: var(--max-width);
  box-shadow: 0 18px 40px var(--shadow-light);
  border: 1px solid rgba(6,35,56,0.04);
}

.section.alt {
  background: #f7fbff;
}

.section h2 {
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.section p {
  color: var(--text-muted);
  text-align: center;
  max-width: 820px;
  margin: 0.6rem auto 0;
}

/* ======================= */
/* ====== GRID & CARDS ==== */
/* ======================= */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.grid-3 {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px var(--shadow-light);
  border: 1px solid rgba(6,35,56,0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card h4 {
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px var(--shadow-heavy);
}

/* ======================= */
/* ====== CTA ========= */
/* ======================= */
.cta {
  margin: 2rem auto;
  width: 90%;
  max-width: var(--max-width);
  background: linear-gradient(90deg, #0b2433, #102f45);
  padding: 1.6rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 20;
  color: #ffffff;
}

.cta .left strong {
  font-size: 1.2rem;
  color: #ffffff;
}

.cta .left .text-muted {
  color: #cfe9ff;
  margin-top: 0.4rem;
  font-weight: 500;
}

.cta .actions .btn-main {
  background: linear-gradient(90deg,var(--accent-primary),var(--accent-secondary));
  color: #041425;
  box-shadow: 0 10px 30px rgba(0,198,255,0.18);
}

.cta .actions .btn-ghost {
  background: white;
  color: var(--text-dark);
  border: 1px solid rgba(6,35,56,0.06);
}

/* ======================= */
/* ====== FOOTER ========= */
/* ======================= */
footer {
  margin-top: auto;
  padding: 1.6rem 0;
  background: rgba(0,0,0,0.55);
  color: #dfeffb;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* ======================= */
/* ====== UTILITIES ====== */
/* ======================= */
.text-muted { color: var(--text-muted); }
.center { text-align: center; }

/* ======================= */
/* ====== RESPONSIVE ==== */
/* ======================= */
@media (max-width:900px){
  .hero h1{ font-size:2rem }
  .section{ padding:2rem }
  .cta{ flex-direction:column; text-align:center }
}

@media (max-width:520px){
  .nav{ display:none }
  .hero h1{ font-size:1.6rem }
  .hero p{ font-size:0.98rem }
  .container{ width:94% }
}

/* =========================
   ARREGLO BOTONES CTA
   ========================= */
.cta .actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cta .actions a {
    white-space: nowrap;
}

/* ======================= */
/* ====== SLIDER AUTOMÁTICO == */
/* ======================= */
.slider-container {
    width: 90%;
    max-width: 900px;
    margin: -2rem auto 3rem; /* Sube un poco para pisar el Hero */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

.slider-wrapper {
    display: flex;
    width: 300%; /* Porque tenemos 3 imágenes */
    animation: slideAnimation 15s infinite;
}

.slide {
    width: 33.333%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Animación de 3 tiempos */
@keyframes slideAnimation {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-33.333%); }
    66%, 91% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* Pausar animación al pasar el ratón */
.slider-container:hover .slider-wrapper {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .slide img { height: 250px; }
}

.btn-view {
    background: transparent;
    border: 1px solid #00c6ff;
    color: #00c6ff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    font-weight: bold;
}
.btn-view:hover { 
    background: #00c6ff; 
    color: #041425; 
}
