
* 

{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Reset básico */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}


/* ====== Header ====== */
header {
  background: #0077b6;
  color: #fff;
  padding: 1rem 0;
}

header h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-top: 0.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
  background-color: #fff;
  color: #0077b6;
}


/* ====== Secciones ====== */
.seccion {
  padding: 4rem 1.5rem;
}
.seccion h2 {
  text-align: center;
  color: #0077b6;
  margin-bottom: 1rem;
}
.seccion p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ====== Botón ====== */
.btn {
  display: inline-block;
  background: #0096c7;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #023e8a;
}

/* ====== Tablas ====== */
.tablas-container {
  margin-top: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
table th, table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
table th {
  background: #0077b6;
  color: #fff;
}

/* ====== Formularios ====== */
form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 1.5rem;
}
form div {
  margin-bottom: 1rem;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
input:focus {
  border-color: #0077b6;
  outline: none;
}

/* ====== Footer ====== */
footer {
  background: #023e8a;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}
footer small {
  font-size: 0.9rem;
}

/* ====== Imágenes y tarjetas para información ====== */
.informacion-tarjeta {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.informacion-tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.informacion-tarjeta h3 {
  color: #0077b6;
  margin-bottom: 0.5rem;
}
.informacion-tarjeta p {
  font-size: 0.95rem;
  color: #555;
}

/* ====== Tablas responsive ====== */
@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  table thead {
    display: none;
  }
  table tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
  }
  table td {
    padding: 0.6rem;
    text-align: right;
    position: relative;
  }
  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #0077b6;
  }
}

/* ====== Carrusel simple para sección Inicio ====== */

/* Carrusel Mejorado */
.carrusel {
  display: flex;
  overflow-x: auto; /* scroll horizontal */
  scroll-behavior: smooth; /* desplazamiento suave */
  gap: 1rem;
  padding: 1rem 0;
}

.carrusel::-webkit-scrollbar {
  height: 8px;
}
.carrusel::-webkit-scrollbar-thumb {
  background: #0077b6;
  border-radius: 4px;
}

.carrusel-item {
  flex: 0 0 250px; /* ancho fijo por item */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.carrusel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carrusel-item img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.carrusel-item h4 {
  color: #0077b6;
  margin-bottom: 0.3rem;
}

.carrusel-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .carrusel-item {
    flex: 0 0 70%; /* ocupa más espacio en móvil */
  }
}
.contacto-info p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

#formContacto div {
  margin-bottom: 1rem;
}

#formContacto input,
#formContacto textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#formContacto input:focus,
#formContacto textarea:focus {
  border-color: #0077b6;
  outline: none;
}


