/* ==== ESTILOS GLOBALES ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f2f9ff;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #004aad;
  background-image: url("PORTADACONTACTOSDELIHEALTHS-ESTAFETA.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header img {
  width: 200px;
}

header h1 {
  font-size: 2rem;
  font-weight: bold;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ==== NOTIFICACIÓN ==== */
#notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-left: 5px solid #e53935;
  padding: 16px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.6s ease-out;
  z-index: 100;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#notification h3 {
  color: #c62828;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

#notification p {
  font-size: 0.9rem;
  color: #444;
}

#notification button {
  border: none;
  background: transparent;
  color: #555;
  font-weight: bold;
  float: right;
  cursor: pointer;
}

/* ==== SECCIÓN DE INSTRUCCIONES ==== */
section {
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-size: 1.5rem;
  color: #082d50;
  margin-bottom: 1rem;
}

section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

section li {
  margin-bottom: 0.5rem;
}

section li:first-child {
  color: #c62828;
  font-weight: bold;
}

/* ==== GRID DE CONTACTOS ==== */
main {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.area {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: center;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.15);
}

.card h2 {
  display: flex;
  height: 60px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
  align-items: center;
}

.card p {
  margin-bottom: 6px;
}

.card a {
  color: inherit;
  text-decoration: none;
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  padding: 10px;
  margin-top: 10px;
  transition: background 0.3s;
}

.whatsapp:hover {
  background: #20b558;
}

.whatsapp img {
  width: 24px;
  height: 24px;
}

/* ==== PESTAÑA LATERAL ==== */
.tab-container {
    width: 210px;
    height: 10px;
    position: absolute;
    top: 120px;
    right: -80px;
    margin: 0;
    padding: 0;
    transform: rotate(-0.25turn);
    display: inline-block;
    font-weight: 600;
}

.tab {
  height: 30px;
  color: white;
  font-weight: 600;
  background-color: #082d50;
  text-align: center;
  border-radius: 15px 15px 0 0;
}

.tab ul {
  display: none;
  font-size: 0.7rem;
  text-align: left;
  padding: 0 30px;
}

.tab-container:hover {
  transform: none;
  width: 200px;
  position: absolute;
  top: 10px;
  right: 0px;
  margin: 0px;
  padding: 0px;
  display: inline-block;
  font-weight: 600;
}

.tab-container:hover .tab {
  border-radius: 15px 0 0 0;
}

.tab-container:hover .tab ul {
  padding-top: 10px;
  background-color: #082d50;
  width: 200px;
  display: block;
  height: 180px;
  font-weight: 600;
  border-radius: 0 0 0 15px;

}

/* ==== FOOTER ==== */
footer {
  background: #082d50;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.hand-inside {
    position: absolute;
    top: 15px;        /* Ajustable */
    right: -20px;     /* Ajustable */
    width: 20px;
    height: 20px;
    opacity: 0.85;
    animation: bounce 1.2s infinite ease-in-out; /* Opcional */
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
