@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

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

/* HEADER */
header {
  background: #004743;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  width: 35vw;
  max-width: 180px;
  min-width: 110px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: rgb(208, 157, 115);
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover,
nav a.nav-active {
  border-bottom: 1px solid rgb(208, 157, 115);
}

.menu-toggle,
.menu-toggleX {
  display: none;
  font-size: 28px;
  color: rgb(208, 157, 115);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #004743;
    display: none;
    flex-direction: column;
    text-align: center;
  }
  .nav-links a { margin: 15px 0; font-size: 16px; }
  .menu-toggle { display: block; }
  .nav-links.active { margin-top: 30px; display: flex; }
  .menu-toggle.open { display: none; }
  .menu-toggleX.open { display: block; }
}

/* LABEL */
.tipos-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b07d50;
  background: #fdf0e6;
  border: 0.5px solid #d9a878;
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* SECCIÓN PRINCIPAL */
.tipos-seccion {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

/* HEADER */
.tipos-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tipos-header h2 {
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.tipos-header p {
  font-size: 14px;
  color: #888;
}

/* STATS */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 3rem;
}

.stat {
  background: #004743;
  border-radius: 10px;
  padding: 1.1rem;
  text-align: center;
}

.stat-num {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: #a8c9c7;
  margin-top: 5px;
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* CARD TIPO */
.tipo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #fff;
  border: 0.5px solid #d0d0d0;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .tipo-card { grid-template-columns: 1fr; }
}

/* Imagen / plano */
.tipo-imagen img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 100%;
  min-height: 300px;
}

.imagen-placeholder {
  width: 100%;
  min-height: 320px;
  background: #e6f0ef00;
  border-radius: 12px;
  border: 1.5px dashed #00474300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #00474300;
}

.imagen-placeholder i {
  font-size: 40px;
  opacity: 0.5;
}

.imagen-placeholder p {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}

.imagen-placeholder span {
  font-size: 12px;
  color: #888;
}

/* Detalles */
.tipo-badge {
  display: inline-block;
  background: #e6f0ef;
  color: #004743;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.tipo-detalles h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.tipo-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 22px;
}

.tipo-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tipo-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feat-icon {
  width: 36px;
  height: 36px;
  background: #e6f0ef;
  color: #004743;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.feat-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.feat-sub {
  font-size: 12px;
  color: #888;
}

/* PLANES */
.planes-seccion {
  margin-top: 1rem;
}

.planes-header {
  text-align: center;
  margin-bottom: 2rem;
}

.planes-header h2 {
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.planes-header p {
  font-size: 13px;
  color: #888;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}

.plan-card {
  background: #fff;
  border: 0.5px solid #d0d0d0;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.plan-card:hover {
  box-shadow: 0 6px 20px rgba(0, 71, 67, 0.1);
  transform: translateY(-3px);
}

.plan-destacado {
  border: 2px solid #004743;
}

.plan-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: #e6f0ef;
  color: #004743;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}

.plan-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}

.plan-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.plan-filas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 0.5px solid #eee;
  padding-top: 14px;
}

.plan-fila {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}

.plan-val {
  font-weight: 600;
  color: #004743;
}

.btn-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
  margin-top: auto;
}

.btn-plan:hover { background: #1dbb57; }

.btn-plan-outline {
  background: transparent;
  color: #004743;
  border: 1.5px solid #004743;
}

.btn-plan-outline:hover {
  background: #e6f0ef;
}

.planes-nota {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* FOOTER */
.footer-container {
  background-color: #004743;
  color: rgb(208, 157, 115);
  padding: 60px 10%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column { flex: 1; min-width: 200px; }

.footer-column .logo { width: 220px; margin-bottom: 20px; }

.footer-column h3 { font-size: 1rem; margin-bottom: 16px; color: #ccc; }

.footer-column p {
  color: #aaa;
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a,
.footer-column p a { color: #aaa; text-decoration: none; transition: color 0.3s; }
.footer-column ul li a:hover { color: #fff; }

.social-icons { display: flex; gap: 12px; margin-top: 16px; }

.social-icons .icon {
  width: 35px;
  height: 35px;
  background-color: rgb(208, 157, 115);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  transition: background 0.3s;
}

.social-icons .icon:hover { background-color: rgb(148, 112, 82); }