/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1e1e1e;
  color: #e0e0e0;
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* Navigation */
header {
  padding: 1.5em 0; /* More padding to center it vertically */
  text-align: center;
  background-color: #1e1e1e; /* Background color of the header */
  position: relative;
}

nav {
  display: inline-flex;
  gap: 20px; /* Space between each menu item */
}


/* Individual Links */
nav a {
  font-size: 1.1em;
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px; /* Space between icon and text */
  padding: 5px 10px;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15); /* Background on hover */
  color: #ffffff;
}

/* Centered Main Content */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Space between sections */
  margin-top: 20px;
  text-align: left;
  font-size: 1.125rem;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* First Row: Profile Picture on Left, Name and Title on Right */
.profile-top {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
  min-height: 140px;
}

/* Set image size */
.profile-image {
  display: flex;
  align-items: center;
}

.profile-image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}

.profile-name-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
}

.profile-name-title h1 {
  font-size: 2em;
  margin: 0;
  color: white;
  line-height: 1.2;
}

.profile-name-title h2 {
  font-size: 1.1em;
  color: #9e9e9e;
  margin: 0;
  line-height: 1.2;
}

.profile-description {
  max-width: 600px;
  margin-top: 10px;
}

.profile-description p {
  line-height: 1.9rem;
  margin-bottom: 20px;
}

.profile-description p:last-child {
  margin-bottom: 0;
}

/* Social Links Styling */
.social-links {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  padding-top: 25px;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  color: #9e9e9e;  /* Default gray color */
  opacity: 0.7;
  transition: color 0.3s, opacity 0.3s;
}

.social-links a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-links a:hover {
  color: #ffffff;
  opacity: 1;
}


/* Estilo general del contenedor de suscripciones */
.community-subscription {
  text-align: center;
  margin-top: 25px;
  padding-bottom: 50px;
}

.community-subscription h3 {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

/* Newsletter Section (Primary CTA) */
.newsletter-section {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.newsletter-container {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.newsletter-container h4 {
  font-size: 1.4em;
  margin-bottom: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.inline-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.newsletter-description {
  color: #c2c2c2;
  font-size: 0.95em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.iframe-wrapper {
  border-radius: 8px;
  padding: 15px;
}

.iframe-wrapper iframe {
  border-radius: 6px;
}

/* Secondary CTA - WhatsApp */
.secondary-cta {
  display: flex;
  justify-content: center;
}

.whatsapp-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 20px 25px;
  max-width: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
  flex-shrink: 0;
}

.whatsapp-icon svg {
  width: 50px;
  height: 50px;
  fill: #25D366;
}

.whatsapp-content {
  flex-grow: 1;
  text-align: left;
}

.whatsapp-content h5 {
  font-size: 1.1em;
  margin: 0 0 5px 0;
  color: #ffffff;
}

.whatsapp-content p {
  font-size: 0.85em;
  margin: 0;
  color: #c2c2c2;
  line-height: 1.4;
}

.whatsapp-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background-color: #25D366;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.whatsapp-btn:hover {
  background-color: #1da851;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .newsletter-container {
    padding: 20px;
  }

  .whatsapp-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .whatsapp-content {
    text-align: center;
  }

  .whatsapp-btn {
    width: 100%;
  }
}

strong {
  font-weight: bold;
  font-size: 1.05em;
  color: #f0f0f0;
}

p a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
}

p a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #e63946;
  transition: width 0.3s ease;
}

p a:hover::after {
  width: 100%; /* La línea se extiende al ancho completo del texto al hacer hover */
}

/* Sección de Enlaces */
.links-section {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.links-section h2 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Lista de Enlaces */
.links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-item a {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  min-height: 80px;
}

.link-item a:hover {
  background-color: #333333;
  transform: scale(1.02);
}

/* Icono del enlace */
.link-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border-radius: 5px;
}

.links-list .link-item a {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Keeps icon on the left */
  padding: 10px 20px;
  text-decoration: none;
  color: inherit;
}

.links-list .link-item a .link-text {
  flex: 1; /* Takes up remaining space, allowing centering */
  text-align: center; /* Centers text within its own space */
}

.links-list {
  max-width: 600px; /* Adjust based on your preference */
  margin: 0 auto;   /* Centers the list container */
}

/* Contact */

.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.contact-page h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.intro-text {
  font-size: 1rem;
  color: #c2c2c2;
  margin-bottom: 30px;
  line-height: 1.6;
}

.additional-contact {
  margin-top: 40px;
}

.additional-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.additional-contact p {
  color: #c2c2c2;
  margin-bottom: 20px;
}

/* .social-links a img {
  width: 36px;
  height: 36px;
  transition: opacity 0.3s;
}

.social-links a img:hover {
  opacity: 0.7;
} */

/* MOBILE */
@media (max-width: 768px) {
  .profile-top {
      align-items: center;
      gap: 15px;
  }

  .profile-top .profile-image img {
    width: 112px;
    height: 112px;
  }

  .profile-name-title h1 {
    font-size: 1.8em; /* Reduce ligeramente */
  }
  .profile-name-title h2 {
      font-size: 0.9em;
  }

  .social-links {
    padding-top: 15px;
  }

  .community-subscription h3 {
    font-size: 1.4em;
  }

  .social-links a svg {
    width: 18px; /* Ajusta según el tamaño necesario */
    height: 18px;
  }

  body {
    padding: 15px;
  }

  .subscription-cards {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .subscription-card {
      width: 100%;
      /* max-width: 350px; */
  }
}