 /* Variables globales */
:root {
    --primary-color: #ffb6c1;       /* Rosa pastel suave */
    --secondary-color: #98d8c8;     /* Verde menta pastel */
    --tertiary-color: #fcbecb;      /* Rosa pálido */
    --bg-color: #fff5f7;            /* Fondo rosado muy suave */
    --container-bg: rgba(255, 245, 247, 0.85);
    --text-color: #6d534b;          /* Marrón oscuro para mejor legibilidad */
    --header-footer-bg: rgba(255, 182, 193, 0.9);
    --footer-bg: rgba(152, 216, 200, 0.9);
    --border-radius-lg: 20px;
    --border-radius-sm: 15px;
    --box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    --header-footer-padding: 20px;
    --accent-color: #d0f0c0;        /* Verde pastel claro */
    --highlight-color: #fffacd;     /* Amarillo pastel */
    --bow-color: #ffacc7;           /* Rosa del moño */
}
  
  /* Reset y estilos base */
body {
    font-family: 'Comic Sans MS', 'Century Gothic', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
    background-color: var(--bg-color); /* Fondo base suave */
    background-image: url(../img/bordeext.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}
  
  /* Animaciones globales */
  @keyframes loadingAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
  }
  
  @keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }
  
  @keyframes floatIn {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
  }
  
  @keyframes floatFancy {
    0%   { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-10px) rotate(3deg); }
    50%  { transform: translateY(-20px) rotate(-3deg); }
    75%  { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }
  
  /* Estructura de la página */
  .content {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  
  /* Estilos de tipografía generales */
  h1 {
    color: var(--tertiary-color);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
  }
  
  h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.5rem auto;
    border-radius: 2px;
  }
  
  /* Header */
  .header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    position: fixed;
    top: 0;
    left: 50%;
    width: 75%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius-lg);
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 12px;
  }
  
  .logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .back-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logoHuellas {
  height: 50px; /* ajusta a la altura deseada */
  margin-right: 8px; /* espacio entre el logo y la flecha */
  border-radius: 10px;
}

.back-arrow {
  margin-right: 5px; /* espacio entre la flecha y el texto */
}

  /* Barra de carga */
  .loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    width: 0%;
    z-index: 1000;
    animation: loadingAnimation 2s ease forwards;
  }
  
  /* Contenedor estándar - combinado de ambos archivos */
  .container {
    background-color: var(--container-bg);
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    max-width: 950px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    animation: floatIn 1s ease-out;
    height: auto;
    display: flex;
  }
  
  /* Borde superior decorativo para contenedores */
  .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }
  
  /* Navegación reutilizable */
  nav {
    margin-top: 20px;
  }
  
  nav a {
    background-color: var(--tertiary-color);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    margin: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  
  nav a:hover {
    background-color: var(--secondary-color);
  }
  
  /* Footer */
  .footer {
    background-color: var(--footer-bg);
    color: white;
    padding: var(--header-footer-padding);
    text-align: center;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
  }
  
  .footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 12px;
  }
  
  .copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  /* Iconos sociales */
  /* Iconos sociales */
.sidebar {
    width: 100%;
    margin-top: 15px;
}

.sidebar .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 15px;
}

.sidebar .social-icons li {
    margin: 0;
}

.sidebar .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.sidebar .social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.sidebar .social-icons a:hover::before {
    left: 100%;
}

.sidebar .social-icons a:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.sidebar .social-icons i {
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.sidebar .social-icons a:hover i {
    color: white;
    transform: scale(1.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
  
  /* Estilos del contenedor de texto e imagen integrados de base.css */
  .text-box {
    flex: 1;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #4b2e19;
    background-color: rgba(255, 248, 242, 0.9);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: 3px solid #e59b72;
  }
  
  .text-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    border-radius: var(--border-radius-lg);
    z-index: -1;
  }
  
  .image-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    max-width: 500px;
  }
  
  .image-box img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  }
  
  /* Media queries */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      padding: 30px;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    .header {
      flex-direction: column;
      padding: 10px;
    }
    
    .footer-content {
      flex-direction: column;
      text-align: center;
    }
    
    .footer-logo {
      margin: 0 auto;
    }
    
    .sidebar .social-icons {
      margin-top: 15px;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 20px;
      margin: 30px auto;
    }
    
    .text-box {
      padding: 15px;
      font-size: 1.3rem;
    }
  }