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

/* =========================================
   MODO OSCURO DEFAULT
========================================= */

body {
  background: #1d1d1b;
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f4ef;
}

/* MENÚ BLANCO EN OSCURO */

.site-header {
  background: #f4f4ef;
}

.logo,
.main-nav a,
.theme-toggle {
  color: #1d1d1b;
}

.burger span {
  background: #1d1d1b;
}

/* =========================================
   LAYOUT
========================================= */

.subscribe-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
  padding: 70px 75px;
}

.left-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h1 {
  font-size: 120px;
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -4px;
  transform: translateX(40px);
}

.texts {
  margin-left: 45px;
  margin-bottom: 110px;
}

.texts p {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 42px;
}

.form-content {
  display: flex;
  align-items: center;
}

form {
  width: 100%;
  max-width: 900px;
}

/* =========================================
   INPUTS
========================================= */

input[type="text"],
input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 2px solid #f4f4ef;
  background: transparent;

  font-size: 40px;
  color: #f4f4ef;

  padding: 18px 0;
  margin-bottom: 44px;

  outline: none;
  text-transform: none;
}

input::placeholder {
  color: #9d9d9d;
  opacity: 1;
}

/* =========================================
   PRIVACY
========================================= */

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #9d9d9d;
  font-size: 13px;
  font-weight: 700;

  margin-top: -22px;
  margin-bottom: 48px;
}

.privacy input {
  width: 22px;
  height: 22px;
  appearance: none;
  border: 2px solid #f4f4ef;
  background: transparent;
  cursor: pointer;
}

.privacy input:checked {
  background: #f4f4ef;
  box-shadow: inset 0 0 0 4px #1d1d1b;
}

/* =========================================
   FLECHA
========================================= */

.flecha-pequena {
  width: 43px;
  display: inline-block;
}

/* =========================================
   BOTÓN
========================================= */

.send-button {
  background: none;
  border: none;

  font-size: 70px;
  line-height: 1;

  cursor: pointer;
  color: #f4f4ef;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

.send-button:hover {
  transform: translate(6px, -6px);
  opacity: 0.7;
}

/* =========================================
   SUCCESS MESSAGE
========================================= */

.success-message {
  display: none;
  margin-top: 34px;

  font-size: 22px;
  color: #f4f4ef;
}

.success-message.visible {
  display: block;
}

/* =========================================
   LINKS PRIVACY
========================================= */

.privacy span {
  transition: color 0.3s ease;
}

.privacy:hover span {
  color: #f0d229;
}

.privacy a:hover {
  color: #f0d229;
}

/* =========================================
   MODO CLARO
========================================= */

body.light-mode {
  background: #e9eaec;
  color: #1c1c1c;
}

/* MENÚ NEGRO EN CLARO */

body.light-mode .site-header {
  background: #1d1d1b;
}

body.light-mode .logo,
body.light-mode .main-nav a,
body.light-mode .theme-toggle {
  color: #f4f4ef;
}

body.light-mode .burger span {
  background: #f4f4ef;
}

/* INPUTS EN CLARO */

body.light-mode input[type="text"],
body.light-mode input[type="email"] {
  color: #1c1c1c;
  border-bottom-color: #1c1c1c;
}

body.light-mode input::placeholder {
  color: #858585;
}

/* PRIVACY EN CLARO */

body.light-mode .privacy {
  color: #858585;
}

body.light-mode .privacy input {
  border-color: #858585;
}

body.light-mode .privacy input:checked {
  background: #1c1c1c;
  box-shadow: inset 0 0 0 4px #e9eaec;
}

/* BOTÓN EN CLARO */

body.light-mode .send-button,
body.light-mode .success-message {
  color: #1c1c1c;
}

/* SVG NEGROS EN CLARO */

body.light-mode .flecha-pequena {
  filter: brightness(0);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .subscribe-page {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 60px;
  }

  h1 {
    font-size: 78px;
    transform: translateX(0);
  }

  .texts {
    margin: 50px 0 0;
  }

  input[type="text"],
  input[type="email"] {
    font-size: 38px;
  }
}

body.light-mode {
  background: #e9eaec !important;
  color: #1c1c1c !important;
}

body.light-mode .subscribe-page {
  background: #e9eaec !important;
  color: #1c1c1c !important;
}

body.light-mode input[type="text"],
body.light-mode input[type="email"] {
  color: #1c1c1c !important;
  border-bottom-color: #1c1c1c !important;
}

body.light-mode .send-button,
body.light-mode .success-message {
  color: #1c1c1c !important;
}

/* BOTÓN CLARO / OSCURO */

.theme-toggle::before {
  transition: transform 0.3s ease;
}

body.light-mode .theme-toggle::before {
  transform: translateX(22px);
}

/* FLECHA DEL BOTÓN EN CADA MODO */

/* Modo oscuro: flecha blanca */
.flecha-pequena {
  filter: brightness(0) invert(1);
}

/* Modo claro: flecha negra */
body.light-mode .flecha-pequena {
  filter: brightness(0);
}