/* style.css */
:root {
  --bg-dark: #0d1427;
  --bg-light: #f5f3f0;
  --text-white: #ffffff;
  --text-muted: #666666;
  --text-dark: #333333;
  --accent-gold: #b89a7c;
  --border-light: #e0d8ce;
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Open Sans', sans-serif;
  --nav-height: 74px;
  --container: 1200px;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --background: var(--bg-dark);
  --text: var(--text-white);
  --nav-bg: rgba(13, 20, 39, 0.96);
  --card-bg: rgba(255, 255, 255, 0.05);
  --highlight-bg: var(--accent-gold);
  --menu-bg: var(--bg-dark);
  --footer-bg: var(--bg-dark);
  --social-bg: var(--bg-light);
  --brand-text: var(--text-white);
  --link-text: var(--text-white);
}

[data-theme="light"] {
  --background: var(--bg-light);
  --text: var(--text-dark);
  --nav-bg: var(--bg-light);
  --card-bg: #fff;
  --highlight-bg: #fff;
  --menu-bg: var(--bg-light);
  --footer-bg: var(--bg-light);
  --social-bg: var(--bg-light);
  --brand-text: var(--text-dark);
  --link-text: var(--text-dark);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a, a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-gold);
}

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  height: 50px;
}

.brand span {
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  color: var(--brand-text);
  font-size: 1.05rem;
  white-space: nowrap;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
}

.menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--link-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--accent-gold);
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  margin-left: 15px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .menu {
    display: none;
    flex-direction: column;
    background: var(--menu-bg);
    width: 100%;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    padding: 20px;
    gap: 20px;
  }
  .menu.active {
    display: flex;
  }
}

/* HEADER */
header {
  margin-top: var(--nav-height);
  background: url("style/images/alvanci3.webp") center/cover no-repeat;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

header h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-title);
  font-size: 3.5rem;
  color: var(--accent-gold);
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

/* SECTION LIGHT */
section.light {
  background: var(--bg-light);
  padding: 60px 0;
  color: var(--text-dark);
}

section.light h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

section.light p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.step-card {
  text-align: left;
  padding: 20px;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-card i {
  font-size: 50px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CONTACT FORM */
.contact-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  background: var(--text-white);
  color: var(--bg-dark);
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

/* FOOTER */
footer {
  background: var(--footer-bg);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  text-align: center;
}

footer h3 {
  color: var(--accent-gold);
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

footer p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

footer .logo {
  width: 120px;
  margin: 20px auto;
}

footer .social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

footer .social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--social-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
  transition: var(--transition);
}

footer .social a:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  margin-top: 30px;
  color: var(--text);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--accent-gold);
}

/* WHATSAPP DROPDOWN */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-toggle {
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-toggle:hover {
  transform: scale(1.1);
}

.whatsapp-dropdown {
  display: none;
  margin-top: 10px;
  gap: 8px;
  flex-direction: column;
}

.whatsapp-option {
  background: #25d366;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.whatsapp-option:hover {
  transform: translateX(-4px);
}

.whatsapp-dropdown.active {
  display: flex;
}

/* NEW STYLES FOR CONTENT */
.content-section {
  padding: 60px 0;
  color: var(--text);
}

.content-section h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 30px;
  text-align: center;
}

.content-section h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin: 40px 0 20px;
}

.content-section p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-section ul, .content-section ol {
  margin-left: 20px;
  margin-bottom: 30px;
}

.content-section li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.region-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.region-card h4 {
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-family: var(--font-title);
}

.highlight {
  background: var(--highlight-bg);
  color: var(--bg-dark);
  padding: 40px;
  border-radius: var(--radius);
  margin: 40px 0;
  text-align: center;
}

.highlight h3 {
  color: var(--bg-dark);
  margin-bottom: 20px;
}

.highlight p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-consultation {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--accent-gold);
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: var(--transition);
}

.btn-consultation:hover {
  background: var(--text-white);
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  header {
    height: 300px;
  }
  header h1 {
    font-size: 2.8rem;
  }
  .steps-grid {
    gap: 30px;
  }
  footer .container {
    grid-template-columns: 1fr;
  }
  .content-section h2 {
    font-size: 2rem;
  }
  .content-section h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  header {
    height: 250px;
  }
  header h1 {
    font-size: 2.2rem;
  }
  section.light h2 {
    font-size: 1.8rem;
  }
  .step-card h3 {
    font-size: 1.1rem;
  }
  .btn-submit {
    padding: 10px 20px;
  }
  .content-section {
    padding: 40px 0;
  }
  .region-grid {
    grid-template-columns: 1fr;
  }
}
/* Accesibilidad: enlaces en el footer */
.footer-bottom a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 600;
}
/* Texto solo visible para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}