/* ===============================
   VARIABLES DE COLOR
================================ */
:root {
  --color-primary: #0B3954;     /* Azul profundo */
  --color-secondary: #087E8B;   /* Azul claro */
  --color-terceary: #CDFA74;    /* Verde claro */
  --color-white: #FFFFFF;      /* Blanco */
  --color-gray: #f4f4f4;        /* Gris claro */
  --color-text: #31313F;        /* Texto principal */
}

/* ===============================
   ESTILOS GENERALES
================================ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-gray);
  margin: 0;
  padding: 0;
  color: var(--color-text);
}

/* ===============================
   CONTENEDOR PRINCIPAL
================================ */
.cotizacion {
  max-width: 900px;
  margin: 40px auto;
  background: var(--color-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ===============================
   ENCABEZADO
================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 10px;
}

.logo h1 {
  font-size: 24px;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-secondary);
}

/* ===============================
   DATOS DE LA EMPRESA
================================ */
.datos-empresa {
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.datos-empresa p {
  margin: 2px 0;
}

/* ===============================
   TÍTULO FACTURA
================================ */
.titulo-factura {
  text-align: center;
  margin: 30px 0 45px;
}

.titulo-factura h2 {
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.titulo-factura h5 {
  margin-top: 0;
  font-weight: 600;
  color: var(--color-secondary);
}

/* ===============================
   BLOQUE DOBLE (HUÉSPED / PAGADOR)
================================ */
.info-doble {
  display: flex;
  margin-bottom: 25px;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}

.info-box {
  width: 50%;
  padding: 15px;
  background: var(--color-white);
}

.info-box:first-child {
  border-right: 1px dashed var(--color-primary);
}

.info-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.info-box p {
  margin: 3px 0;
  line-height: 1.3;
}

/* ===============================
   TABLA DE SERVICIOS
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

thead {
  background: var(--color-primary);
  color: var(--color-white);
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

tfoot td {
  font-size: 16px;
  background: var(--color-terceary);
}

/* ===============================
   OBSERVACIONES
================================ */
.observaciones {
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 20px;
}

/* ===============================
   AGREGAR ÍTEMS
================================ */
.add-item {
  text-align: center;
  margin-bottom: 20px;
}

.add-item input {
  padding: 5px;
  margin: 5px;
  width: 120px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===============================
   BOTONES
================================ */
.btn {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  border: none;
}

.btn:hover {
  background-color: var(--color-primary);
}

/* ===============================
   IMPRESIÓN Y FOOTER
================================ */
.print-button-container {
  text-align: center;
  margin-top: 20px;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* ===============================
   MODO IMPRESIÓN
================================ */
@media print {
  .btn,
  .print-button-container,
  .add-item {
    display: none !important;
  }

  /* Ocultar columna eliminar */
  #itemsTable th:nth-child(6),
  #itemsTable td:nth-child(6) {
    display: none !important;
  }

  /* Bordes más formales */
  .info-doble {
    border-color: #000;
  }

  .info-box:first-child {
    border-right: 1px solid #000;
  }
}
