:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-color: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --success-color: #38b000;
    --error-color: #d00000;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  /* Estilos base */
  .contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
  }
  
  .contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,...');
    opacity: 0.5;
    z-index: 0;
  }
  
  .contact-section .container {
    position: relative;
    z-index: 1;
  }
  
  /* Encabezado */
  .contact-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
  }
  
  .contact-section .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
  }
  
  .contact-section .section-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    background: #001472;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .contact-section .section-header p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
  }
  
  /* Contenedor principal */
  .contact-section .contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
  }
  
  /* Información de contacto */
  .contact-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-section .info-box {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
  }
  
  .contact-section .info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
  }
  
  .contact-section .info-box .icon {
    background: #001472;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
  }
  
  .contact-section .info-box:hover .icon {
    transform: rotate(5deg) scale(1.1);
    animation: float 2s ease-in-out infinite;
  }
  
  .contact-section .info-box .details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
  }
  
  .contact-section .info-box .details p {
    color: var(--text-light);
    margin: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Formulario de contacto */
  .contact-section .contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
  }
  
  .contact-section .contact-form:hover {
    box-shadow: var(--box-shadow-hover);
  }
  
  .contact-section .form-group {
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  .contact-section .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
  }
  
  .contact-section .form-group input,
  .contact-section .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-gray);
  }
  
  .contact-section .form-group input:focus,
  .contact-section .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  }
  
  .contact-section .form-group textarea {
    resize: vertical;
    min-height: 160px;
  }
  
  .contact-section .btn-primary {
    background: #001472;
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
  }
  
  .contact-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #5e08a0);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
  }
  
  .contact-section .btn-primary:active {
    transform: translateY(0);
  }
  
  .contact-section .btn-primary i {
    margin-right: 0.5rem;
  }
  
  /* Mensajes del formulario */
  .contact-section #form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    animation: fadeIn 0.5s ease-out;
  }
  
  .contact-section #form-message.success {
    background-color: rgba(56, 176, 0, 0.1);
    color: var(--success-color);
    display: block;
    border-left: 4px solid var(--success-color);
  }
  
  .contact-section #form-message.error {
    background-color: rgba(208, 0, 0, 0.1);
    color: var(--error-color);
    display: block;
    border-left: 4px solid var(--error-color);
  }
  
  /* Mapa */
  .contact-section .contact-map {
    margin-top: 3.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 450px;
  }
  
  .contact-section .contact-map:hover {
    box-shadow: var(--box-shadow-hover);
  }
  
  .contact-section .contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1) saturate(0.9);
    transition: var(--transition);
  }
  
  .contact-section .contact-map:hover iframe {
    filter: grayscale(0%) contrast(1) saturate(1.2);
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .contact-section {
      padding: 4rem 0;
    }
  
    .contact-section .section-header h1 {
      font-size: 2.25rem;
    }
  }
  
  @media (max-width: 768px) {
    .contact-section .contact-container {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .contact-section .section-header {
      margin-bottom: 3rem;
    }
  
    .contact-section .section-header h1 {
      font-size: 2rem;
    }
  
    .contact-section .section-header p {
      font-size: 1rem;
    }
  
    .contact-section .info-box {
      padding: 1.25rem;
    }
  
    .contact-section .contact-form {
      padding: 2rem;
    }
  }
  
  @media (max-width: 576px) {
    .contact-section {
      padding: 3rem 0;
    }
  
    .contact-section .section-header h1 {
      font-size: 1.75rem;
    }
  
    .contact-section .info-box {
      flex-direction: column;
    }
  
    .contact-section .info-box .icon {
      margin-right: 0;
      margin-bottom: 1rem;
    }
  
    .contact-section .contact-form {
      padding: 1.5rem;
    }
  }
  
  /* Animaciones */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  