/* contacto.css — Estilos propios de la página de Contacto (formulario, info de contacto, redes) */

/* ======= FONDO CON IMAGEN ======= */
    .contacto-bg {
      background: 
        linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)),
        url('IMAGEN/IMAGENFONDOCONTACTO.jpg') no-repeat center center/cover;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 100px 20px 80px;
      position: relative;
    }

    /* Efecto de partículas en el fondo */
    .contacto-bg::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
      pointer-events: none;
    }

    /* ======= CONTENEDOR PRINCIPAL ======= */
    .contacto-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      width: 100%;
      max-width: 1100px;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
      padding: 40px;
      position: relative;
      z-index: 1;
      border: 1px solid rgba(255,255,255,0.2);
    }

    /* ======= FORMULARIO ======= */
    form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    h2 {
      color: #003366;
      margin-bottom: 10px;
      font-size: 1.8em;
      text-align: center;
    }

    label {
      font-weight: 600;
      color: #003366;
      display: block;
      margin-bottom: 5px;
    }

    input, textarea, select {
      width: 100%;
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1em;
      resize: none;
      font-family: 'Open Sans', sans-serif;
      transition: all 0.3s ease;
      background: rgba(255,255,255,0.9);
    }

    input:focus, textarea:focus, select:focus {
      outline: none;
      border-color: #003366;
      box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
      background: white;
    }

    button {
      background: #003366;
      color: #fff;
      padding: 15px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1.1em;
      font-weight: 600;
      transition: all 0.3s ease;
      margin-top: 10px;
      position: relative;
      overflow: hidden;
    }

    button:hover {
      background: #0055aa;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    }

    button:disabled {
      background: #cccccc;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Efecto de onda al hacer clic */
    button::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255,255,255,0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    button:active::after {
      width: 300px;
      height: 300px;
    }

    /* Mensajes de estado */
    .mensaje-estado {
      padding: 15px;
      border-radius: 8px;
      margin-top: 15px;
      text-align: center;
      font-weight: 500;
      display: none;
      animation: fadeIn 0.5s ease;
    }

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

    .mensaje-exito {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }

    .mensaje-error {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }

    .mensaje-cargando {
      background: #d1ecf1;
      color: #0c5460;
      border: 1px solid #bee5eb;
    }

    /* ======= INFO DE CONTACTO ======= */
    .info {
      background: linear-gradient(135deg, #003366 0%, #0055aa 100%);
      color: #fff;
      border-radius: 15px;
      padding: 30px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .info::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -50%;
      width: 100%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
      transform: rotate(45deg);
      animation: shine 3s infinite;
    }

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

    .info h3 {
      margin-bottom: 20px;
      font-size: 1.6em;
      color: #fff;
      text-align: center;
      position: relative;
      z-index: 1;
    }

    .info p {
      margin-bottom: 15px;
      font-size: 1em;
      line-height: 1.5;
      position: relative;
      z-index: 1;
    }

    .info strong {
      color: #00aaff;
    }

    /* Iconos decorativos */
    .info p::before {
      content: '';
      display: inline-block;
      width: 20px;
      height: 20px;
      margin-right: 10px;
      vertical-align: middle;
    }

    .info p:nth-child(2)::before { content: '📍'; }
    .info p:nth-child(3)::before { content: '📞'; }
    .info p:nth-child(4)::before { content: '✉️'; }
    .info p:nth-child(5)::before { content: '🕒'; }
    .info p:nth-child(6)::before { content: '💡'; }

    /* ======= SECCIÓN REDES SOCIALES ======= */
    .redes-sociales {
      margin-top: 25px;
      padding-top: 25px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      position: relative;
      z-index: 1;
    }

    .redes-sociales h4 {
      color: #fff;
      text-align: center;
      margin-bottom: 20px;
      font-size: 1.2em;
    }

    .redes-container {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 15px;
    }

    .red-social {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: #fff;
      transition: all 0.3s ease;
      width: 80px;
      padding: 12px 5px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
    }

    .red-social:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-5px);
    }

    .red-social-icono {
      font-size: 24px;
      margin-bottom: 8px;
      display: block;
    }

    .red-social-nombre {
      font-size: 0.85em;
      font-weight: 500;
      text-align: center;
    }

    /* Colores específicos para cada red social */
    .whatsapp .red-social-icono { color: #25D366; }
    .facebook .red-social-icono { color: #1877F2; }
    .instagram .red-social-icono { 
      background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .linkedin .red-social-icono { color: #0077B5; }

    /* ======= RESPONSIVE ======= */
    @media (max-width: 900px) {
      .contacto-container {
        grid-template-columns: 1fr;
      }

      .info {
        order: -1;
        text-align: center;
      }
      
      .redes-container {
        gap: 12px;
      }
      
      .red-social {
        width: 75px;
      }
    }

    @media (max-width: 768px) {
      /* Menú móvil */
      .menu-toggle {
        display: block;
      }

      nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.3s ease;
      }

      nav ul.show {
        left: 0;
      }

      nav ul li {
        margin: 20px 0;
      }

      nav ul li a {
        font-size: 1.2em;
      }

      header.scrolled ul {
        background: rgba(255, 255, 255, 0.95);
      }

      header.scrolled ul li a {
        color: #333;
      }

      .menu-toggle {
        position: absolute;
        left: 25px;
      }

      .logo {
        margin-left: 40px;
      }

      /* Contacto responsive */
      .contacto-bg {
        padding: 100px 15px 60px;
      }
      
      .contacto-container {
        padding: 25px;
        gap: 20px;
      }
      
      h2 {
        font-size: 1.6em;
      }
      
      .info h3 {
        font-size: 1.4em;
      }
      
      .info p {
        font-size: 0.9em;
      }
      
      .red-social {
        width: 70px;
        padding: 10px 5px;
      }
      
      .red-social-icono {
        font-size: 22px;
      }
      
      .red-social-nombre {
        font-size: 0.8em;
      }
      
      input, textarea, select {
        padding: 10px;
      }
      
      button {
        padding: 12px;
        font-size: 1em;
      }
    }

    @media (max-width: 480px) {
      .contacto-container {
        padding: 20px 15px;
      }
      
      h2 {
        font-size: 1.4em;
      }
      
      .info h3 {
        font-size: 1.3em;
      }
      
      .info {
        padding: 20px;
      }
      
      .redes-container {
        gap: 10px;
      }
      
      .red-social {
        width: 65px;
        padding: 8px 3px;
      }
      
      .red-social-icono {
        font-size: 20px;
        margin-bottom: 6px;
      }
      
      .red-social-nombre {
        font-size: 0.75em;
      }
      
      .mensaje-estado {
        padding: 12px;
        font-size: 0.9em;
      }
    }
    
    @media (max-width: 360px) {
      .redes-container {
        gap: 8px;
      }
      
      .red-social {
        width: 60px;
      }
    }
