/* ==== VARIABLES ==== */
:root {
  --color-primary: #ff504d;
  --color-secondary: #00c9b7;
  --color-terciary: #ff8e43;
  --color-bg: #fffdf6;
  --color-dark: #333;
  --font-main: 'Poppins', sans-serif;
}

/* ==== RESETEO ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-dark);
  overflow-x: hidden;
}

/* ==== PRELOADER ==== */
#preloader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#preloader p {
  margin-top: 20px;
  font-weight: 600;
  color: var(--color-dark);
}

/* ==== HEADER ==== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: linear-gradient(to right, var(--color-terciary), var(--color-primary));
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 75px;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* ==== NAV ==== */
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ==== USER ==== */
.user-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
#welcomeContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}
#welcomeContainer p {
  font-size: 18px;
  font-weight: 600;
  color: white;
}
#logoutButton {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  margin-left: 15px;
}
#logoutButton:hover {
  background: white;
  color: var(--color-primary);
}

/* ==== QUIÉNES SOMOS ==== */
.quienes-somos {
  background: linear-gradient(to right, #fff8e7, #d9fff9);
  padding: 100px 20px;
  text-align: center;
}

.quienes-somos .contenido {
  max-width: 900px;
  margin: auto;
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.quienes-somos h2 {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.quienes-somos h3 {
  font-size: 28px;
  color: var(--color-terciary);
  margin-bottom: 30px;
}

.quienes-somos p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ==== FOOTER ==== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .quienes-somos .contenido {
    padding: 30px 20px;
  }

  .quienes-somos h2 {
    font-size: 36px;
  }
}
