/* ========================================
   IAT Salud y Tecnología - Estilos Base
   ======================================== */

/* Variables de color - Paleta IAT */
:root {
  --color-primary: #3F70B0;
  --color-secondary: #6B7EB6;
  --color-text: #3C4990;
  --color-gradient-start: #2564A8;
  --color-gradient-end: #7B8CC2;
  --color-bg-paper: #F0E9E3;
  --color-bg-paper-alt: #EEE6E1;
  --color-white: #ffffff;
  --color-border: #C9D4EA;
  --color-tag-bg: #E6ECF6;
  --color-icon: #5B5CE8;
  --color-icon-bg: linear-gradient(135deg, #7750F5, #A18BFF);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 8px 22px rgba(60, 73, 144, 0.25);
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg-paper);
  color: var(--color-text);
  line-height: 1.6;
}

/* Tipografía */
.text-primary {
  color: var(--color-primary);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align:center;  
}

.btn:hover {
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

.btn-mt {
  margin-top: 1rem;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.card-highlight {
  background: var(--color-bg-paper-alt);
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-text {
  font-size: 0.875rem;
  opacity: 0.85;
}

.card-text-lg {
  opacity: 0.85;
}

.card-summary {
  font-weight: 600;
  cursor: pointer;
}

.card-details {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Tag */
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background: var(--color-tag-bg);
  color: var(--color-primary);
  display: inline-block;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  height: 2.5rem;
  width: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--color-gradient-start);
}

.brand-icon-img {
  height: 1.5rem;
  width: 1.5rem;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  line-height: 1.25;
}

.brand-subtitle {
  font-size: 1rem;
  line-height: 1.25;
  opacity: 0.8;
}

.header-nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}


@media (max-width: 440px) {
  .header .btn {
	display: none;
  }
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  margin-top: 1rem;
  font-size: 1.125rem;
  opacity: 0.85;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Info Card */
.info-card {
  max-width: 28rem;
  border-radius: 1rem;
  padding: 1.65rem;
  background: var(--color-white);
}

.info-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-card-icon {
  height: 2.5rem;
  width: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--color-icon-bg);
}

.info-card-icon .icon {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--color-white);
}

.info-card-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1.25;
}

.info-card-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: -0.125rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-link {
  text-decoration: none;
  color: inherit;
}

.info-link:hover {
  text-decoration: underline;
}

.info-icon {
  margin-top: 0.125rem;
  color: var(--color-icon);
}

.info-icon .icon {
  height: 1.25rem;
  width: 1.25rem;
}

/* Section */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.section-description {
  margin-bottom: 1rem;
  opacity: 0.85;
}

/* Grid */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Map */
.map-iframe {
  width: 100%;
  height: 18rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.8rem;
  line-height: 1.25;
  opacity: 0.8;
}

/* Social */
.social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 9999px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  width: 54px;
  height: 54px;
}

.social-btn:hover {
  background: var(--color-bg-paper);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.social-btn img {
  width: 35px;
  height: 35px;
  display: block;
}

/* Icon General */
.icon {
  display: block;
}