/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --dark-bg: #1a202c;
    --header-bg: #2d3748;
    --header-glass: rgba(45, 55, 72, 0.95);
    --card-bg: #34495e;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #f7fafc;
    --border-color: #e2e8f0;
    --hover-color: #c53030;
    --success-color: #38a169;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
  }
  
  body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
  }
  
  /* Header */
  header {
    background: var(--header-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80px;
    position: relative;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
  
  .logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
  }
  
  .textos-header h1 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .eslogan {
    color: #fbb6ce;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #f39c12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
  }
  
  .back-btn::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;
  }
  
  .back-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c53030, #e67e22);
  }
  
  .back-btn:hover::before {
    left: 100%;
  }
  
  .back-btn span {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
  }
  
  .back-btn:hover span {
    transform: translateX(-2px);
  }
  
  /* Main Container */
  .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(247, 250, 252, 0.95) 50%, 
      rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    margin: 2rem 1rem;
    border-radius: 25px;
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.12),
      0 8px 20px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.03) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
  }
  
  @keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, -2%) rotate(1deg); }
    66% { transform: translate(2%, 2%) rotate(-1deg); }
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
    z-index: 2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
  }
  
  .hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(247, 250, 252, 0.6));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 160px;
  }
  
  .hero-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.6s;
  }
  
  .hero-feature:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.8));
  }
  
  .hero-feature:hover::before {
    left: 100%;
  }
  
  .hero-feature-icon {
    font-size: 2rem;
  }
  
  .hero-feature-text {
    font-weight: 600;
    color: var(--text-primary);
  }
  
  /* Content Sections */
  .content-section {
    padding: 3rem 0;
    margin: 0 1rem;
  }
  
  .section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* Beneficios Grid */
  .beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .beneficio-card {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(247, 250, 252, 0.95) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
      0 15px 30px rgba(0, 0, 0, 0.1),
      0 6px 12px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .beneficio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #f39c12, var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .beneficio-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.15),
      0 10px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(247, 250, 252, 1) 100%);
  }
  
  .beneficio-card:hover::before {
    opacity: 1;
  }
  
  .beneficio-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
  }
  
  .beneficio-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
  }
  
  .beneficio-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
  }
  
  /* Proceso Steps */
  .proceso-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .step-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 25px var(--shadow-medium);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-strong);
    background: rgba(255, 255, 255, 1);
  }
  
  .step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #f59e0b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  }
  
  .step-icon {
    font-size: 2rem;
    display: block;
    margin: 0.8rem 0;
  }
  
  .step-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
  }
  
  .step-description {
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  /* Form Styles */
  .registro-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    padding: 2.5rem;
    box-shadow: 0 18px 35px var(--shadow-strong);
    border: 1px solid var(--glass-border);
    margin: 2rem 0;
  }
  
  .registro-form {
    max-width: 100%;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group.full-width {
    grid-column: 1 / -1;
  }
  
  .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    color: var(--text-primary);
  }
  
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1);
  }
  
  .form-input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  /* Checkbox Styles */
  .form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .form-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary-color);
  }
  
  .checkbox-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
  }
  
  /* Submit Button */
  .submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #f59e0b);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
  }
  
  .submit-btn::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;
  }
  
  .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
  }
  
  .submit-btn:hover::before {
    left: 100%;
  }
  
  .submit-btn:active {
    transform: translateY(-1px);
  }
  
  .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  
  /* CTA Final */
  .cta-final {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 40px var(--shadow-medium);
    border: 1px solid var(--glass-border);
    margin: 2rem 0;
  }
  
  .cta-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 800;
  }
  
  .cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .cta-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 150px;
  }
  
  .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
    background: rgba(255, 255, 255, 0.8);
  }
  
  .contact-item span {
    font-size: 1.5rem;
  }
  
  .contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .contact-item a:hover {
    color: var(--hover-color);
  }
  
  /* Loading State */
  .registro-form.loading {
    opacity: 0.7;
    pointer-events: none;
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .header-content {
      padding: 1rem 1.5rem;
    }
    
    .hero-section {
      padding: 3rem 0;
    }
    
    .hero-title {
      font-size: 2.5rem;
    }
    
    .beneficios-grid {
      grid-template-columns: 1fr;
    }
    
    .proceso-steps {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
      gap: 1.2rem;
    }
    
    .registro-form-container {
      padding: 2rem;
    }
  }
  
    @media (max-width: 768px) {
      .header-content {
        padding: 1rem;
        min-height: 70px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
      }
      
      .header-left {
        flex: 1;
        min-width: 0;
      }
      
      .back-btn {
        flex-shrink: 0;
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        gap: 0.4rem;
      }
      
      .textos-header h1 {
        font-size: 1.6rem;
      }
      
      .eslogan {
        font-size: 0.75rem;
      }
      
      .logo {
        width: 50px;
        height: 50px;
      }
    
    .hero-section {
      margin: 1rem 0.5rem;
      padding: 2.5rem 0;
    }
    
    .hero-content {
      padding: 0 1rem;
    }
    
    .hero-title {
      font-size: 2rem;
    }
    
    .hero-subtitle {
      font-size: 1.1rem;
    }
    
    .hero-features {
      gap: 1rem;
    }
    
    .content-section {
      margin: 0 0.5rem;
      padding: 3rem 0;
    }
    
    .section-title {
      font-size: 2rem;
      margin-bottom: 2rem;
    }
    
    .beneficio-card,
    .step-card {
      padding: 2rem;
    }
    
    .proceso-steps {
      grid-template-columns: 1fr;
    }
    
    .form-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .registro-form-container {
      padding: 1.5rem;
      margin: 1rem 0;
      border-radius: 20px;
    }
    
    .cta-contact {
      gap: 1rem;
    }
    
    .contact-item {
      min-width: 120px;
    }
  }
  
  @media (max-width: 480px) {
    .header-content {
      min-height: 70px;
    }
    
    .logo {
      width: 45px;
      height: 45px;
    }
    
    .textos-header h1 {
      font-size: 1.4rem;
    }
    
    .eslogan {
      font-size: 0.7rem;
    }
    
    .back-btn {
      padding: 0.6rem 1rem;
      font-size: 0.9rem;
    }
    
    .hero-section {
      padding: 2rem 0;
      margin: 0.5rem;
    }
    
    .hero-title {
      font-size: 1.75rem;
    }
    
    .hero-subtitle {
      font-size: 1rem;
    }
    
    .hero-features {
      flex-direction: column;
      align-items: center;
    }
    
    .hero-feature {
      width: 200px;
    }
    
    .content-section {
      padding: 2rem 0;
      margin: 0;
    }
    
    .section-title {
      font-size: 1.75rem;
    }
    
    .beneficio-card,
    .step-card {
      padding: 1.5rem;
    }
    
    .registro-form-container {
      padding: 1rem;
      border-radius: 15px;
    }
    
    .form-input,
    .form-select {
      padding: 0.8rem 1rem;
      font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
      width: 100%;
      padding: 1rem 2rem;
    }
    
    .cta-final {
      padding: 2rem;
    }
    
    .cta-contact {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media (max-width: 360px) {
    .hero-title {
      font-size: 1.5rem;
    }
    
    .section-title {
      font-size: 1.5rem;
    }
    
    .beneficio-title,
    .step-title {
      font-size: 1.2rem;
    }
    
    .form-checkbox-group {
      gap: 0.8rem;
    }
    
    .checkbox-label {
      font-size: 0.9rem;
    }
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeInUp 0.6s ease forwards;
  }
  
  /* Focus improvements for accessibility */
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus,
  .submit-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .form-input,
    .form-select,
    .form-textarea {
      border-width: 3px;
    }
    
    .submit-btn {
      border: 2px solid white;
    }
  }