/* =========================
   CONTENEDOR GENERAL
========================= */
.correo-container {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff, #f0f2f5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   TITULO
========================= */
.correo-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 60px;
  text-align: center;
  background: linear-gradient(135deg, #cc0000, #990000);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =========================
   GRID
========================= */
.correo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

/* =========================
   CARD
========================= */
.correo-card {
  background: white;
  border-radius: 18px;
  padding: 45px 35px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;

  /* animación inicial */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

/* borde animado */
.correo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, #cc0000, #ff6666);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s ease;
}

.correo-card:hover::before {
  transform: scaleX(1);
}

.correo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(204, 0, 0, 0.15);
}

/* =========================
   ICONO
========================= */
.correo-icon {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc0000, #ff6666);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;

  transition: 0.4s ease;
}

/* SVG dentro */
.correo-icon svg,
.correo-icon img {
  width: 45px;
  height: 45px;
  fill: white;
}

/* hover animado */
.correo-card:hover .correo-icon {
  transform: scale(1.1) rotate(8deg);
}

/* =========================
   TEXTO
========================= */
.correo-info h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* =========================
   BOTONES
========================= */
.correo-btn,
.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: linear-gradient(135deg, #cc0000, #990000);
  color: white;
  padding: 14px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;

  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(204, 0, 0, 0.25);
}

.correo-btn:hover,
.form-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(204, 0, 0, 0.35);
}

/* iconos en botones */
.correo-btn svg,
.form-btn svg {
  width: 18px;
  height: 18px;
}

/* =========================
   EMAIL
========================= */
.email-address {
  margin-top: 10px;
  font-weight: 700;
  color: #cc0000;
}

/* =========================
   FORMULARIO
========================= */
.correo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 14px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  background: #f9f9f9;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #cc0000;
  background: white;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
  outline: none;
}

/* =========================
   MENSAJES
========================= */
.form-message {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
}

/* =========================
   ANIMACIONES
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .correo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .correo-title {
    font-size: 1.8rem;
  }

  .correo-card {
    padding: 30px 20px;
  }

  .correo-icon {
    width: 70px;
    height: 70px;
  }

  .correo-icon svg {
    width: 40px;
    height: 40px;
  }
}
