/* =========================================
   Elefante — Hoja de estilos
   Paleta: carbón, marfil, bronce y acentos visuales
   ========================================= */

:root {
  --carbon: #1c1b19;
  --carbon-soft: #282623;
  --ivory: #f8f6f0;
  --ivory-dim: #ece7dd;
  --white: #ffffff;
  --bronze: #a3814f;
  --bronze-light: #c4a472;
  --bronze-dark: #7c6038;
  --text-body: #3d3a35;
  --text-muted: #74706a;
  --border-line: #e2dbc2;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Arial, sans-serif;

  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

/* Red de seguridad: si algún elemento se desborda por error,
   esto evita que arrastre a toda la página a un scroll horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--ivory);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--carbon);
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--bronze);
}

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

ul {
  list-style: none;
}

section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* =========================================
   Header / Navegación
   ========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(28, 27, 25, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bronze-dark);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
  text-transform: uppercase;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bronze);
  flex-shrink: 0;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--ivory-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: var(--bronze-light);
  border-bottom-color: var(--bronze-light);
}

/* --- Botón hamburguesa (checkbox hack, sin JS) --- */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ivory);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menú responsivo: por debajo de 860px pasa a menú desplegable */
@media (max-width: 860px) {

  nav {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: flex;
  }

  nav ul {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  nav ul li {
    border-top: 1px solid rgba(163, 129, 79, 0.25);
  }

  nav ul li a {
    display: block;
    padding: 1rem 0.25rem;
  }

  .nav-toggle:checked ~ ul {
    max-height: 480px;
  }

  /* Animación de hamburguesa a X */
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* =========================================
   Inicio (Hero con Placeholder de Fondo)
   ========================================= */

#inicio {
  position: relative;
  background-color: var(--carbon);
  background-image: linear-gradient(rgba(28, 27, 25, 0.82), rgba(28, 27, 25, 0.82)), 
                    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ivory);
  text-align: center;
  padding: 9rem 2rem 8rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 750px;
}

.tagline {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 1rem;
}

#inicio h1 {
  color: var(--ivory);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

#inicio p {
  color: var(--ivory-dim);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--bronze);
  color: var(--white);
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--bronze-dark);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.4rem;
  }
}

/* =========================================
   Planes
   ========================================= */

#planes {
  background-color: var(--ivory);
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 2rem;
  align-items: stretch;
}

.plan {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Destacado Plan Integral */
.plan-destacado {
  border: 2px solid var(--bronze);
  box-shadow: var(--shadow-soft);
}

.badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background-color: var(--bronze);
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

.plan-header {
  border-bottom: 1px solid var(--ivory-dim);
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
}

.plan h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.plan .precio {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--bronze-dark);
  font-weight: 600;
}

.plan .precio span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 42px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
}

.feature-group {
  background-color: var(--ivory);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--bronze);
}

.feature-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--carbon);
  margin-bottom: 0.25rem;
}

.feature-group p {
  font-size: 0.88rem;
  color: var(--text-body);
}

/* =========
   Contacto
   ========= */

#contacto {
  background-color: var(--carbon-soft);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

#contacto h2 {
  color: var(--ivory);
  text-align: center;
}

#contacto h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contacto-intro {
  text-align: center;
  color: var(--ivory-dim);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

.contacto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1.5rem;
}

.contacto-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(163, 129, 79, 0.3);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contacto-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--bronze);
  transform: translateY(-4px);
}

.contacto-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background-color: var(--bronze);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-card h3 {
  color: var(--ivory);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.contacto-dato {
  color: var(--bronze-light);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contacto-dato:hover {
  color: var(--ivory);
}

/* =========================================
   Misión / Visión
   ========================================= */

.mision-vision-bg {
  position: relative;
  background-image: linear-gradient(rgba(28, 27, 25, 0.85), rgba(28, 27, 25, 0.85)), 
                    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ivory);
  padding: 6rem 2rem;
  border-top: 4px solid var(--bronze);
}

.mision-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.mv-card {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(163, 129, 79, 0.2);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.mv-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.mv-card h2 {
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.mv-card h2::after {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bronze-light);
}

.mv-card p {
  color: var(--ivory-dim);
  font-size: 1.1rem;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 900px) {
  .mision-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================
   Objetivos
   ========================================= */

#objetivos {
  background-color: var(--ivory);
  border-top: 1px solid var(--border-line);
}

#objetivos h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

#objetivos h2::after {
  left: 50%;
  transform: translateX(-50%);
}

#objetivos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

#objetivos ul li {
  padding: 1.5rem;
  background-color: var(--white);
  border-left: 4px solid var(--bronze);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-body);
  box-shadow: var(--shadow-soft);
}

/* =========================================
   Valores (Tarjetas con Acabado Superior)
   ========================================= */

#valores {
  background-color: var(--white);
  border-top: 3px double var(--border-line);
}

#valores h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

#valores h2::after {
  left: 50%;
  transform: translateX(-50%);
}

#valores ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

#valores ul li {
  padding: 1.75rem 1.5rem;
  background-color: var(--ivory);
  border-top: 4px solid var(--bronze-dark);
  border-left: none;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#valores ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

#valores ul li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--carbon);
  margin-bottom: 0.4rem;
}