@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&display=swap');

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background-image: url("imagenes/textura.jpg");
  background-size: cover;
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: top left;
}

.main-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.content-container {
  display: flex;
  padding: 20px 40px 10px 40px;
  gap: 40px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* COLUMNA IZQUIERDA */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding-bottom: 45px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.left-column h1, .right-column h1 {
  font-size: 1.72vw;
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 0.3vw;
  color: #0d865f;
  text-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.info-block p {
  font-size: 0.70vw;
  line-height: 1.6;
  color: #2e2b2b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-block .icono {
  display: inline-block;
  width: 1.4em;
  text-align: center;
  flex-shrink: 0;
}

.info-block .numero {
  display: inline-block;
  width: 13em;
  flex-shrink: 0;
}

.info-block {
  margin-top: -10px;
}

.info-block p.empresa-nombre {
  font-size: 0.95vw;
  line-height: 1.35;
  margin-bottom: 2px;
}

.info-block p.empresa-datos {
  font-size: 0.75vw;
  line-height: 1.35;
}

.info-block p.separador {
  margin-bottom: 5px;
}

.info-block a {
  color: #0d865f;
  text-decoration: none;
}

.info-block a:hover {
  text-decoration: underline;
}

.calendario-block {
  margin-top: 10px;
}

.horario-block h2, .calendario-block h2 {
  font-size: 0.95vw;
  font-weight: bold;
  color: #2e2b2b;
  margin-bottom: 5px;
}

.horario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74vw;
}

.horario-table td {
  padding: 3px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.74vw;
}

.horario-table td:last-child {
  position: relative;
  left: -107px;
}

.horario-table td.cerrado {
  color: #c0392b;
  font-weight: bold;
}

.telefono-nota {
  font-size: 0.7vw;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

/* CALENDARIO */
.cal-nav {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.cal-nav button {
  position: static;
  background: #0d865f;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 10px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: none;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82vw;
  text-align: center;
}

.cal-table th {
  padding: 3px;
  color: #555;
  font-weight: bold;
}

.cal-table td {
  padding: 3px;
  border-radius: 3px;
}

.cal-table td.abierto {
  background: rgba(13, 134, 95, 0.15);
  color: #0d865f;
  font-weight: bold;
}

.cal-table td.cerrado {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.cal-table td.hoy-abierto,
.cal-table td.hoy-cerrado {
  background: transparent;
}

.hoy-circulo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
}

.hoy-abierto {
  background: rgba(13, 134, 95, 0.15) !important;
}

.hoy-cerrado {
  background: rgba(192, 57, 43, 0.12) !important;
}

.hoy-abierto .hoy-circulo {
  background: #0d865f;
}

.hoy-cerrado .hoy-circulo {
  background: #c0392b;
}

.clientes-block {
  margin-top: auto;
  margin-bottom: 6px;
}

.clientes-block a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #e07c09;
  font-size: 0.82vw;
  font-weight: bold;
  padding-left: 2px;
}

.clientes-block a:hover {
  text-decoration: underline;
}

.whatsapp-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 8px;
  padding-left: 2px;
}

.whatsapp-block svg {
  flex-shrink: 0;
}

.whatsapp-block p {
  font-size: 0.74vw;
  color: #0d865f !important;
  line-height: 1.4;
}

.facebook-block {
  margin-bottom: 5px;
}

.facebook-block a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1877F2;
  font-size: 0.82vw;
  font-weight: bold;
  padding-left: 2px;
}

.facebook-block a:hover {
  text-decoration: underline;
}

.leg-abierto { color: #0d865f; }
.leg-cerrado { color: #c0392b; }

/* COLUMNA DERECHA */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding-bottom: 45px;
}

.right-column h1 {
  margin-bottom: 0.3vw;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-block form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-block input,
.form-block textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 0.74vw;
  font-family: Arial, sans-serif;
  background: rgba(255,255,255,0.7);
}

.form-block textarea {
  height: 120px;
  resize: none;
}

.btn-enviar {
  position: static;
  background-color: #0d865f;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 7px 20px;
  font-size: 0.74vw;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  align-self: flex-start;
}

.mapa-block {
  flex: 1;
  min-height: 0;
  max-height: calc(100% - 50px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.mapa-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER Y BOTON INICIO */
footer {
  padding: 0 0 20px 0;
  text-align: center;
}

footer p {
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #2e2b2b;
}

.btn-inicio {
  position: fixed;
  bottom: 20px;
  right: 25px;
  padding: 8px 18px;
  background-color: #0d865f;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  cursor: pointer;
}

.leyenda {
  font-size: 0.7vw;
  margin-top: 5px;
  color: #555;
}
