body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.svg-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* mantiene todo alineado a la izquierda */
  text-align: left;
  flex: 0 0 55%; /* ancho fijo aproximado para evitar solapamiento */
  padding: 8px;
  box-sizing: border-box;
}

.form-column {  
  flex: 0 0 45%; /* ocupa el resto */
  padding: 6px;
  box-sizing: border-box;
}

.svg-column svg {
  width: 100%;      /* ocupa todo el ancho de su columna */
  max-width: 500px; /* límite máximo */
  height: auto;
  display: block;
  margin: 0;         /* elimina el auto que centra */
}

form {
  display: flex;
  flex-direction: column;
  gap: 4px; /* reduce vertical spacing */
}

/* 1. Estado HOVER (Azul) - Se aplica siempre que el mouse esté encima */
.highlight {
    fill: rgba(0, 120, 255, 0.3) !important;
    stroke: #0078ff !important;
    stroke-width: 2.5px !important;
    filter: drop-shadow(0 0 8px rgba(0, 120, 255, 0.6));
    cursor: pointer;
}

/* 2. Estado ACTIVO (Naranja) - Tiene prioridad sobre el azul si tiene la clase .active */
.highlight.active {
    fill: rgba(255, 102, 0, 0.4) !important;
    stroke: #ff6600 !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 15px rgba(255, 102, 0, 1)) !important;
}

/* Color Base del SVG (sin resaltar) */
svg * { transition: all 0.2s ease; }

/* HOVER - Azul (Se aplica al pasar el mouse) */
.svg-hover {
    fill: rgba(0, 120, 255, 0.3) !important;
    stroke: #0078ff !important;
    stroke-width: 1px !important;
    filter: drop-shadow(0 0 28px rgba(0, 120, 255, 0.6));
    cursor: pointer;
}

/* ACTIVO - Naranja (Clic o Focus) - El !important asegura que gane al azul */
/* ACTIVO - Naranja más sólido en el SVG */
.svg-active {
    fill: rgba(255, 0, 0, 0.6) !important; /* Más opaco */
    stroke: #f70404 !important;             /* Naranja quemado oscuro */
    stroke-width: 1px !important;            /* Línea más gruesa */
    filter: drop-shadow(0 0 20px rgba(255, 102, 0, 1)) 
            drop-shadow(0 0 5px rgba(0, 0, 0, 0.5)); /* Doble sombra para oscuridad */
}

/* INPUT resaltado */
.input-active-highlight {
    background-color: #ffffff !important;
    color: rgb(0, 0, 0) !important;
    font-weight: bold;
    border-radius: 4px; /* Suaviza las esquinas de la caja naranja */
    padding-left: 5px !important;
}

/* ESTADO HOVER (Azul - Solo pasar el mouse) */
/* Se usa :not(.active) para que el naranja siempre mande sobre el azul */
.highlight:not(.active) {
    fill: rgba(0, 120, 255, 0.2) !important;
    stroke: #0078ff !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0 0 8px rgba(0, 120, 255, 0.8)) !important;
}


@media (max-width: 768px) {
  .svg-column, .form-column {
    flex: 1 1 100%;
  }

  .container {
    max-width: 100%;
    padding: 10px;
  }
}


/* Contenedor general de filas */
.row {
  display: grid;
  grid-template-columns: 140px 100px auto;
  align-items: center;
  column-gap: 6px;
  margin-bottom: 1px;
}

/* Para filas con dos parejas */
.row.two {
  grid-template-columns: 60px 70px 60px 70px auto;
}

/* Etiquetas */
.row label {
  font-weight: bold;
  font-size: 13px;
  margin: 0;
  line-height: 12px !important;
}



/* Unidades (IN, HP, %, etc.) */
.unit {
  font-size: 12px;
  opacity: 0.7;
}

/* Inputs estilo línea inferior */
.row input[type="text"],
.row input[type="number"],
.row input[type="email"],
.row input[type="tel"] {
  font-size: 13px;
  padding: 0px 2px;
  border: none;
  border-bottom: 1px solid #666;
  background: transparent;
  /*outline: none;*/
  height: 8px;
}

/* 1. Línea inferior de los inputs al hacer FOCUS o estar ACTIVO */
.row input:focus, 
.input-active-highlight {
    border-bottom: 3px solid #333 !important; /* Línea más gruesa y oscura (Casi negra) */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para dar profundidad */
}

/* Radios alineados */
.inline-group {
  display: flex;
  gap: 6px;
  font-weight: normal;
  font-size: 13px;
}

.inline-group label {
  font-weight: normal !important;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.logo-container img {
    max-height: 60px; /* ajusta tamaño del logo */
    width: auto;
}

h1 {  
  margin-bottom: 10px;
  font-size: 20px;
}

/* html2canvas fix para inputs */
input, select, textarea {
    line-height: normal !important;
    height: auto !important;
    padding-top: 1px !important;
    padding-bottom: 0.5px !important;
    box-sizing: border-box !important;
}

input {
    transform: scale(1.1);     /* opcional */
    transform-origin: top left;
    font-size: 16px !important; /* Tamaño mínimo para evitar auto-zoom de iOS/Android */
}

.botones-centrados {
  display: flex;
  justify-content: center;  /* Centrado horizontal */
  gap: 12px;                /* Espacio entre botones */
  margin-top: 20px;
}

.botones-centrados button {
  color: white;
  border: none;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

/* Botón WhatsApp en verde */
.botones-centrados button.whatsapp {
  background-color: #25D366; /* Verde WhatsApp */
}

.botones-centrados button.whatsapp:hover {
  background-color: #1ebe5a;
  transform: scale(1.05);
}

/* Botón PDF en azul */
.botones-centrados button.pdf {
  background-color: #0078ff;
}

.botones-centrados button.pdf:hover {
  background-color: #005fcc;
  transform: scale(1.05);
}

.botones-centrados button:active {
  transform: scale(0.97);
}
/* Esto asegura que las letras del SVG cambien de color completas */
.svg-hover path, .svg-hover text {
    fill: #0078ff !important;
}

.svg-active path, .svg-active text {
    fill: #ff6600 !important;
}

@media (max-width: 768px) {
    .inline-group {
        flex-direction: column; /* Pone Agua y Aceite uno sobre otro solo en móvil */
        gap: 4px;
    }
}


/* Estilo para las etiquetas de los radios */
.inline-group label {
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inline-group label.input-active-highlight {
    border: 2px solid #333 !important; /* Caja con borde grueso oscuro */
    background-color: #ff6600 !important;
}

/* Color azul suave cuando pasas el mouse por el SVG o el Label */
.inline-group label:hover {
    background-color: rgba(0, 120, 255, 0.1);
}

/* El naranja fijo cuando está seleccionado */
/*
.input-active-highlight {
    background-color: #ff6600 !important;
    color: white !important;
}
    */

.row input[type="text"]:hover {
    border-bottom: 2px solid #0078ff;
}


/* Agregamos email y tel a la lista de selectores */
.row input[type="text"],
.row input[type="number"],
.row input[type="email"],
.row input[type="tel"] {
    font-size: 16px !important; /* Aumentado un poco para legibilidad */
    padding: 4px 2px  !important;
    border: none  !important;
    border-bottom: 1px solid #666  !important;
    background: transparent  !important;
    height: auto  !important; /* IMPORTANTE: Asegúrate que no diga 8px */
    width: 220px  !important; /* Asegura que el input ocupe todo el espacio disponible */
    color: #333  !important;   /* Asegura que el texto sea oscuro */
}