/* ===== VARIABLES Y RESET ===== */
:root {
  --brand: #0b7373;
  --brand-light: #0d8a8a;
  --brand-dark: #085c5c;
  --brand-gradient: linear-gradient(135deg, #0b7373 0%, #0d8a8a 100%);
  --brand-gradient-light: linear-gradient(135deg, #0d8a8a 0%, #0fa0a0 100%);
  --bg: #f8fbfc;
  --bg-light: #ffffff;
  --text: #1a2a3a;
  --text-light: #5a6a7a;
  --text-lighter: #8a99a9;
  --gray: #e6eaef;
  --gray-light: #f0f3f7;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px rgba(11, 115, 115, 0.08);
  --shadow-hover: 0 12px 28px rgba(11, 115, 115, 0.15);
  --shadow-large: 0 20px 40px rgba(11, 115, 115, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

strong {
  color: var(--brand);
  font-weight: 600;
}

/* ===== NAVBAR ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--bg-light);
  box-shadow: 0 2px 10px rgba(11, 115, 115, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(11, 115, 115, 0.2));
}

.logo span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* ===== BOTONES ===== */
.btn-primary, .btn-secondary, .btn-large {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-secondary:hover {
  background: rgba(11, 115, 115, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow);
}

.btn-large:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.full {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-content h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(11, 115, 115, 0.15));
  animation: float 6s ease-in-out infinite;
}

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

/* ===== INFO SECTIONS ===== */
.info-section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg-light);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-large);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.info-card h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  width: 100%;
}

.info-card h2::after {
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--gray-light);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.step:hover {
  border-left-color: var(--brand);
  transform: translateX(5px);
  background: white;
  box-shadow: var(--shadow);
}

.step-icon {
  font-size: 2.5rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(11, 115, 115, 0.1);
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--brand);
}

.step p {
  margin-bottom: 0;
  color: var(--text-light);
}

.info-final {
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  padding: 1.5rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
  margin-bottom: 0;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-large);
  width: 100%;
  max-width: 450px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand);
  width: 100%;
}

.modal-content h2::after {
  display: none;
}

.modal-content input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 115, 115, 0.1);
}

.close-modal {
  background: transparent;
  color: var(--text-light);
  border: none;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 1rem;
}

.close-modal:hover {
  color: var(--brand);
  background: var(--gray-light);
}

/* ===== NOTIFICACIONES ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--brand);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-large);
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

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

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-success {
  background: #28a745;
}

.notification-error {
  background: #dc3545;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding: 3rem 5%;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 5%;
  }
  
  .hero {
    padding: 2rem 5%;
    min-height: auto;
  }
  
  .info-section {
    padding: 3rem 5%;
  }
  
  .info-card {
    padding: 2rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .step-icon {
    align-self: center;
  }
  
  .modal-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .nav-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
}

/* ===== EFECTOS ESPECIALES ===== */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 115, 115, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(11, 115, 115, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 115, 115, 0);
  }
}

/* Scroll personalizado */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

/* Prevenir scroll cuando modal está abierto */
body.modal-open {
  overflow: hidden;
}