/* --- ESTILOS GENERALES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  line-height: 1.6;
  background: #fafafa;
  color: #333;
}

/* --- HEADER --- */
header {
  background: linear-gradient(90deg, #6a11cb, #ff4b6e);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header .logo {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- SECCIONES GENERALES --- */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #6a11cb;
}

/* --- INICIO --- */
.inicio-img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: #444;
}

/* --- ACCESOS DIRECTOS (INICIO) --- */
.access-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.access-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 300px;
  transition: transform 0.3s;
}

.access-card:hover {
  transform: translateY(-5px);
}

.access-card h2 {
  margin-bottom: 15px;
  font-size: 1.5em;
}

.access-card p {
  margin-bottom: 15px;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(90deg, #6a11cb, #ff4b6e);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.8;
}

/* --- NOSOTROS --- */
.nosotros-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.nosotros-card {
  background: white;
  padding: 20px;
  width: 280px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.nosotros-card:hover {
  transform: scale(1.05);
}

.nosotros-card h3 {
  margin-bottom: 10px;
  color: #ff4b6e;
}

/* --- IFRAME (IgualdApp y Estudio) --- */
.iframe-app {
  width: 90%;
  height: 500px;
  border: none;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* --- CONTACTO --- */
#contacto p {
  margin: 10px 0;
  font-size: 1.1em;
}

#contacto a {
  color: #6a11cb;
  text-decoration: none;
  font-weight: bold;
}

#contacto a:hover {
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  background: #222;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
}
/* Mostrar/Ocultar secciones como pestañas */
.section {
  display: none;
}
.section.active {
  display: block;
}