/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #fff;
  --card-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Botones */
.btn,
button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1em;
}

.btn:hover,
button:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Navegación */
nav {
  background: var(--card-bg);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  background: linear-gradient(30deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(30deg);
  animation: shine 50s infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-img {
  width: 127px;
  height: 127px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h2 {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Secciones */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  position: relative;
  text-decoration: none;
}

.section h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
}

/* Formulario de contacto */
.contact-section {
  width: 70%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 3rem;
}

.contact-form,
form {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
}

input,
textarea {
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
}

textarea {
  resize: vertical;
  min-height: 145px;
}

.form-conditions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-conditions label {
  font-weight: normal;
}

.form-conditions a {
  color: var(--secondary-color);
  text-decoration: none;
}

.error-message {
  color: #d32f2f;
  font-size: 0.8rem;
  display: none;
}

.input-error {
  border-color: #d32f2f;
}


  .overlay.show {
    display: block !important;
  }
  .popup.show {
    display: block !important;
  }

  /* Opcional: darle estilo básico */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    max-width: 300px;
    text-align: center;
  }

/* Ícono animado */
.hero-image i {
  font-size: 5rem;
  background: linear-gradient(45deg, #ff8a8a, #f294ae, #a48efb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Animaciones */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    justify-content: center;
  }

  .nav-links {
    gap: 1rem;
  }

  .about-content,
  .stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }


  .contact-section {
    width: 90%;
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }
}
