/* RosenWeb - sistema visual base */
:root {
  --rw-bg: #f4f2e8;
  --rw-surface: rgba(255, 255, 255, 0.72);
  --rw-surface-soft: rgba(255, 255, 255, 0.5);
  --rw-primary: #233155;
  --rw-accent: #2e5832;
  --rw-text: #1e1e1e;
  --rw-text-soft: #2a2a2a;
  --rw-border: rgba(46, 88, 50, 0.25);
  --rw-input-border: #cdcfc2;
  --rw-shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.03);
  --rw-shadow-accent: 0 20px 30px -10px rgba(46, 88, 50, 0.2);
  --rw-radius-pill: 999px;
  --rw-radius-card: 48px 16px 48px 16px;
  --rw-radius-soft: 32px;
  --rw-font: "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--rw-bg);
  color: var(--rw-text);
  font-family: var(--rw-font);
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.section-title {
  color: var(--rw-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.accent-color {
  color: var(--rw-accent);
}

.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

/* Header */
.navbar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 5%;
  background: rgba(244, 242, 232, 0.94);
  border-bottom: 2px solid var(--rw-border);
  backdrop-filter: blur(10px);
}

.logo-horizontal,
.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-horizontal img,
.site-logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.site-logo img {
  content: url("imagenes/RosenWeb Horizontal.png");
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--rw-primary);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--rw-accent);
  border-bottom-color: var(--rw-accent);
}

/* Botones */
.btn,
button,
input[type="submit"],
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.85rem 2.3rem;
  border: 2px solid var(--rw-primary);
  border-radius: var(--rw-radius-pill);
  background: var(--rw-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  font: 600 1.15rem/1.2 var(--rw-font);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.btn-submit:hover {
  background: var(--rw-accent);
  border-color: var(--rw-accent);
  box-shadow: 0 10px 22px rgba(46, 88, 50, 0.16);
  transform: translateY(-1px) scale(1.02);
}

.btn:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
.btn-submit:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(46, 88, 50, 0.18), 0 10px 22px rgba(46, 88, 50, 0.16);
}

.btn-secondary {
  background: rgba(35, 49, 85, 0.05);
  color: var(--rw-primary);
  border-color: var(--rw-accent);
}

.btn-secondary:hover {
  background: var(--rw-accent);
  color: var(--rw-bg);
  border-color: var(--rw-primary);
}

/* Formularios */
.contact-form,
.form-card {
  width: min(100%, 700px);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 2.8rem);
  background: var(--rw-surface-soft);
  border: 2px solid var(--rw-accent);
  border-radius: var(--rw-radius-card);
  box-shadow: var(--rw-shadow-accent);
  backdrop-filter: blur(4px);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--rw-primary);
  font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--rw-input-border);
  border-radius: var(--rw-radius-pill);
  background: var(--rw-bg);
  color: var(--rw-text);
  font: 400 1.05rem/1.3 var(--rw-font);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
  border-radius: 28px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"])::placeholder,
textarea::placeholder {
  color: rgba(30, 30, 30, 0.58);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
textarea:focus,
select:focus {
  border-color: var(--rw-accent);
  box-shadow: 0 0 0 4px rgba(46, 88, 50, 0.15);
}

/* Superficies reutilizables del diseno original */
.card,
.service-card,
.plan-card,
.example-card {
  background: var(--rw-surface);
  border: 1px solid var(--rw-border);
  border-radius: var(--rw-radius-soft);
  box-shadow: var(--rw-shadow-soft);
  backdrop-filter: blur(2px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.service-card:hover,
.plan-card:hover,
.example-card:hover {
  border-color: var(--rw-accent);
  box-shadow: 0 18px 30px rgba(46, 88, 50, 0.12);
  transform: translateY(-3px);
}

.organic-card,
.plan-card,
.contact-form,
.form-card {
  border-radius: var(--rw-radius-card);
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .navbar,
  .site-header {
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 3%;
  }

  .nav-links {
    justify-content: center;
    gap: 0.9rem 1.5rem;
  }

  .btn,
  button,
  input[type="submit"],
  .btn-submit {
    width: auto;
    max-width: 100%;
    font-size: 1.05rem;
    padding-inline: 1.7rem;
  }
}

@media (max-width: 480px) {
  .logo-horizontal img,
  .site-logo img {
    height: 40px;
  }

  .nav-links {
    gap: 0.55rem 1rem;
  }

  .nav-links a {
    min-height: 36px;
    font-size: 1rem;
  }

  .contact-form,
  .form-card {
    border-radius: 36px 12px 36px 12px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  textarea,
  select {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .nav-links {
    width: 100%;
    flex-direction: column;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    justify-content: center;
    width: 100%;
    padding: 0.45rem 0.8rem;
    border-radius: var(--rw-radius-pill);
    background: rgba(46, 88, 50, 0.05);
  }
}
