/* PRE-ESTILOS */
.web-content aside ul.nav-list a.nav-link li.nav-option,
.web-content aside ul.nav-list div.go-back-container {
    /* animation-delay: 1s; */
    animation: animateNavOptionsLeft .35s forwards;
}


/* DARK & LIGHT STYLES */
body.theme-light .contact-wrapper {
    color: #000;
    background-color: #fff;
}

body.theme-light .contact-title,
body.theme-light .contact-subtitle,
body.theme-light .contact-form label {
    color: #000;
}

body.theme-light .contact-form input,
body.theme-light .contact-form textarea {
    background-color: #fff;
    color: #000;
}

body.theme-light .contact-form input:focus,
body.theme-light .contact-form textarea:focus {
    border-color: rgb(0, 0, 0, .5);
    box-shadow: 0 0 60px -10px rgb(0, 0, 0, .5);
}

body.theme-light .submit-btn {
    background-color: #000;
    color: #fff;
}

body.theme-light .submit-btn:hover {
    filter: brightness(.9);
}

body.theme-light .contact-right h2,
body.theme-light .contact-right p {
    color: #000;
}

body.theme-light .contact-socials a {
    color: #000;
}

/* CONTACT CSS */
.contact-wrapper {
    transition: color 1s ease, background-color 1s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
    color: #fff;
    background-color: #000;
}

.contact-left, .contact-right {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
}
.contact-template__main-title{
  max-width: 720px;   /* o 700px, a juego con tus áreas */
  margin: 0 auto 30px;  /* centra horizontalmente */
  text-align: center;
  padding: 0 25px;    /* alinea con el padding de las tarjetas */
}

.contact-title {
    transition: color 1s ease;
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}

.contact-subtitle {
    text-align: center;
    transition: color 1s ease;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
}
.subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: color 1s ease;
  font-size: 16px;
  color: #ccc;
  margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    transition: color 1s ease;
    margin-bottom: 6px;
    font-size: 14px;
    color: #aaa;
}

.contact-form input,
.contact-form textarea {
    transition: background-color 1s ease, color 1s ease, border-color .3s ease;
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.contact-form textarea {
    text-wrap: wrap;
    flex-wrap: wrap;
}


.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transition: box-shadow .5s ease;
    border-color: #555;
}

.submit-btn {
    transition: background-color 1s ease, color 1s ease;
    background-color: #fff;
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #ccc;
}

.contact-right h2 {
    transition: color 1s ease;
    font-size: 25px;
    margin-bottom: 14px;
    color: #fff;
}

.contact-right p {
    transition: color 1s ease;
    margin: 10px 0;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

/*ICONOS SOCIALES*/
/* === ICONOS SOCIALES – versión 'chula' === */
/* 🔧 Que los iconos ocupen el 100% del ancho disponible */
.contact-socials {
  width: 100%;
  display: flex;
  flex-direction: column; /* texto arriba, iconos abajo */
  align-items: center;    /* centra horizontalmente */
  justify-content: center;
  text-align: center;     /* centra el texto dentro de los <p> */
  margin-bottom: 50px;
  margin-top: 50px;
}

.contact-socials .contact-cta-text {
  margin: 0;
  text-align: center; /* asegura centrado */
  line-height: 1.6;
}

.contact-socials .social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(16px, 3vw, 40px);
}


.contact-socials a{
  flex: 0 0 var(--size);                 /* evita estirarse */
  --size: 70px;
  --ring: rgba(255,255,255,.2);
  font-size: 25px;            /* ← sube el ICONO (1em en el svg) */
  height: var(--size);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform 2s ease, box-shadow 2s ease, background 2s ease;
  background: #0f0f10;
  box-shadow:
    0 0 0 1px var(--ring) inset,
    0 6px 16px rgba(0,0,0,.45);
}
/* por si tu FA no sigue 1em: fuerza tamaño del svg también */
.contact-socials a svg{
  width: 1em;
  height: 1em;
}

.contact-socials a i{
  font-size:200px;
  transform: translateY(0);
  transition: transform 2s ease, opacity 2s ease;
  opacity:.95;
}

/* Glow suave + elevación */
.contact-socials a:hover{
  box-shadow:
    0 0 0 1px #fff inset,
    0 10px 28px rgba(255,255,255,.08),
    0 0 30px rgba(255,255,255,.05);
}
.contact-socials a:hover i{
  opacity:1;
}

/* Tooltip con aria-label */
.contact-socials a::after{
  content: attr(aria-label);
  position:absolute;
  bottom:-10px;
  left:50%;
  transform: translate(-50%, 8px);
  padding:6px 10px;
  font: 600 12px/1 "Inter",system-ui,sans-serif;
  color:#000;
  background:#fff;
  border-radius:8px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  box-shadow:0 6px 20px rgba(0,0,0,.35);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact-socials a:hover::after{
  opacity:1;
}
/* === EFECTO GRADUAL DE COLORES DE MARCA (2 s reales) === */
.contact-socials a {
  position: relative;
  overflow: visible; /* 👈 deja salir el tooltip */
  background: #0f0f10;
  border-radius: 999px;
  z-index: 0;
  transition: border-color 0.6s ease; /* suaviza el borde */
}

/* Capa animada del fondo */
.contact-socials a::before {
  content: "";
  position: absolute;
  inset: 1px; /* 👈 deja 1px de borde visible */
  border-radius: inherit;
  background: transparent;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: -1;
}

/* === Gradientes y colores oficiales === */
.contact-socials a[aria-label="Instagram"]::before {
  background: radial-gradient(circle at 30% 30%,
    #405DE6 0%,
    #833AB4 25%,
    #C13584 45%,
    #FD1D1D 70%,
    #FCB045 100%);
}

.contact-socials a[aria-label="TikTok"]::before {
  background: linear-gradient(135deg, #69C9D0 0%, #000 55%, #EE1D52 100%);
}

.contact-socials a[aria-label="LinkedIn"]::before {
  background: #0a66c2;
}

.contact-socials a[aria-label="GitHub"]::before {
  background: #171515;
}

/* === Animación al hover === */
.contact-socials a:hover::before {
  opacity: 1;
}

.contact-socials a:hover {
  border: 2px solid #fff; 
}

/* Icono por encima del fondo */
.contact-socials a i {
  position: relative;
  z-index: 1;
}

/* Tooltip */
.contact-socials a::after {
  z-index: 2;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translate(-50%, 100%);
  padding: 6px 10px;
  font: 600 12px/1 "Inter", system-ui, sans-serif;
  color: #000;
  background: #fff;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-socials a:hover::after {
  opacity: 1;
  transform: translate(-50%, 90%);
}
/* === MODO CLARO — ICONOS SOCIALES === */
body.theme-light .contact-socials {
  color: #000;
}

body.theme-light .contact-socials .contact-cta-text,
body.theme-light .contact-socials .contact-cta-text strong {
  color: #000;
}


body.theme-light .social-icons a {
  --ring: rgba(0,0,0,.15);
  color: #000;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--ring) inset,
    0 6px 16px rgba(0,0,0,.12);
  transition: transform 2s ease, box-shadow 2s ease, background 2s ease, border-color .6s ease;
}

/* Icono */
body.theme-light .social-icons a i {
  color: #000;
  opacity: .9;
}

/* Hover con borde negro */
body.theme-light .social-icons a:hover {
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px #000 inset,
    0 10px 28px rgba(0,0,0,.15),
    0 0 30px rgba(0,0,0,.08);
}

/* Tooltip (inverso: texto blanco, fondo negro) */
body.theme-light .social-icons a::after {
  color: #fff;
  background: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* Gradientes adaptados */
body.theme-light .social-icons a[aria-label="Instagram"]::before {
  background: radial-gradient(circle at 30% 30%,
    #405DE6 0%,
    #833AB4 25%,
    #C13584 45%,
    #FD1D1D 70%,
    #FCB045 100%);
}

body.theme-light .social-icons a[aria-label="TikTok"]::before {
background: linear-gradient(135deg,
  #69C9D0 0%,
  #69C9D0 25%,
  #7A7A7A 45%,
  #EE1D52 75%,
  #EE1D52 100%);
}

body.theme-light .social-icons a[aria-label="LinkedIn"]::before {
  background: #0a66c2;
}

body.theme-light .social-icons a[aria-label="GitHub"]::before {
  background: #fff;
}

/* Al hover, activa el gradiente */
body.theme-light .social-icons a:hover::before {
  opacity: 1;
}



/* Preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce){
  .contact-socials a,
  .contact-socials a i,
  .contact-socials a::after{
    transition: none;
  }
}

/* Responsive: botones un poco más pequeños en móvil */
@media (max-width: 520px){
  .contact-socials{ gap:14px; }
  .contact-socials a{ --size: 54px; }
  .contact-socials a i{ font-size:24px; }
}

/*Mesnaje enlace a solicitar usuario*/
.contact-cta-panel {
  margin-top: 5px;
  background: transparent;
  border: none;
  padding: 5px 0;
  color: #fff;
  text-align: center;
  width: 100%;
}

.contact-cta-text:first-of-type {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.contact-cta-text:last-of-type {
  font-size: 1rem;
  font-weight: 400;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-cta-text strong {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.alta-aside-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 80%;                  /* Ocupa el 80% */
  margin: 10px 10%;               /* 10% a cada lado */
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  padding: 16px 0;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.alta-aside-btn:hover {
  background: #fff;
  color: #000;
}

.alta-aside-btn i {
  font-size: 1.1rem;
}

/* 🌞 MODO CLARO — Mensaje enlace a solicitar usuario */
body.theme-light .contact-cta-panel {
  background: transparent;
  border: none;
  color: #000;
}

body.theme-light .contact-cta-text:first-of-type {
  color: #000;
}

body.theme-light .contact-cta-text:last-of-type {
  color: #333;
}

body.theme-light .contact-cta-text strong {
  color: #000;
  text-decoration: underline;
}

/* Botón */
body.theme-light .alta-aside-btn {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

body.theme-light .alta-aside-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}


/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .contact-cta-text:first-of-type {
    font-size: 1.25rem;
  }

  .contact-cta-text:last-of-type {
    font-size: 1rem;
  }

  .alta-aside-btn {
    width: 100%;      /* En móvil, ocupa todo el ancho */
    margin: 0;
    font-size: 0.9rem;
    padding: 14px 0;
  }
}



.required-style {
    transition: border-color 0.7s ease;
    outline: none;
    animation: changeBgColorFormError 1s ease forwards;
    animation-delay: .3s;
}

@keyframes changeBgColorFormError {
    to {
        border-color: #dc2626;
    }
}


p.error {
    color: #dc2626 !important;
    font-size: 0.875rem;
    margin-top: 0.4rem;

    opacity: 0;
    transform: translateY(20px);

    animation: displayFormErrorTop 0.5s ease forwards;
    animation-delay: .3s;
}

.custom-success {
    background-color: #28a745;
    color: #e6f4ea;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 0 15px 2px rgba(40, 167, 69, 0.7);
    opacity: 0;
    animation: fadeInSuccess 0.5s forwards;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1rem;
    user-select: none;
    cursor: default;
}

.required-star {
    font-weight: 100;
    font-size: 1rem;
    color: #ff4d4d;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.texto-informativo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 25px;
    font-size: 14px;
    color: #ccc;
    font-style: italic;
    user-select: none;
}

body.theme-light .texto-informativo {
    color: #000;
}

.texto-informativo i {
    color: #888;
    font-size: 16px;
}

.texto-informativo .required-star {
    color: #ff4d4d;
    font-weight: 300;  /* estrella más delgada */
    font-size: 1rem;
    line-height: 1;
}

/* ==== BOTÓN GLOBAL ==== */
.copy_template_btn_container {
  text-align: center;
  margin-top: 12px;
}
.copy_template_btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.copy_template_btn:hover {
  background: #fff200;
}

/* ==== NOTIFICACIÓN ==== */
.copy-notification {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #000;
  color: #8fff8f;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 0 25px rgba(255,255,255,0.05);
}
.copy-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==== ÁREA CON CABECERA INTERNA ==== */
.contact-template__area--with-header {
  background: #000;
  border: 1px solid #fff;
  border-radius: 12px;
  color: #e6e6e6;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.97rem;
  line-height: 1.6;
  transition: background 0.3s ease, border-color 0.3s ease;
  margin-bottom: 25px;
  overflow: hidden;
  padding: 0 24px 0 24px; /* 👈 elimina el espacio arriba */
}

.contact-template__area--with-header:hover {
  background: #0a0a0a;
}
body.theme-light .contact-template__area--with-header {
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  color: #000;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.97rem;
  line-height: 1.6;
  transition: background 0.3s ease, border-color 0.3s ease;
  margin-bottom: 25px;
  overflow: hidden;
  padding: 0 24px 0 24px;
}

body.theme-light .contact-template__area--with-header:hover {
  background: #f5f5f5; /* tono gris muy suave para hover */
  border-color: #000;
}

.label-text {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
body.theme-light .label-text {
  font-size: 1rem;
  font-weight: 600;
  color: #000; /* texto oscuro para fondo claro */
}

/* ==== TEXTO ==== */
.contact-text {
  padding: 14px 5px;
  white-space: pre-line;
}

/* ==== CABECERA INTERNA ==== */
.area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6); /* línea más suave */
  padding: 8px 5px;
  background: #000;
}
.contact-template__area--with-header:hover .area-header {
  background: #0a0a0a; /* mismo color que el hover general */
}

body.theme-light .area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.6); /* línea más suave en negro */
  padding: 8px 5px;
  background: #fff; /* fondo blanco */
}

body.theme-light .contact-template__area--with-header:hover .area-header {
  background: #f5f5f5; /* tono gris suave para hover */
}

/* ==== BOTÓN COPIAR ==== */
.copy-btn-top {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 1s ease;
}
.copy-btn-top:hover {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

body.theme-light .copy-btn-top {
  background: transparent;
  border: 1px solid #000;
  color: #000;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 1s ease;
}

body.theme-light .copy-btn-top:hover {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}


/* ==== MOBILE ==== */
@media screen and (max-width: 768px) {
  .contact-template__area {
    font-size: 0.95rem;
    padding: 16px;
  }

  .contact-template__header h3 {
    font-size: 1.05rem;
  }
}


@media screen and (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        padding: 20px;
    }
}
