:root {
  --color-primary: #c4a35a;
  --color-secondary: #4a5f7f;
  --color-accent: #d4af6a;
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #5a5a5a;
  --color-border: #e5e5e5;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

button,
a,
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: 3rem;
  font-weight: 400;
}

h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

section {
  padding: 80px 20px;
}

section[id] {
  scroll-margin-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(196, 163, 90, 0.3);
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(196, 163, 90, 0.4);
  background-color: #b8973e;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(196, 163, 90, 0.3);
  }
  50% {
    box-shadow: 0 4px 32px rgba(196, 163, 90, 0.5);
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  transition: color 0.3s ease;
}

header.scrolled .logo {
  color: var(--color-secondary);
}

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

.nav-links a {
  color: white;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle .material-icons {
  font-size: 28px;
  color: white;
  transition: color 0.3s ease;
}

header.scrolled .menu-toggle .material-icons {
  color: var(--color-text);
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1555854877-bab0e564b8d5?w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1555854877-bab0e564b8d5?w=1200&q=80");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: 10%;
  left: 5%;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
  animation-duration: 6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 163, 90, 0.2),
    transparent
  );
  margin: 0 auto;
}

.valores {
  background-color: #f8f9fa;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.valor-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  border: 2px solid transparent;
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.valor-card .material-icons {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.valor-card h3 {
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.valor-card p {
  color: var(--color-text-light);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.historia {
  background: radial-gradient(
    circle at 70% 30%,
    rgba(196, 163, 90, 0.03),
    transparent 60%
  );
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.historia-text h2 {
  color: var(--color-secondary);
}

.historia-text p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.historia-text ul {
  list-style: none;
  margin-top: 32px;
}

.historia-text li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.historia-text li .material-icons {
  color: var(--color-primary);
  font-size: 24px;
}

.historia-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.historia-image:hover {
  transform: scale(1.03);
}

.servicios {
  background-color: white;
  position: relative;
}

.servicios h2 {
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.servicios-intro {
  text-align: center;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 48px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.servicio-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.servicio-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.servicio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.servicio-card:hover .servicio-card-image img {
  transform: scale(1.05);
}

.servicio-card-content {
  padding: 24px;
}

.servicio-card h3 {
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.servicio-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.servicio-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.05;
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}

.servicio-shape-1 {
  width: 250px;
  height: 250px;
  background: var(--color-primary);
  top: 10%;
  right: 5%;
}

.galeria {
  background: linear-gradient(
    135deg,
    rgba(196, 163, 90, 0.05),
    rgba(74, 95, 127, 0.05)
  );
}

.galeria h2 {
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 48px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.galeria-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  aspect-ratio: 4 / 3;
}

.galeria-item:hover {
  transform: scale(1.08);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonios {
  background-color: white;
}

.testimonios h2 {
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 48px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonio-card {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.testimonio-comillas {
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
  font-family: "DM Serif Display", serif;
}

.testimonio-texto {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonio-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonio-rating .material-icons {
  font-size: 20px;
  color: #ffc107;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonio-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonio-info h4 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.testimonio-info p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.contacto {
  background-color: #f8f9fa;
}

.contacto h2 {
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.contacto-intro {
  text-align: center;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 48px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.contacto-form {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-mensaje {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: none;
}

.form-mensaje.exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contacto-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-icon .material-icons,
.contacto-icon .fab {
  color: white;
  font-size: 24px;
}

.contacto-detalle h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.contacto-detalle p,
.contacto-detalle a {
  color: var(--color-text-light);
  font-size: 1rem;
}

.contacto-detalle a {
  transition: color 0.3s ease;
}

.contacto-detalle a:hover {
  color: var(--color-primary);
}

.mapa {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-top: 48px;
}

footer {
  background-color: var(--color-secondary);
  color: white;
  padding: 64px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 2;
}

.footer-col a {
  display: block;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-social .fab {
  font-size: 18px;
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .fab {
  color: white;
  font-size: 32px;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 80px 32px 32px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-toggle {
    display: block;
  }

  nav {
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .historia-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  section {
    padding: 64px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
