@import url("https://fonts.googleapis.com/css?family=Titillium Web");

/* assets/css/styles.css */
:root {
  --primary-color: #549db4;
  --primaryaltern-color: #38778a;
  --secondary-color: #b50018;
  --accent-color: #ffffff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #1b8af1;
  --error-color: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --black: #000;
  --gradient-primary: linear-gradient(135deg, #2b78b5 0%, #1d9ae9 100%);
  --gradient-secondary: linear-gradient(135deg, #ce6339 0%, #b50018 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("../assets/img//hero-bg-light.webp");
  font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  margin: 0;
  padding-top: 70px;
  background-size: cover;

  /* Centra la imagen */
  background-position: center center;

  /* Evita que la imagen se repita */
  background-repeat: no-repeat;

  /* Fija la imagen para que no se mueva al hacer scroll */
  background-attachment: fixed;

  /* Asegura que el fondo cubra todo el viewport */
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.664);
  /* Capa blanca semitransparente */
  z-index: -1;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .header-left span {
    font-size: 20px;
    /* Reducir tamaño de fuente */
    line-height: 1.2;
    /* O si prefieres ocultarlo completamente: */
    /* display: none; */
  }
}

/* Para pantallas muy pequeñas (móviles) */
@media (max-width: 480px) {
  .header-left span {
    font-size: 14px;
    /* O texto más corto: */
    /* content: "Concurso Innovación"; */
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: normal;
}

.logo img {
  height: 50px;
  /* Ajusta la altura según el tamaño de tu logotipo */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.932));
}

.header-right .btn-primary {
  background: #549db4;
  border: 1px solid rgb(255, 255, 255);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-right .btn-primary:hover {
  background: #daedf3;
  transform: translateY(-1px);
  color: var(--black);
}

/* Descripción mejorada */
.description-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.description-card p {
  font-size: 1.1rem;
  text-align: center;
  color: var(--gray-700);
  line-height: 1;
}

/* Cards de redes mejoradas */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 2rem;
  justify-content: center;
}

.network-card {
  position: relative;
  height: 330px;
  border-radius: 50px;
  background: #e0e0e0;
  box-shadow: 20px 20px 60px #818181, -20px -20px 60px #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.card-image {
  height: 480px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.network-card:hover .card-image img {
  transform: scale(1.05);
}

.network-card h3 {
  font-size: 1.2rem;
  font-weight: normal;
}

.network-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  background-size: 110px;
}

.card-button {
  background: var(--primaryaltern-color);
  border: none;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.card-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.card-container {

  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFadeIn 0.8s ease-out forwards;
}

.card-container:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes slideUpFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-hover {

  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.card-hover:active {
  transform: translateY(-4px) scale(1.01);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-hover:hover .image-overlay {
  opacity: 1;
}

.floating-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.card-hover:hover .floating-icon {
  transform: scale(1);
}

.text-gradient {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
