/* Variables base Figma */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #030213;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #ececf0;
  --secondary-foreground: #030213;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #111111;
  --destructive-foreground: #ffffff;
  --radius: 0.625rem;
  --shadow-light: rgba(0,0,0,0.08);
  --shadow-medium: rgba(0,0,0,0.15);
  --grey:  rgba(122, 122, 122, 0.15);
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid transparent;
  outline: none;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-size);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header y navegación */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--background);
  box-shadow: 0 4px 10px var(--shadow-light);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo a {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--destructive);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.nav-links li a:hover {
  color: var(--destructive);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Secciones */
.section {
  padding: 140px 20px 80px;
  text-align: center;
}

.hero {
  height: 100vh; /* Ocupa toda la pantalla */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff; /* Texto blanco sobre la imagen */
  position: relative;

  /* Imagen de fondo */
  background-image: url(img/salon\ muebles\ madera.jpg);
  background-size: cover;      /* Ajusta la imagen al contenedor */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat;

}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Sombra oscura sobre la imagen */
  z-index: 1;
}

.hero h1, .hero p, .hero .btn {
  position: relative;
  z-index: 2; /* Para que el texto esté encima del overlay */
}
/*

.hero {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 180px 20px 120px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}
*/
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--grey);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-family: ui-sans-serif, system-ui, sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.btn:hover {
  background: var(--destructive);
  color: var(--destructive-foreground);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

/* En móviles, el botón ocupa todo el ancho */
@media (max-width: 768px) {
  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* Sobre Nosotros */
/* Sección Sobre Nosotros — MÁS ANCHA */
#sobre {
  padding: 100px 20px;
  background-color: var(--background); /* blanco */
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr)); /* columnas más anchas */
  gap: 50px; /* más espacio entre columnas */
  max-width: 1200px; /* ancho igual que la grilla de servicios */
  margin: 0 auto;
}

.sobre-item {
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  padding: 10px 15px;
}

/* Icono dentro del círculo */
.icon-circle {
  width: 70px;
  height: 70px;
  background-color: #f4f4f4; /* gris MUY claro */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  color: #2b2b2b; /* Icono gris oscuro */
}

.icon-circle svg {
  width: 32px;
  height: 32px;
}

.sobre-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.sobre-item p {
  font-size: 1rem;
  color: var(--secondary-foreground);
  line-height: 1.5;
  max-width: 350px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .sobre-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sobre-grid {
    grid-template-columns: 1fr;
  }
}

/* Sección 2 columnas */
.dos-columnas {
  background-color: #f0f0f0; /* Gris claro */
  padding: 80px 20px;
}

.dos-columnas-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.dos-columnas .texto {
  flex: 1;
}

.dos-columnas .texto h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.dos-columnas .texto p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--secondary-foreground);
}

.dos-columnas .imagen {
  flex: 1;
}

.dos-columnas .imagen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 768px) {
  .dos-columnas-container {
    flex-direction: column;
  }

  .dos-columnas .imagen {
    margin-top: 20px;
  }
}

.personalizado {
  padding: 50px 20px;
  text-align: center;
  background-color: var(--grey);
}

.personalizado h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.personalizado p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Reutiliza el mismo estilo de botón responsive 
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid #a56b2a;
  color: #a56b2a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
  width: fit-content;
  max-width: 100%;
}

.personalizado .btn:hover {
  background: #a56b2a;
  color: #fff;
}

@media (max-width: 768px) {
  .personalizado .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}*/



/* Grilla de servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

/* Grilla de servicios compacta */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr)); /* MÁS COMPACTA */
  gap: 20px;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Cada tarjeta */
.servicio {
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

/* Contenedor imagen — MÁS PEQUEÑO */
.servicio-img {
  overflow: hidden;
  border-radius: var(--radius);
  height: 160px; /* ↓ reduce altura */
}

.servicio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* asegura que recorte bien */
  transition: transform 0.35s ease;
}

/* Hover zoom */
.servicio-img:hover img {
  transform: scale(1.06);
}

/* Títulos */
.servicio h3 {
  margin-top: 0.5rem;
  font-size: 1rem; /* ↓ más pequeño */
  font-weight: 600;
  color: var(--foreground);
}

/* RESPONSIVE — tablets */
@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .servicio-img {
    height: 140px;
  }
  .servicio h3 {
    font-size: 0.95rem;
  }
}

/* RESPONSIVE — móviles */
@media (max-width: 600px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .servicio-img {
    height: 150px;
  }
}


/* Portafolio */
.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 25px;
  margin-top: 2rem;
}

.proyecto {
  background: var(--secondary);
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow-light);
  font-weight: 500;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.proyecto:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--shadow-medium);
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

label {
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  padding: 14px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  background: var(--accent);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  border-color: var(--destructive);
  box-shadow: 0 0 8px var(--destructive);
  outline: none;
}

button {
  padding: 14px;
  background: var(--destructive);
  color: var(--destructive-foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-family: ui-sans-serif, system-ui, sans-serif;
  transition: all 0.3s ease;
}

button:hover {
  background: darkred;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

/* Modo oscuro */
.dark {
  --background: #030213;
  --foreground: #ffffff;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #1a1a1a;
  --secondary-foreground: #ffffff;
  --accent: #1f1f1f;
  --accent-foreground: #ffffff;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .servicios-grid, .portafolio-grid {
    gap: 20px;
  }
}
/* =========================================================
   ESTILOS PARA PÁGINAS LEGALES (Privacidad / Aviso / Cookies)
   ========================================================= */

.section {
  padding-top: 160px; /* evita que el contenido se tape con el header fijo */
}
.page-title {
  margin: 140px 20px 10px; /* top, sides, bottom */
  text-align: center;
}
.page-title h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 auto;
  max-width: 900px; /* limita ancho en pantallas grandes */
}
/* Contenedor del contenido legal */
.contenido-legal {
  max-width: 900px;        /* limita ancho */
  margin: 0 auto;          /* centra horizontalmente */
  padding: 0 20px;         /* margen lateral interno */
  text-align: left;
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.8;
}

/* Titular principal */
.contenido-legal h1 {
  font-size: clamp(1rem, 4vw, 2rem); /* adaptable según pantalla */
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Subtítulos */
.contenido-legal h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Párrafos */
.contenido-legal p {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  margin-bottom: 1.2rem;
  color: var(--secondary-foreground);
  line-height: 1.7;
}

/* Listas */
.contenido-legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.contenido-legal li {
  margin-bottom: 0.5rem;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

/* Enlaces */
.contenido-legal a {
  color: var(--destructive);
  text-decoration: none;
  font-weight: 500;
}

.contenido-legal a:hover {
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE ESPECÍFICO PARA LEGAL PAGES
   ========================================================= */

/* Tablets */
@media (max-width: 1024px) {
  .contenido-legal {
    max-width: 85%;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .section {
    padding-top: 140px; /* un poco menos porque el header ocupa menos */
  }

  .contenido-legal {
    padding: 20px 15px;
  }

  .contenido-legal h1 {
    margin-bottom: 1rem;
  }

  .contenido-legal h2 {
    margin-top: 1rem;
  }
}

/* Modo oscuro aplicado a páginas legales */
.dark .contenido-legal p,
.dark .contenido-legal li {
  color: var(--accent-foreground);
}


