/* ===========================
   VARIABLES CSS GLOBALES
   =========================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #f2a123;
  --gold-light: rgba(242, 161, 35, 0.1);
  --gold-medium: rgba(242, 161, 35, 0.3);
  --gray-light: #f8f9fa;
  --gray-dark: #333333;
  --blue-dark: #1a4b5a;
  --green-ocean: #4a8b8d;
  --ocean-blue: #1e90ff;
  --teal: #20b2aa;
}

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

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  position: relative;
  overflow-x: hidden;
}

/* ===========================
   ANIMACIONES GLOBALES
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ===========================
   UTILIDADES DE ANIMACIÓN
   =========================== */
.reveal-animation {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-animation.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===========================
   BOTONES GLOBALES
   =========================== */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e8941f);
  color: var(--black);
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(242, 161, 35, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e8941f, #d4811c);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(242, 161, 35, 0.4);
  color: var(--black);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(242, 161, 35, 0.3);
  text-decoration: none;
}

/* ===========================
   FORMULARIOS
   =========================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0.2rem rgba(242, 161, 35, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===========================
   EFECTOS DE IMAGEN
   =========================== */
.image-hover-effect {
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 15px;
}

.image-hover-effect:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-hover-effect img {
  transition: all 0.3s ease;
}

.image-hover-effect:hover img {
  transform: scale(1.1);
}

/* ===========================
   CARDS
   =========================== */
.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--gold-medium);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */
@media (max-width: 768px) {
  html {
    font-size: 100%;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .form-control {
    font-size: 16px; /* Prevenir zoom en iOS */
  }

  h1, h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }
}

/* ===========================
   LOADING STATES
   =========================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

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

/* ===========================
   MENSAJES DE ESTADO
   =========================== */
.message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.message-success {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  border-left: 4px solid #4caf50;
}

.message-error {
  background: rgba(244, 67, 54, 0.9);
  color: white;
  border-left: 4px solid #f44336;
}

.message-info {
  background: rgba(33, 150, 243, 0.9);
  color: white;
  border-left: 4px solid #2196f3;
}

/* ===========================
   SCROLLBAR PERSONALIZADO
   =========================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e8941f;
}

/* ===========================
   SELECTION
   =========================== */
::selection {
  background: var(--gold);
  color: var(--black);
}

::-moz-selection {
  background: var(--gold);
  color: var(--black);
}
