* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(180deg, #fdf7e3 0%, #f5f0d4 40%, #e1f0c4 100%);
  color: #2f3b1c;
}

.page {
  width: 100%;
  max-width: 1100px;
  margin: 16px;
  border-radius: 24px;
  background: #ffffffd9;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* Lado izquierdo: info principal */
.left {
  padding: 32px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #e3e3e3;
  background: linear-gradient(135deg, #fefaf1 0%, #fdf7e3 40%, #fbe7b0 100%);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-circle {
  width: 56px;
  height: 74px;

  /* Forma de huevo más natural */
  border-radius: 50% 50% 48% 48% / 62% 62% 38% 38%;

  /* Color más NARANJADO campesino */
  background:
    radial-gradient(
      circle at 30% 25%,
      #fff0cc 0%,
      #f5c97a 40%,
      #e09a2f 70%,
      #b87410 100%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 4px
    );

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  font-size: 22px;
  color: #4a2600;

  border: 2px solid #e6a648;

  /* Sombra más cálida y rústica */
  box-shadow:
    0 6px 10px rgba(110, 60, 0, 0.45),
    inset -2px -3px 5px rgba(120, 60, 0, 0.25),
    inset 2px 2px 4px rgba(255, 220, 160, 0.45);

  position: relative;
}

/* Manchita natural más oscura */
.logo-circle::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: rgba(140, 75, 10, 0.35);
}

.brand-text span {
  display: block;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #3f2a09;
}

.brand-sub {
  font-weight: 500;
  font-size: 13px;
  color: #6b5a33;
}

.hero-title {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #3b4220;
}

.hero-title span {
  color: #d88900;
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 14px;
  max-width: 420px;
  color: #5b6344;
}

.welcome-tag {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f8e6;
  font-size: 12px;
  color: #4d5b2b;
  border: 1px solid #dae7bf;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58b947;
  box-shadow: 0 0 0 4px rgba(88, 185, 71, 0.15);
}

.cta-area {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.cta-text {
  font-size: 13px;
  color: #4a532e;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-main,
.btn-secondary {
  flex: 1 1 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
  text-decoration: none;
}

.btn-main {
  background: linear-gradient(135deg, #f4a41e, #ffcc4d);
  color: #3c2a07;
  box-shadow: 0 8px 16px rgba(216, 140, 35, 0.35);
}

.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(216, 140, 35, 0.45);
  background: linear-gradient(135deg, #ffb733, #ffdd6e);
}

.btn-secondary {
  background: #f2f7ea;
  color: #384120;
  border: 1px solid #d4e0c4;
  box-shadow: 0 4px 10px rgba(132, 152, 93, 0.15);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: #e2eed1;
}

.btn-icon {
  font-size: 16px;
}

.footer-left {
  margin-top: 28px;
  font-size: 11px;
  color: #888d67;
}

/* Lado derecho: ilustración / ambiente de granja */
.right {
  position: relative;
  padding: 24px;
  background: radial-gradient(circle at 10% 0%, #fff7cf 0, transparent 50%),
    radial-gradient(circle at 90% 100%, #e5f7c9 0, transparent 55%),
    linear-gradient(180deg, #d7f3b7 0%, #bfe19c 40%, #96c477 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.sky {
  position: relative;
  flex: 1;
}

.sun {
  position: absolute;
  top: 16px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7b2, #ffce3b);
  box-shadow: 0 0 30px rgba(255, 222, 96, 0.9);
}

.cloud {
  position: absolute;
  background: #ffffffd9;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cloud.one {
  top: 26px;
  left: 28px;
  width: 72px;
  height: 32px;
}

.cloud.two {
  top: 64px;
  right: 110px;
  width: 90px;
  height: 36px;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 32px;
  height: 32px;
  left: 12px;
  top: -16px;
}

.cloud::after {
  width: 40px;
  height: 40px;
  right: 4px;
  top: -18px;
}

.field {
  position: relative;
  margin-top: 80px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(180deg, #e7f5c8 0%, #c4e297 55%, #87b458 100%);
  box-shadow: inset 0 6px 14px rgba(90, 122, 57, 0.3);
  overflow: hidden;
  padding: 18px 18px 12px;
}

.fence-row {
  position: absolute;
  bottom: 54px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 12px;
  pointer-events: none;
}

.post {
  width: 10px;
  height: 54px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f2cf98 0%, #d79b4c 100%);
  box-shadow: 0 4px 6px rgba(115, 76, 25, 0.4);
  position: relative;
}

.post::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -18px;
  right: -18px;
  height: 4px;
  border-radius: 999px;
  background: #f4d39e;
  box-shadow: 0 14px 0 #f4d39e;
}

.coop {
  position: absolute;
  bottom: 14px;
  left: 30px;
  width: 130px;
  height: 90px;
  background: linear-gradient(180deg, #f9f1de 0%, #f1ddbc 100%);
  border-radius: 10px;
  box-shadow: 0 8px 12px rgba(104, 74, 21, 0.55);
}

.coop-roof {
  position: absolute;
  top: -28px;
  left: -16px;
  right: -16px;
  height: 32px;
  background: linear-gradient(135deg, #d86f2a, #f2973a);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: 0 8px 12px rgba(104, 55, 12, 0.45);
}

.coop-door {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 52px;
  border-radius: 6px;
  background: linear-gradient(180deg, #7c4b1e, #4f2f12);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}

.coop-window {
  position: absolute;
  top: 36px;
  left: 18px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #2f3a3b;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.4);
}

.coop-eggs {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 4px;
}

.egg {
  width: 18px;
  height: 24px;
  background: radial-gradient(circle at 30% 20%, #fff7e1, #f7e3ad);
  border-radius: 50% 50% 46% 46%;
  box-shadow: 0 4px 4px rgba(94, 65, 19, 0.4);
}

.chicken {
  position: absolute;
  bottom: 16px;
  left: 190px;
  width: 62px;
  height: 50px;
  display: flex;
  align-items: flex-end;
}

.chicken-body {
  width: 56px;
  height: 42px;
  border-radius: 60% 60% 50% 50%;
  background: #fff9f2;
  box-shadow: 0 6px 10px rgba(68, 57, 40, 0.35);
  position: relative;
}

.chicken-tail {
  position: absolute;
  right: -16px;
  top: 4px;
  width: 22px;
  height: 26px;
  background: linear-gradient(135deg, #ffffff, #f2dfc9);
  border-radius: 0 70% 0 70%;
  transform: rotate(20deg);
}

.chicken-head {
  position: absolute;
  left: -16px;
  top: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fffaf3;
  box-shadow: 0 4px 6px rgba(54, 43, 28, 0.45);
}

.chicken-comb {
  position: absolute;
  top: -10px;
  left: 4px;
  display: flex;
  gap: 2px;
}

.comb-part {
  width: 7px;
  height: 10px;
  border-radius: 50% 50% 0 0;
  background: #e04632;
}

.chicken-beak {
  position: absolute;
  right: -6px;
  top: 8px;
  width: 10px;
  height: 8px;
  background: #f2b13c;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.chicken-eye {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a2520;
}

.chicken-legs {
  position: absolute;
  bottom: -10px;
  left: 10px;
  display: flex;
  gap: 10px;
}

.leg {
  width: 3px;
  height: 12px;
  background: #f3b74e;
  border-radius: 999px;
  position: relative;
}

.leg::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -4px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #f3b74e;
}

.grass-front {
  position: absolute;
  bottom: -6px;
  left: -12px;
  right: -12px;
  height: 40px;
  background: radial-gradient(circle at 50% 0, #98c86a, #5c8834);
  filter: blur(0.2px);
}

.badge {
  margin-top: 8px;
  align-self: flex-end;
  background: #ffffffdd;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  color: #465326;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(71, 92, 46, 0.35);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4a41e;
}

.bottom-bar {
  margin-top: 12px;
  font-size: 11px;
  color: #27321b;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bottom-bar strong {
  font-weight: 700;
}

.bottom-hint {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-hint-icon {
  font-size: 13px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eaf7e2;
  color: #2f5f1f;
  border: 1px solid #cfe9c4;
  margin-top: 12px;
  margin-bottom: 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Estados */
.status-dot.active {
  background: #3bb54a;
  box-shadow: 0 0 0 4px rgba(59, 181, 74, 0.2);
}

.status-dot.warning {
  background: #f0a020;
  box-shadow: 0 0 0 4px rgba(240, 160, 32, 0.25);
}

.status-dot.offline {
  background: #d13a2f;
  box-shadow: 0 0 0 4px rgba(209, 58, 47, 0.25);
}

/* Responsivo */
@media (max-width: 850px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
  }

  .left {
    border-right: none;
    border-bottom: 1px solid #e3e3e3;
  }
}

@media (max-width: 600px) {
  .left {
    padding: 22px 18px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .field {
    margin-top: 54px;
    height: 160px;
  }
}
