:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F5F3;
  --text: #0A0A0A;
  --text-muted: #6C6C6C;
  --accent: #BFA882;
  --accent-dark: #A8916C;
  --border: #E2DED9;
  --surface: #FFFFFF;
  --max-w: 1160px;
  --r: 3px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --text: #F0EDE8;
  --text-muted: #888888;
  --accent: #BFA882;
  --accent-dark: #A8916C;
  --border: #2A2826;
  --surface: #161412;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.site-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.hero {
  margin-top: var(--nav-h);
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-image: url('/media/trabajo');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  color: #FFFFFF;
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 300;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  border-radius: var(--r);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.hero-cta:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--text);
}

.brands {
  padding: 96px 0;
  background: var(--bg-alt);
  transition: background 0.3s;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.brand-card-link {
  display: block;
}

.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.3s;
  height: 100%;
}

.brand-card-link:hover .brand-card {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 8px;
}

.brand-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s;
}

.brand-card-link:hover .brand-link::after {
  transform: translateX(4px);
}

.gallery {
  padding: 96px 0;
  background: var(--bg);
  transition: background 0.3s;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0A0A0A;
}

.carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0A0A;
  height: 540px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: all;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.4);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
}

.carousel-btn:hover {
  background: rgba(10, 10, 10, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

.carousel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.carousel-counter {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.contact {
  padding: 96px 0;
  background: var(--bg-alt);
  transition: background 0.3s;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact-email {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--accent);
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.3s, color 0.3s;
  resize: vertical;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 130px;
}

.form-submit {
  align-self: flex-start;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover:not(:disabled) {
  background: var(--accent);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-message.success {
  background: #EDF7ED;
  color: #276127;
  border: 1px solid #B8DDB8;
}

.form-message.error {
  background: #FDF0F0;
  color: #8B2020;
  border: 1px solid #E8B8B8;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0625rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 12px;
  }

  .hero {
    min-height: 50vh;
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .carousel-slide {
    height: 300px;
  }

  .brands {
    padding: 60px 0;
  }

  .gallery {
    padding: 60px 0;
  }

  .contact {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 45vh;
  }

  .hero-content h1 {
    font-size: 1.875rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-cta {
    padding: 10px 22px;
    font-size: 0.75rem;
  }

  .contact-grid {
    gap: 28px;
  }

  .form-submit {
    width: 100%;
    text-align: center;
  }

  .carousel-slide {
    height: 240px;
  }
}
