/* CONTACTO */
.contacto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contacto .centrado {
  max-width: 1200px;
  margin: 0 auto;
}

.centrado .contacto-contenido {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
}

.contacto-contenido .misdatos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 52rem;
  z-index: var(--z-normal); /* Variable */
}

.contact-card {
  border: 0.2rem solid var(--accent-gold);
  border-radius: 50px;
  padding: 2.4rem 2.2rem;
  background: var(--surface-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    outline-color 0.25s ease;
}

.contact-card:hover {
  outline: 2px solid var(--accent-gold);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16), 0 0 20px var(--accent-glow);
  transform: translateY(-4px);
}

.nombre h3 {
  text-align: center;
  z-index: var(--z-normal);
}

.misdatos .contenidodatos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-normal);
}

.contenidodatos .centradotexto {
  align-items: start;
}

.centradotexto .iconotexto {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.iconotexto {
  font-weight: 500;
}

.iconotexto h4 {
  font-size: 2.2rem;
}

.iconotexto i {
  font-size: 3.5rem;
  margin-right: 1rem;
}

.iconotexto .correo {
  margin-top: 0.5rem;
}

.contenidodatos .textdatos {
  width: 100%;
  height: 15rem;
  resize: none;
}

.contenidodatos .inputdatos {
  width: 100%;
  height: 5rem;
}

#formulario {
  width: 100%;
}

.contenidodatos .inputdatos,
.contenidodatos .textdatos {
  background-color: #fff;
  color: #000;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 500;
  border-radius: 50px;
  outline: none;
  border: none;
  z-index: var(--z-normal);
}

.contenidodatos .inputdatos:hover,
.contenidodatos .textdatos:hover {
  outline: 3px solid #fff;
}

.contenidodatos .inputdatos:focus,
.contenidodatos .textdatos:focus {
  outline: 3px solid var(--contraste);
  z-index: var(--z-normal);
}

.contenidodatos .botondatos {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--button-bg);
  border: 0.2rem solid var(--button-border);
  color: var(--button-text);
  z-index: var(--z-normal);
  transition: 0.5s;
  width: 100%;
  height: 6rem;
  padding: 1rem 2rem;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 5rem;
  border-radius: 50px;
  cursor: pointer; /* Accesibilidad */
}

.contenidodatos .botondatos:hover {
  background: transparent;
  color: var(--button-hover-text);
}

.contenidodatos .botondatos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--button-hover-fill);
  z-index: var(--z-fondo);
  transition: 0.5s;
}

.contenidodatos .botondatos:hover::before {
  width: 100%;
}

footer {
  padding: 2rem 0;
  align-items: center;
  text-align: center;
  background: var(--footer-bg);
  color: var(--footer-text);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.16);
}

footer h2 {
  font-size: 2.5rem;
  margin: 1rem;
  color: var(--footer-text);
}

footer h3 {
  font-size: 1.7rem;
  font-weight: 500;
  margin: 1rem;
  color: rgba(15, 23, 42, 0.78);
}

/* Estilo para el botón Copiar */
.copy-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 15rem;
  height: 100%;
  background-color: var(--button-bg);
  border: 0.2rem solid var(--button-border);
  border-radius: 50px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--button-text);
  z-index: var(--z-normal);
  overflow: hidden;
  transition: 0.5s;
  cursor: pointer;
  margin-left: 1rem;
}

.copy-btn:hover {
  background: transparent;
  color: var(--button-hover-text);
}

.copy-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--button-hover-fill);
  z-index: var(--z-fondo);
  transition: 0.5s;
}

.copy-btn:hover::before {
  width: 100%;
}

.mas {
  position: relative;
  z-index: var(--z-normal);
}

.mas a:hover {
  color: var(--contraste);
}

/* Estilos del Popup de Correo Copiado */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal); /* Usando variable (2000) */
}

.popup-content {
  background-color: rgba(212, 166, 58, 0.95);
  border: 1px solid var(--accent-gold);
  padding: 20px;
  text-align: center;
  width: 300px;
  max-width: 80%;
  box-shadow: 0 0 20px rgba(212, 166, 58, 0.45);
  border-radius: 10px;
  max-height: 80vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
  color: var(--button-text);
}

.popup-info {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 50px;
  line-height: 1;
  cursor: pointer; /* Accesibilidad */
  color: #ff0000;
  padding: 4px;
  border: none;
  background: none;
  transition: transform 0.3s;
}

.close:hover {
  transform: scale(1.2);
  color: #ffcccc;
}

@media (prefers-reduced-motion: reduce) {
  .contact-card {
    transition: none;
  }
}
